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

View File

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

View File

@ -19,7 +19,7 @@ napoleon_google_docstring = False
default_role = 'py:obj'
# 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
# files and directories to ignore when looking for source files.