diff --git a/docs/en/next/publishing.html b/docs/en/next/publishing.html index 59b359e85f..14c0f775b4 100644 --- a/docs/en/next/publishing.html +++ b/docs/en/next/publishing.html @@ -103,7 +103,7 @@
Deploying your Docusaurus project to ZEIT Now will provide you with various benefits in the areas of performance and ease of use.
-Most importantly, however, deploying a Docusaurus project only takes a couple seconds:
+Most importantly, however, deploying a Docusaurus project only takes a couple of seconds:
That's all. Your docs will automatically be deployed.
-Note that the directory structure Now supports is slightly different from the default directory structure of a Docusaurus project - The
+docs
directory has to be within thewebsite
directory, ideally following the directory structure in this example. You will also have to specify acustomDocsPath
value insiteConfig.js
. Take a look at the the now-examples repository for a Docusaurus project.Note that the directory structure Now supports is slightly different from the default directory structure of a Docusaurus project - The
docs
directory has to be within thewebsite
directory, ideally following the directory structure in this example. You will also have to specify acustomDocsPath
value insiteConfig.js
. Take a look at the now-examples repository for a Docusaurus project.
Docusaurus was designed to work really well with one of the most popular hosting solutions for open source projects: GitHub Pages.
+Docusaurus was designed to work well with one of the most popular hosting solutions for open source projects: GitHub Pages.
organizationName
projectName
projectName
url
baseUrl
baseUrl
is /docusaurus/
.GIT_USER
GIT_USER
must have push access to the repository specified in the combination of organizationName
and projectName
.GIT_USER
GIT_USER
must have push access to the repository specified in the combination of organizationName
and projectName
.To run the script directly from the command-line, you can use the following, filling in the parameter values as appropriate.
@@ -193,7 +193,7 @@You can run the command above any time you update the docs and wish to deploy the changes to your site. Running the script manually may be fine for sites where the documentation rarely changes and it is not too much of an inconvenience to remember to manually deploy changes.
However, you can automate the publishing process with continuous integration (CI).
Continuous integration (CI) services are typically used to perform routine tasks whenever new commits are checked in to source control. These tasks can be any combination of running unit tests and integration tests, automating builds, publishing packages to NPM, and yes, deploying changes to your website. All you need to do to automate deployment of your website is to invoke the publish-gh-pages
script whenever your docs get updated. In the following section, we'll be covering how to do just that using CircleCI, a popular continuous integration service provider.
Continuous integration (CI) services are typically used to perform routine tasks whenever new commits are checked in to source control. These tasks can be any combination of running unit tests and integration tests, automating builds, publishing packages to NPM, and yes, deploying changes to your website. All you need to do to automate the deployment of your website is to invoke the publish-gh-pages
script whenever your docs get updated. In the following section, we'll be covering how to do just that using CircleCI, a popular continuous integration service provider.
If you haven't done so already, you can setup CircleCI for your open source project. Afterwards, in order to enable automatic deployment of your site and documentation via CircleCI, just configure Circle to run the publish-gh-pages
script as part of the deployment step. You can follow the steps below to get that setup.
.circleci
directory and create a config.yml
under that directory..circleci/config.yml
.# If you only want circle to run on direct commits to master, you can uncomment this out
+# If you only want the circle to run on direct commits to master, you can uncomment this out
# and uncomment the filters: *filter-only-master down below too
#
# aliases:
@@ -315,7 +315,7 @@
You can also configure Netlify to rebuild on every commit to your repository, or only master
branch commits.
Render offers free static site hosting with fully managed SSL, custom domains, a global CDN and continuous auto deploys from your Git repo. Deploy your app in just a few minutes by following these steps.
+Render offers free static site hosting with fully managed SSL, custom domains, a global CDN and continuous auto deploy from your Git repo. Deploy your app in just a few minutes by following these steps.
Create a new Web Service on Render, and give Render's GitHub app permission to access your Docusaurus repo.
Select the branch to deploy. The default is master
.
Alter your siteConfig.js
to add a property 'githubHost'
which represents the GitHub Enterprise hostname. Alternatively, set an environment variable GITHUB_HOST
when executing the publish command.