~cnx/palace

fae0848283b1e2dd6b5ded60d22628b336c5c18c — Nguyễn Gia Phong 1 year, 1 month ago 90528ce
Follow up on GH-116

* Include docs in source distributions
* Prevent docs deploy job from failing when there's nothing to commit
4 files changed, 12 insertions(+), 9 deletions(-)

M .github/workflows/docs.yml
M MANIFEST.in
M docs/source/conf.py
R docs/source/{_templates/quicknav.html => templates/quicknav.html}
M .github/workflows/docs.yml => .github/workflows/docs.yml +8 -8
@@ 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

M MANIFEST.in => MANIFEST.in +3 -0
@@ 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

M docs/source/conf.py => docs/source/conf.py +1 -1
@@ 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.

R docs/source/_templates/quicknav.html => docs/source/templates/quicknav.html +0 -0