Using github actions to publish documentation

前端 未结 2 1403
深忆病人
深忆病人 2021-01-03 04:46

What I considered:

  • github offers github pages to host documentation in either a folder on my master branch or a dedicated gh-pages br
2条回答
  •  时光说笑
    2021-01-03 05:01

    In the case of managing sphinx using pip (requirements.txt), pipenv, or poetry, we can deploy our documentation to GitHub Pages as follows. For also other Python-based Static Site Generators like pelican and MkDocs, the workflow works as same. Here is a simple example of MkDocs. We just add the workflow as .github/workflows/gh-pages.yml

    For more options, see the latest README: peaceiris/actions-gh-pages: GitHub Actions for GitHub Pages

提交回复
热议问题