File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 run : python setup.py develop
3030 - name : Build docs
3131 run : make -C docs multiversion
32+ - name : Build redirects
33+ run : make -C docs redirects
3234 - name : Deploy docs to GitHub Pages
3335 run : ./docs/_utils/deploy.sh
3436 env :
Original file line number Diff line number Diff line change 11# Global variables
22# You can set these variables from the command line.
33POETRY = poetry
4- SPHINXOPTS =
4+ SPHINXOPTS =
55SPHINXBUILD = $(POETRY ) run sphinx-build
66PAPER =
77BUILDDIR = _build
@@ -72,6 +72,12 @@ multiversion: setup
7272 @echo
7373 @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
7474
75+ .PHONY : redirects
76+ redirects : setup
77+ $(POETRY ) run redirects-cli fromfile --yaml-file _utils/redirects.yaml --output-dir $(BUILDDIR ) /dirhtml
78+ @echo
79+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
80+
7581# Preview commands
7682.PHONY : preview
7783preview : setup
@@ -91,3 +97,4 @@ test: setup
9197.PHONY : linkcheck
9298linkcheck : setup
9399 $(SPHINXBUILD ) -b linkcheck $(SOURCEDIR ) $(BUILDDIR ) /linkcheck
100+
Original file line number Diff line number Diff line change 7777# Prefix added to all the URLs generated in the 404 page.
7878notfound_urls_prefix = ''
7979
80- # -- Options for redirect extension --------------------------------------------
81-
82- # Read a YAML dictionary of redirections and generate an HTML file for each
83- redirects_file = '_utils/redirections.yaml'
84-
8580# -- Options for multiversion --------------------------------------------------
8681
8782# Whitelist pattern for tags
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ python = "^3.7"
1414pyyaml = " 6.0"
1515pygments = " 2.2.0"
1616recommonmark = " 0.7.1"
17+ redirects_cli =" ^0.1.2"
1718sphinx-autobuild = " 2021.3.14"
1819sphinx-sitemap = " 2.1.0"
19- sphinx-scylladb-theme = " ~1.2 .1"
20+ sphinx-scylladb-theme = " ~1.3 .1"
2021sphinx-multiversion-scylla = " ~0.2.11"
2122Sphinx = " 4.3.2"
2223scales = " 1.0.9"
You can’t perform that action at this time.
0 commit comments