Set absolute paths in 404 page

Signed-off-by: George Melikov <mail@gmelikov.ru>
This commit is contained in:
George Melikov
2020-05-29 15:54:13 +03:00
parent 541ad80d18
commit 4d3d0bdf55
4 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master - uses: ammaraskar/sphinx-action@master
with: with:
pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt" pre-build-command: "apt-get update -y && apt-get install -y git python3-pip && pip install -r docs/requirements.txt"
docs-folder: "docs/" docs-folder: "docs/"
- name: Deploy - name: Deploy
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3

View File

@@ -9,5 +9,5 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master - uses: ammaraskar/sphinx-action@master
with: with:
pre-build-command: "apt-get update -y && apt-get install -y python3-pip && pip install -r docs/requirements.txt" pre-build-command: "apt-get update -y && apt-get install -y git python3-pip && pip install -r docs/requirements.txt"
docs-folder: "docs/" docs-folder: "docs/"

View File

@@ -46,6 +46,7 @@ extensions = [
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
"sphinx_issues", "sphinx_issues",
"sphinx_rtd_theme", "sphinx_rtd_theme",
"notfound.extension"
] ]
# Add any paths that contain templates here, relative to this directory. # Add any paths that contain templates here, relative to this directory.
@@ -214,3 +215,7 @@ issues_github_path = "openzfs/zfs"
issues_uri = "https://github.com/openzfs/zfs/issues/{issue}" issues_uri = "https://github.com/openzfs/zfs/issues/{issue}"
issues_pr_uri = "https://github.com/openzfs/zfs/pull/{pr}" issues_pr_uri = "https://github.com/openzfs/zfs/pull/{pr}"
issues_commit_uri = "https://github.com/openzfs/zfs/commit/{commit}" issues_commit_uri = "https://github.com/openzfs/zfs/commit/{commit}"
# Get absolute paths in 404
notfound_no_urls_prefix = True
notfound_url_prefix = '/openzfs-docs'

View File

@@ -1,3 +1,5 @@
Sphinx Sphinx
sphinx-issues sphinx-issues
# sphinx-notfound-page with change for Github Pages https://github.com/readthedocs/sphinx-notfound-page/pull/94
git+https://github.com/gmelikov/sphinx-notfound-page.git@github_pages#egg=sphinx-notfound-page
sphinx-rtd-theme sphinx-rtd-theme