Docusaurus网站github页面部署不适合组织

发布于 2025-02-07 03:27:17 字数 513 浏览 2 评论 0 原文

当我通过Docusaurus完成了Docs网站的设计时,我想将其部署到GitHub页面。通常,这并不难。我需要在docusaurus.config.js中更改一些内容,并使用“ github_user = yarn exploy”命令。但是,此存储库不在我的github个人资料中。这是我们公司的GitHub概况中的。我有允许推动的权限,但是当我尝试“ github_user = yarn deploy”命令时,我在消息。实际上,这是正常的原因,因为我已经观看了一些有关此视频的视频,但他们收到了同样的消息,但我尝试查看网站,我会遇到404错误。

我现在该怎么办?

注意:我尝试使用自己的github用户名来“ github_user = yarn部署”命令(正如我在获得推送许可之前所说的那样)。我必须使用我们的组织用户名吗?

When I completed to design of our docs website with Docusaurus I wanted to deploy it to GitHub pages. In normally this is no hard. I need to change a few things in docusaurus.config.js and use "GITHUB_USER= yarn deploy" command. However this repo isn't in the my GitHub profile. It's in the organisation GitHub profile of our company. I have permission for push but when I tried to "GITHUB_USER= yarn deploy" command I got "website live at https://ourOrganisationGithubUsername.github.io/ourProjectName/" message. Actually it's normal cause I have watched some videos about that and they got same message but I try to see the website I get 404 error.

What should I do now ?

Note: I have tried to "GITHUB_USER= yarn deploy" command with my own GitHub username (as I said before I have permission for push.). Do I have to use our organisation username ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

日记撕了你也走了 2025-02-14 03:27:17

我曾尝试与我的同事的用户名一起部署,后者是我们公司的GitHub帐户中的管理员。它运行良好,然后我可以在首次发布自己的用户名之后部署。当我给出公司用户名时,它要求我提供公司帐户的密码。我认为这不是治疗解决方案。

感谢您的关注。

I have tried deploy with my coworker's username who is an admin on our company's Github account. It works well then I could deploy after first publish with my own username. When I gave the username of our company, it asked me for the password of the company account. I think it isn't a healty solution.

Thanks for attention.

请帮我爱他 2025-02-14 03:27:17

我最近遇到了同样的问题!我的存储库是私人的,所以我将存储库公开了,问题得到了解决。

I recently experienced the same issue! My repository was private, so I made the repository public, and the Issue was solved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文