-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: make GitHub actions explanation aligned with the code #6776
Conversation
Hi @arifszn! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most Docusaurus repos do not have a website/
folder, and have the docusaurus.config.js
at the root. Please do not change the actions file—#6591 is made on purpose. Please only make the text aligned with the code.
✔️ [V2] 🔨 Explore the source changes: ea5179a 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/621b32573270f900084ed029 😎 Browse the preview: https://deploy-preview-6776--docusaurus-2.netlify.app |
This PR also solves the issue, |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6776--docusaurus-2.netlify.app/ |
Did you commit your lock file? Also, if you are using NPM, you need to use |
Yes, I did. This is the example repo. I am guessing, due to subfolder. However, caching with |
The actions file works for me without any modification: https://github.com/jc-verse/docusaurus-template/blob/master/.github/workflows/deploy.yml It doesn't work for you, because your |
Can you please give an example? I have set it up as follows. So shouldn't defaults:
run:
working-directory: ./website
Also, I feel like, many users won't have a separate repo for documentation and will keep the documentation source in |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
The configuration should be trivial—even if we have another file about configuration for websites not at the root, it would only be adding a bunch of No matter where your documentation is placed, you should be able to run Also, I think the portion of users that have a monorepo but don't know how to set up CI is far less than those that just want a working website and use a standalone repo for their website (e.g. for personal/organization use). |
@arifszn The actions files are working for most repos. Even if it doesn't work out-of-the-box for all, modification is trivial. For example, here's a working example for a website in the The If you have a repo with multiple projects and multiple |
Motivation
This PR solves the issue #6775.