Netlify is an automated hosting platform for deploying static websites. With the aid of build tools such as Gradle, Netlify provides a smoother experience for previewing documentation. This can be done by using Netlify’s Deploy Previews feature, which shows a preview of the updated documentation whenever a pull request is made.
-
Fork the repository to your own organization.
-
Go to https://www.netlify.com/ and click
Sign Up
. Next, clickGITHUB SIGN IN
, enter your GitHub account details and authorize netlify. -
After logging in, click
New site from Git
. -
You will then be brought to the setup page. Click
GitHub
to link your repository to Netlify. -
Pick your repository from the list.
-
Fill out the details as follows and then click
Deploy site
.-
Branch to deploy: select
master
branch -
Build command:
./gradlew asciidoctor
ℹ️The build command is the command that builds the documentation into HTML format. -
Publish directory:
build/docs/html5
ℹ️The publish directory is the directory in which the built HTML documentation resides.
-
-
Once Netlify has completed building your project, you can now:
-
View your main branch’s deployed documentation on the site name given by Netlify (customizable as shown below).
-
Preview the updated documentation whenever a pull request is made by clicking the
Details
hyperlink next to the Netlify test status.
-