6.3 Deploy Documentation
Create a new project named
docs-as-code
into your user space (the link will behttps://github.com/YOUR_USERNAME/docs-as-code
)Clone to project locally using
git clone git@github.com:YOUR_USERNAME/docs-as-code.git
Change the directory to the newly cloned project
cd docs-as-code
Run
sphinx-quickstart
Update documentation
Build documentation
make html
Create a new directory and copy the documentation into it
# Create a documentation directory
mkdir docs
# Copy the build content to the docs directory
cp -r build/html/* docs/
Push local changes to GitHub using
git push
Enable gh-page from Project Settings - Pages - Deploy from a branch (select master) - /docs and press Save
An automated pipeline will start to build and deploy your documentation.
Go to the repository page, bottom right you will find Environments: github-pages - View deployment