Skip to content

Commit b6dd1c2

Browse files
committed
fix docs building
1 parent 1ff516b commit b6dd1c2

File tree

3 files changed

+47
-17
lines changed

3 files changed

+47
-17
lines changed

.readthedocs.yaml

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

docs/conf.py

+23-17
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,24 @@
2020
import sys
2121
sys.path.insert(0, os.path.abspath('..'))
2222

23-
# -- General configuration ------------------------------------------------
23+
24+
# -- Project information -----------------------------------------------------
25+
26+
project = u'tlslite-ng'
27+
copyright = u'2023, Hubert Kario'
28+
author = u'Hubert Kario'
29+
30+
# The version info for the project you're documenting, acts as replacement for
31+
# |version| and |release|, also used in various other places throughout the
32+
# built documents.
33+
#
34+
# The short X.Y version.
35+
version = u'0.8'
36+
# The full version, including alpha/beta/rc tags.
37+
release = u'0.8.0-beta1'
38+
39+
40+
# -- General configuration ---------------------------------------------------
2441

2542
# If your documentation needs a minimal Sphinx version, state it here.
2643
#
@@ -32,6 +49,9 @@
3249
extensions = [
3350
'sphinx.ext.autodoc',
3451
'sphinx.ext.intersphinx',
52+
'sphinx.ext.coverage',
53+
'sphinx.ext.imgmath',
54+
'sphinx.ext.viewcode',
3555
]
3656

3757
# Add any paths that contain templates here, relative to this directory.
@@ -50,26 +70,12 @@
5070
# The master toctree document.
5171
master_doc = 'index'
5272

53-
# General information about the project.
54-
project = u'tlslite-ng'
55-
copyright = u'2023, Hubert Kario'
56-
author = u'Hubert Kario'
57-
58-
# The version info for the project you're documenting, acts as replacement for
59-
# |version| and |release|, also used in various other places throughout the
60-
# built documents.
61-
#
62-
# The short X.Y version.
63-
version = u'0.8'
64-
# The full version, including alpha/beta/rc tags.
65-
release = u'0.8.0-beta1'
66-
6773
# The language for content autogenerated by Sphinx. Refer to documentation
6874
# for a list of supported languages.
6975
#
7076
# This is also used if you do content translation via gettext catalogs.
7177
# Usually you set "language" from the command line for these cases.
72-
language = None
78+
language = "en"
7379

7480
# There are two options for replacing |today|: either, you set today to some
7581
# non-false value, then it is used:
@@ -320,7 +326,7 @@
320326
# dir menu entry, description, category)
321327
texinfo_documents = [
322328
(master_doc, 'tlslite-ng', u'tlslite-ng Documentation',
323-
author, 'tlslite-ng', 'One line description of project.',
329+
author, 'tlslite-ng', 'Pure python implementation of TLS.',
324330
'Miscellaneous'),
325331
]
326332

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx-rtd-theme

0 commit comments

Comments
 (0)