diff --git a/docs/en/publishing.html b/docs/en/publishing.html index 50a8f6f1a1..b5550e203d 100644 --- a/docs/en/publishing.html +++ b/docs/en/publishing.html @@ -28,7 +28,10 @@
projectName: The name of the GitHub repository for your project. For example, Docusaurus is hosted at https://github.com/facebook/docusaurus, so our project name in this case would be "docusaurus".-+While we recommend setting the above in
+siteConfig.js, you can also use environment variablesORGANIZATION_NAMEandPROJECT_NAME.Docusaurus also supports deploying user or organization sites. These sites will be served from the
+masterbranch of the repo. So, you will want to have the Docusaurus infra, your docs, etc. in another branch (e.g., maybe call itsource). To do this, just setprojectNameto "username.github.io" (where username is your username or organization name on GitHub) andorganizationNameto "username". The publish script will automatically deploy your site to the root of themasterbranch to be served.
+While we recommend setting the
projectNameandorganizationNameinsiteConfig.js, you can also use environment variablesORGANIZATION_NAMEandPROJECT_NAME.
One of the required parameters is set as a environment variable:
USE_SSH: If this is set to true, then SSH is used instead of HTTPS for the connection to the GitHub repo. HTTPS is the default if this variable is not set.
CURRENT_BRANCH: The branch that contains the latest docs changes that will be deployed. Usually, the branch will be master, but it could be any branch (default or otherwise) except for gh-pages. If nothing is set for this variable, then the current branch will be used.
-Docusaurus also supports deploying user or organization sites. Just set your project name to "username.github.io" (where username is your username or organization name on GitHub) and the publish script will automatically deploy your site to the root of the
-masterbranch instead.
Once you have the parameter value information, you can go ahead and run the publish script, ensuring you have inserted your own values inside the various parameter placeholders:
To run the script directly from the command-line, you can use the following, filling in the parameter values as appropriate.
GIT_USER=<GIT_USER> \