Skip to content

Commit cd8fe92

Browse files
dgarcia360Bouncheck
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 (cherry picked from commit 0d1f1c4)
1 parent ae8be83 commit cd8fe92

File tree

4 files changed

+22
-10
lines changed

4 files changed

+22
-10
lines changed

README-dev.md

+8-9
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

+1
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

+1-1
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

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from datetime import date
66
import yaml
77
import re
8+
import warnings
89
from docutils import nodes
910
from recommonmark.transform import AutoStructify
1011
from recommonmark.parser import CommonMarkParser, splitext, urlparse
@@ -171,6 +172,13 @@ def replace_relative_links(app, docname, source):
171172
result = re.sub(key, app.config.replacements[key], result)
172173
source[0] = result
173174

175+
176+
def build_inited(app):
177+
warnings.filterwarnings(
178+
action="ignore",
179+
message=r".*Document name contains underscores:.*",
180+
)
181+
174182
def build_finished(app, exception):
175183
version_name = os.getenv("SPHINX_MULTIVERSION_NAME", "")
176184
version_name = "/" + version_name if version_name else ""
@@ -179,6 +187,9 @@ def build_finished(app, exception):
179187
redirects_cli.create(redirect_to=redirect_to,out_file=out_file)
180188

181189
def setup(app):
190+
# Filter warnings
191+
app.connect('builder-inited', build_inited)
192+
182193
# Setup Markdown parser
183194
app.add_source_parser(CustomCommonMarkParser)
184195
app.add_config_value('recommonmark_config', {
@@ -198,3 +209,4 @@ def setup(app):
198209

199210
# Create redirect to JavaDoc API
200211
app.connect('build-finished', build_finished)
212+

0 commit comments

Comments
 (0)