git worktree add ../VisualBayesicDocs gh-pages
This will create a new folder calledVisualBayesicDocs
in the parent directory of the current repo. This folder will contain thegh-pages
branch of the repo. This is where the docs will be pushed to.cp -r --force ./docs/build/html/* ../VisualBayesicDocs/
This will copy the contents of thedocs/build/html
folder to theVisualBayesicDocs
folder.cd ../VisualBayesicDocs
This will change the current directory to theVisualBayesicDocs
folder.git add .
This will add all the files in the current directory to the staging area.git commit -m "Update docs"
This will commit the changes to thegh-pages
branch.git push origin gh-pages
This will push the changes to thegh-pages
branch of the repo.cd ../VisualBayesic
This will change the current directory back to theVisualBayesic
folder.