Skip to content

Commit 4cbc84e

Browse files
authored
[+] add .readthedocs.yaml configuration file v2 (#608)
[+] add `.readthedocs.yaml` configuration file v2
1 parent 03aed87 commit 4cbc84e

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.readthedocs.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the version of Python and other tools we might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
13+
# Build documentation in the docs/ directory with Sphinx
14+
sphinx:
15+
configuration: docs/conf.py
16+
17+
python:
18+
install:
19+
- requirements: docs/requirements.txt

docs/conf.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@
88

99
from datetime import datetime
1010

11-
from recommonmark.parser import CommonMarkParser
12-
1311
extensions = []
1412
templates_path = ['templates', '_templates', '.templates']
1513
source_suffix = ['.rst', '.md']
16-
source_parsers = {
17-
'.md': CommonMarkParser,
18-
}
1914
project = u'pg_timetable'
2015
copyright = str(datetime.now().year)
2116

@@ -25,7 +20,7 @@
2520
exclude_patterns = ['_build']
2621
pygments_style = 'sphinx'
2722
htmlhelp_basename = 'pg-timetable'
28-
html_theme = 'sphinx_rtd_theme'
23+
html_theme = "sphinx_rtd_theme"
2924
file_insertion_enabled = False
3025
latex_documents = [
3126
('index', 'pg-timetable.tex', u'pg_timetable Documentation',

docs/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Sphinx
2+
sphinx_rtd_theme

0 commit comments

Comments
 (0)