Follow up on GH-116

* Include docs in source distributions
* Prevent docs deploy job from failing when there's nothing to commit
This commit is contained in:
Nguyễn Gia Phong 2020-09-11 15:12:38 +07:00
parent 90528cee2d
commit fae0848283
4 changed files with 12 additions and 9 deletions

View File

@ -4,12 +4,10 @@ on:
push: push:
branches: branches:
- master - master
paths-ignore: paths:
- examples/** - .github/workflows/*
- tests/** - docs/**
- LICENSE - src/**
- README.md
- .*.yml
jobs: jobs:
docs: docs:
@ -62,5 +60,7 @@ jobs:
rm -r docs rm -r docs
git add . git add .
git commit -m "Build at $(date --iso-8601=seconds)" if git commit -m "Build at $(date --iso-8601=seconds)"
git push origin gh-pages then
git push origin gh-pages
fi

View File

@ -1,6 +1,9 @@
include CMakeLists.txt include CMakeLists.txt
recursive-include src *.h *.pxd *.pyx recursive-include src *.h *.pxd *.pyx
graft docs
prune docs/build
include tox.ini include tox.ini
recursive-include tests *.py recursive-include tests *.py
recursive-include examples *.py recursive-include examples *.py

View File

@ -19,7 +19,7 @@ napoleon_google_docstring = False
default_role = 'py:obj' default_role = 'py:obj'
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates'] templates_path = ['templates']
# List of patterns, relative to source directory, that match # List of patterns, relative to source directory, that match
# files and directories to ignore when looking for source files. # files and directories to ignore when looking for source files.