Skip to content

Commit 0d1f1c4

Browse files
dgarcia360avelanarius
authored andcommitted
docs: update theme
docs: update conf.py docs: update conf.py docs: Update conf.py docs: update conf.py docs: Update conf.py docs: update conf.py
1 parent 085dd34 commit 0d1f1c4

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

README-dev.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Building the docs
22

3-
The docs build instructions have been tested with Sphinx 4 and Fedora 32.
4-
53
## Prerequisites
64

7-
To build and preview the docs locally, you will need to install the following software:
5+
To build the documentation of this project, you need a UNIX-based operating system. Windows is not fully supported as it does not support symlinks.
6+
7+
You also need the following software installed to generate the reference documentation of the driver:
88

9-
- Git
10-
- Python 3.7
11-
- pip
12-
- Java JDK 8 or above
9+
- Java JDK 8 or higher
1310
- Maven
1411

15-
## Commands
12+
Once you have installed the above software, you can build and preview the documentation by following the steps outlined in the `Quickstart guide <https://sphinx-theme.scylladb.com/stable/getting-started/quickstart.html>`_.
13+
14+
## Custom commands
1615

17-
For more information, see [Commands](https://sphinx-theme.scylladb.com/stable/commands.html).
16+
To generate the reference documentation of the driver, run the command `make javadoc`. This command generates the reference documentation using the Javadoc tool in the `_build/dirhtml/<VERSION>/api` directory.

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pristine: clean
4343
clean:
4444
rm -rf $(BUILDDIR)/*
4545
rm -rf $(SOURCEDIR)/*
46+
rm -f poetry.lock
4647

4748
# Generate output commands
4849
.PHONY: dirhtml

docs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pyyaml = "6.0"
1010
pygments = "2.2.0"
1111
recommonmark = "0.7.1"
1212
redirects_cli ="~0.1.3"
13-
sphinx-scylladb-theme = "~1.3.1"
13+
sphinx-scylladb-theme = "~1.4.1"
1414
sphinx-sitemap = "2.1.0"
1515
sphinx-autobuild = "2021.3.14"
1616
Sphinx = "4.3.2"

docs/source/conf.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
from datetime import date
55
import re
6+
import warnings
67
from docutils import nodes
78
from recommonmark.transform import AutoStructify
89
from recommonmark.parser import CommonMarkParser, splitext, urlparse
@@ -169,6 +170,13 @@ def replace_relative_links(app, docname, source):
169170
result = re.sub(key, app.config.replacements[key], result)
170171
source[0] = result
171172

173+
174+
def build_inited(app):
175+
warnings.filterwarnings(
176+
action="ignore",
177+
message=r".*Document name contains underscores:.*",
178+
)
179+
172180
def build_finished(app, exception):
173181
version_name = os.getenv("SPHINX_MULTIVERSION_NAME", "")
174182
version_name = "/" + version_name if version_name else ""
@@ -177,6 +185,9 @@ def build_finished(app, exception):
177185
redirects_cli.create(redirect_to=redirect_to,out_file=out_file)
178186

179187
def setup(app):
188+
# Filter warnings
189+
app.connect('builder-inited', build_inited)
190+
180191
# Setup Markdown parser
181192
app.add_source_parser(CustomCommonMarkParser)
182193
app.add_config_value('recommonmark_config', {
@@ -195,4 +206,5 @@ def setup(app):
195206
app.connect('source-read', replace_relative_links)
196207

197208
# Create redirect to JavaDoc API
198-
app.connect('build-finished', build_finished)
209+
app.connect('build-finished', build_finished)
210+

0 commit comments

Comments
 (0)