File tree Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 33
33
java-version : 1.8
34
34
- name : Set up env
35
35
run : make -C docs setupenv
36
+ - name : Build redirects
37
+ run : make -C docs redirects
36
38
- name : Build docs
37
39
run : make -C docs multiversion
38
40
- name : Deploy docs to GitHub Pages
Original file line number Diff line number Diff line change @@ -95,6 +95,12 @@ preview: setup
95
95
multiversionpreview : multiversion
96
96
$(POETRY ) run python -m http.server 5500 --directory $(BUILDDIR ) /dirhtml
97
97
98
+ .PHONY : redirects
99
+ redirects : setup
100
+ $(POETRY ) run redirects-cli fromfile --yaml-file _utils/redirects.yaml --output-dir $(BUILDDIR ) /dirhtml
101
+ @echo
102
+ @echo " Build finished. The HTML pages are in $( BUILDDIR) /dirhtml."
103
+
98
104
# Test commands
99
105
.PHONY : test
100
106
test : setup
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
cd .. && sphinx-multiversion docs/source docs/_build/dirhtml \
4
- --pre-build ' ./docs/_utils/javadoc.sh ' \
5
- --pre -build " find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';' "
4
+ --pre-build " find . -mindepth 2 -name README.md -execdir mv '{}' index.md ';' " \
5
+ --post -build ' ./docs/_utils/javadoc.sh '
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,11 +9,12 @@ python = "^3.7"
9
9
pyyaml = " 6.0"
10
10
pygments = " 2.2.0"
11
11
recommonmark = " 0.7.1"
12
- sphinx-scylladb-theme = " ~1.2.1"
12
+ redirects_cli =" ~0.1.2"
13
+ sphinx-scylladb-theme = " ~1.3.1"
13
14
sphinx-sitemap = " 2.1.0"
14
15
sphinx-autobuild = " 2021.3.14"
15
16
Sphinx = " 4.3.2"
16
- sphinx-multiversion-scylla = " ~0.2.11 "
17
+ sphinx-multiversion-scylla = " ~0.2.12 "
17
18
18
19
[build-system ]
19
20
requires = [" poetry>=0.12" ]
Original file line number Diff line number Diff line change 19
19
# Set which versions are not released yet.
20
20
UNSTABLE_VERSIONS = []
21
21
# Set which versions are deprecated
22
- DEPRECATED_VERSIONS = ['' ]
22
+ DEPRECATED_VERSIONS = []
23
23
24
24
# Add any Sphinx extension module names here, as strings. They can be
25
25
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -116,11 +116,6 @@ def setup(app):
116
116
# Prefix added to all the URLs generated in the 404 page.
117
117
notfound_urls_prefix = ''
118
118
119
- # -- Options for redirect extension ---------------------------------------
120
-
121
- # Read a YAML dictionary of redirections and generate an HTML file for each
122
- redirects_file = "_utils/redirections.yaml"
123
-
124
119
# -- Options for multiversion extension ----------------------------------
125
120
126
121
# Whitelist pattern for tags
You can’t perform that action at this time.
0 commit comments