diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9a194f0f4..4f59750faa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,14 @@ jobs: python -m doctest README.md python setup.py build_sphinx touch docs/_build/html/.nojekyll + - name: Check schemas are copied over + run: | + # is a directory + [ -d "docs/_build/html/schemas" ] + # is not a symlink + [ ! -L "docs/_build/html/schemas" ] + # is not empty + [ "$(ls -A docs/_build/html/schemas)" ] - name: Deploy docs to GitHub Pages if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master' uses: crazy-max/ghaction-github-pages@v1.0.1 diff --git a/MANIFEST.in b/MANIFEST.in index ae07ad170a..5e06d8332c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,5 @@ +prune * graft src - include LICENSE -global-exclude __pycache__ *.py[cod] +global-exclude __pycache__ *.py[cod] .* diff --git a/docs/_extras/schemas b/docs/_extras/schemas new file mode 120000 index 0000000000..00420d7cfc --- /dev/null +++ b/docs/_extras/schemas @@ -0,0 +1 @@ +../../src/pyhf/schemas \ No newline at end of file diff --git a/docs/conf.py b/docs/conf.py index 59d3bb9369..25f6f868f2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -213,7 +213,7 @@ def setup(app): # .htaccess) here, relative to this directory. These files are copied # directly to the root of the documentation. # -html_extra_path = [] +html_extra_path = ['_extras'] # If not None, a 'Last updated on:' timestamp is inserted at every page # bottom, using the given strftime format. diff --git a/docs/schemas b/docs/schemas deleted file mode 120000 index fcf62c8355..0000000000 --- a/docs/schemas +++ /dev/null @@ -1 +0,0 @@ -../src/pyhf/schemas \ No newline at end of file