mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-22 13:21:52 +00:00
Use sphinx-sitemap to create a sitemap
This commit is contained in:
parent
d8b0e023ec
commit
abd5a68c27
5 changed files with 15 additions and 4 deletions
4
.github/workflows/branch-man.yml
vendored
4
.github/workflows/branch-man.yml
vendored
|
|
@ -26,8 +26,8 @@ jobs:
|
|||
- name: Install Python packages
|
||||
run: >
|
||||
pip3 install dnspython beautifulsoup4 pyxdg requests \
|
||||
sphinx sphinx_epytext sphinx_rtd_theme sphinx-intl \
|
||||
setuptools_scm
|
||||
sphinx sphinx_epytext sphinx_rtd_theme sphinx-sitemap \
|
||||
sphinx-intl setuptools_scm
|
||||
|
||||
- name: Prepare git environment
|
||||
run: |
|
||||
|
|
|
|||
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
|
@ -102,7 +102,8 @@ jobs:
|
|||
|
||||
- name: Install Python packages
|
||||
run: |
|
||||
pip install -r requirements.txt Sphinx sphinx-epytext sphinx-intl sphinx-rtd-theme
|
||||
pip install -r requirements.txt Sphinx sphinx-epytext sphinx-intl \
|
||||
sphinx-rtd-theme sphinx-sitemap
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
|
|
|||
2
.github/workflows/publish-pages.yml
vendored
2
.github/workflows/publish-pages.yml
vendored
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
- name: Install Python packages
|
||||
run: >
|
||||
pip install dnspython beautifulsoup4 pyxdg requests \
|
||||
sphinx sphinx_epytext sphinx_rtd_theme
|
||||
sphinx sphinx_epytext sphinx_rtd_theme sphinx-sitemap
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@ sphinx_epytext
|
|||
|
||||
sphinx_rtd_theme
|
||||
|
||||
sphinx_sitemap
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ extensions = [
|
|||
'sphinx.ext.viewcode',
|
||||
'sphinx_epytext',
|
||||
'sphinx_rtd_theme',
|
||||
'sphinx_sitemap',
|
||||
]
|
||||
|
||||
locale_dirs = ['../i18n/locales']
|
||||
|
|
@ -81,6 +82,13 @@ extlinks = {'pypi': ('https://pypi.org/project/%s/', '')}
|
|||
|
||||
graphviz_output_format = 'svg'
|
||||
|
||||
# sitemap
|
||||
html_baseurl = 'https://linkchecker.github.io/linkchecker/'
|
||||
|
||||
sitemap_locales = [None]
|
||||
|
||||
sitemap_url_scheme = "{link}"
|
||||
|
||||
# -- Mock --------------------------------------------------------------------
|
||||
|
||||
import linkcheck.logger
|
||||
|
|
|
|||
Loading…
Reference in a new issue