Example for separate docs at other branchΒΆ
There are two branchs in repo myproject, branch master and branch docs.
The program source at branch master.
The Sphinx documentation source at branch docs.
To build GitHub Pages from branch docs, add workflow to branch docs only.
switch to branch
docsadd file
./.github/workflows/example-sphinx.ymlon: [push] jobs: build: name: Sphinx Pages Test runs-on: ubuntu-latest steps: - uses: seanzhengw/sphinx-pages@master id: sphinx-pages with: github_token: ${{ secrets.GITHUB_TOKEN }} create_readme: truecommit
push
docswait for the workflow