Generate and Serve
We are still inside our Playbook Project/Folder with VS Code |
1. Generate your site
to generate your site type
-
antora site.yml
and your docs should be generated in a few seconds.
You can find your generated site in the build/site folder.
important: If you are changing sources/ui and your Antora won’t build properly after, try: antora site.yml --pull. This will reset your cache.
2. Serve it
We are going to use GitHub Pages to serve our Docs Page.
-
Go to your Repository on GitHub
-
click on Settings
-
scroll down to GitHub Pages
-
choose your source (master) and save
-
push your built html site folder (build/site/) to your created Repository
-
push an empty .nojekyll file to your Repository (necessary for GitHub Pages)
Visit GitHub Pages for more |
3. Finished
Congratulations! You are done!
you can see your created page on your GitHub Pages - Page (https://username.github.io.)
In the case of this Documentation Site: https://fabianfnc.github.io/bocs/