Skip to content

Commit 93bec6f

Browse files
authored
Configure Read The Docs (#251)
* Add a ReadTheDocs config file * Make the link unnamed * Drop the duplicate module entry in Sphinx docs * Stop referring to a non-existent static dir in doc
1 parent a0c03c1 commit 93bec6f

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

.readthedocs.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
3+
# .readthedocs.yaml
4+
# Read the Docs configuration file
5+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
6+
# for details
7+
8+
version: 2
9+
10+
sphinx:
11+
builder: dirhtml
12+
configuration: docs/conf.py
13+
fail_on_warning: true
14+
15+
build:
16+
os: ubuntu-22.04
17+
tools:
18+
python: >-
19+
3.11
20+
21+
python:
22+
install:
23+
- method: pip
24+
path: .
25+
- requirements: docs/requirements.txt
26+
system_packages: false
27+
28+
...

docs/api.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ TOML File
3535
TOML Items
3636
----------
3737

38-
.. module:: tomlkit.items
39-
4038
.. automodule:: tomlkit.items
4139
:show-inheritance:
4240
:members:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
# Add any paths that contain custom static files (such as style sheets) here,
5858
# relative to this directory. They are copied after the builtin static files,
5959
# so a file named "default.css" will overwrite the builtin "default.css".
60-
html_static_path = ["_static"]
60+
html_static_path = []

tomlkit/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def string(
119119
boolean flags (e.g. ``literal=True`` and/or ``multiline=True``)
120120
can be used for personalization.
121121
122-
For more information, please check the spec: `https://toml.io/en/v1.0.0#string`_.
122+
For more information, please check the spec: `<https://toml.io/en/v1.0.0#string>`__.
123123
124124
Common escaping rules will be applied for basic strings.
125125
This can be controlled by explicitly setting ``escape=False``.

0 commit comments

Comments
 (0)