Set absolute paths in 404 page
Signed-off-by: George Melikov <mail@gmelikov.ru>
This commit is contained in:
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -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
|
||||||
|
|||||||
2
.github/workflows/pull_request.yml
vendored
2
.github/workflows/pull_request.yml
vendored
@@ -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/"
|
||||||
|
|||||||
@@ -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'
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user