File tree Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Expand file tree Collapse file tree 5 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 29
29
run : python setup.py develop
30
30
- name : Build docs
31
31
run : make -C docs multiversion
32
+ - name : Build redirects
33
+ run : make -C docs redirects
32
34
- name : Deploy docs to GitHub Pages
33
35
run : ./docs/_utils/deploy.sh
34
36
env :
Original file line number Diff line number Diff line change 1
1
# Global variables
2
2
# You can set these variables from the command line.
3
3
POETRY = poetry
4
- SPHINXOPTS =
4
+ SPHINXOPTS =
5
5
SPHINXBUILD = $(POETRY ) run sphinx-build
6
6
PAPER =
7
7
BUILDDIR = _build
@@ -72,6 +72,12 @@ multiversion: setup
72
72
@echo
73
73
@echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
74
74
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
+
75
81
# Preview commands
76
82
.PHONY : preview
77
83
preview : setup
@@ -91,3 +97,4 @@ test: setup
91
97
.PHONY : linkcheck
92
98
linkcheck : setup
93
99
$(SPHINXBUILD ) -b linkcheck $(SOURCEDIR ) $(BUILDDIR ) /linkcheck
100
+
Original file line number Diff line number Diff line change 77
77
# Prefix added to all the URLs generated in the 404 page.
78
78
notfound_urls_prefix = ''
79
79
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
-
85
80
# -- Options for multiversion --------------------------------------------------
86
81
87
82
# Whitelist pattern for tags
Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ python = "^3.7"
14
14
pyyaml = " 6.0"
15
15
pygments = " 2.2.0"
16
16
recommonmark = " 0.7.1"
17
+ redirects_cli =" ^0.1.2"
17
18
sphinx-autobuild = " 2021.3.14"
18
19
sphinx-sitemap = " 2.1.0"
19
- sphinx-scylladb-theme = " ~1.2 .1"
20
+ sphinx-scylladb-theme = " ~1.3 .1"
20
21
sphinx-multiversion-scylla = " ~0.2.11"
21
22
Sphinx = " 4.3.2"
22
23
scales = " 1.0.9"
You can’t perform that action at this time.
0 commit comments