Skip to content

Commit af7ac36

Browse files
committed
Update ReadTheDocs configuration.
Plus a small clarification to the documentation.
1 parent a7d4643 commit af7ac36

3 files changed

Lines changed: 31 additions & 14 deletions

File tree

.readthedocs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
build:
8+
os: ubuntu-22.04
9+
tools:
10+
python: "3.12"
11+
12+
sphinx:
13+
configuration: docs/conf.py

docs/Docker image.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ is similar to:
5454
We recommend adding yourself to the ``docker`` group.
5555

5656
What the ``cms-test.sh`` command does is: first build a fresh CMS image when
57-
necessary, and then create (assuming you didn't specify the ``-p`` flag) a
58-
``cms-testdb-1`` container for the database, and a
59-
``cms-testcms-run-<random_string>`` container for CMS.
57+
necessary, and then create (assuming you are on the ``main`` git branch) a
58+
``main-testdb-1`` container for the database, and a
59+
``main-testcms-run-<random_string>`` container for CMS.
6060

6161
The database container **will not** be automatically deleted, while the CMS
6262
container will be automatically deleted upon exiting (because of the ``--rm``

docs/conf.py

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
# serve to show the default.
1313

1414
import sys, os
15+
from datetime import datetime
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the
@@ -40,8 +41,9 @@
4041
master_doc = 'index'
4142

4243
# General information about the project.
43-
project = u'CMS'
44-
copyright = u'2020, The CMS development team'
44+
project = "CMS"
45+
_current_year = datetime.now().year
46+
copyright = f"{_current_year}, The CMS development team"
4547

4648
# The version info for the project you're documenting, acts as replacement for
4749
# |version| and |release|, also used in various other places throughout the
@@ -183,8 +185,7 @@
183185
# Grouping the document tree into LaTeX files. List of tuples
184186
# (source start file, target name, title, author, documentclass [howto/manual]).
185187
latex_documents = [
186-
('index', 'cms.tex', u'CMS Documentation',
187-
u'The CMS development team', 'manual'),
188+
("index", "cms.tex", "CMS Documentation", "The CMS development team", "manual"),
188189
]
189190

190191
# The name of an image file (relative to this directory) to place at the top of
@@ -212,10 +213,7 @@
212213

213214
# One entry per manual page. List of tuples
214215
# (source start file, name, description, authors, manual section).
215-
man_pages = [
216-
('index', 'CMS', u'CMS Documentation',
217-
[u'The CMS development team'], 1)
218-
]
216+
man_pages = [("index", "CMS", "CMS Documentation", ["The CMS development team"], 1)]
219217

220218
# If true, show URL addresses after external links.
221219
#man_show_urls = False
@@ -227,9 +225,15 @@
227225
# (source start file, target name, title, author,
228226
# dir menu entry, description, category)
229227
texinfo_documents = [
230-
('index', 'CMS', u'CMS Documentation',
231-
u'The CMS development team', 'CMS', 'Contest Management System.',
232-
'Miscellaneous'),
228+
(
229+
"index",
230+
"CMS",
231+
"CMS Documentation",
232+
"The CMS development team",
233+
"CMS",
234+
"Contest Management System.",
235+
"Miscellaneous",
236+
),
233237
]
234238

235239
# Documents to append as an appendix to all manuals.

0 commit comments

Comments
 (0)