FAQ
Question
Why not travis CI?¶
Travis CI is a great service, however, github actions is super convenient, less configuration , better integration. Less configuration, less error prone.
Question
Why not read the docs?¶
Same reason as above. Git pages is convenient than read the docs, it requires no further configuration, except access token. As to read the docs, you need to write v2 config file, plus several settings on web pages.
Question
Why mkdocs instead of sphinx?¶
reStructured Text and Sphinx is way to tedious, though powerful. With extension, you'll find almost all features are available in mkdocs, in a neat and productive way. Poetry and Markdown, are the two key factors driven me develop this template.
Question
How to trigger a release build?¶
Once you've tagged either of (main, master) branch with v
(for example, v1.0), then github actions will trigger a release build and finally publish documentation to https://{your_github_account}.github.io/{your_repo_slug} and push a wheels to pypi.
You can also manually trigger this one:
1 2 |
|
Question
How to manually publish documentation?¶
By default, every push to github will trigger a documentation dev build, with the name is ${poetry version --short}-dev. And every tag starts with 'v' on main/master branch will cause a release build, and documentation will be built too.
However, by any chances, you can manually build and publish your documentation with:
1 2 |
|
Question
What are the configuration items?¶
Here is a list:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
except above settings, for CI/CD, you'll also need configure gitub repsitory secrets at page repo > settings > secrtes, and add the following secrets:
- PERSONAL_TOKEN (required for publishing document to git pages)
- TEST_PYPI_API_TOKEN (required for publishing dev release to testpypi)
- PYPI_API_TOKEN (required for publish )