|
1 |
| -#!/usr/bin/env python |
2 |
| -# The MIT License (MIT) |
3 |
| -# Copyright (c) 2020 Karl-Petter Lindegaard |
4 |
| -# |
5 |
| -# smbus3 documentation build configuration file. |
6 |
| -# |
7 |
| -# This file is execfile()d with the current directory set to its |
8 |
| -# containing dir. |
9 |
| -# |
10 |
| -# Note that not all possible configuration values are present in this |
11 |
| -# autogenerated file. |
12 |
| -# |
13 |
| -# All configuration values have a default; values that are commented out |
14 |
| -# serve to show the default. |
15 |
| - |
16 |
| -# If extensions (or modules to document with autodoc) are in another directory, |
17 |
| -# add these directories to sys.path here. If the directory is relative to the |
18 |
| -# documentation root, use os.path.abspath to make it absolute, like shown here. |
19 |
| -# |
| 1 | +#!/usr/bin/env python3 |
20 | 2 | import os
|
21 | 3 | import sys
|
22 | 4 |
|
|
25 | 7 | from smbus3 import __version__
|
26 | 8 |
|
27 | 9 | # -- General configuration ------------------------------------------------
|
28 |
| - |
29 |
| -# If your documentation needs a minimal Sphinx version, state it here. |
30 |
| -# |
31 |
| -# needs_sphinx = '1.0' |
| 10 | +needs_sphinx = "7.0" |
32 | 11 |
|
33 | 12 | # Add any Sphinx extension module names here, as strings. They can be
|
34 | 13 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
39 | 18 | templates_path = ["_templates"]
|
40 | 19 |
|
41 | 20 | # The suffix(es) of source filenames.
|
42 |
| -# You can specify multiple suffix as a list of string: |
43 |
| -# |
44 |
| -# source_suffix = ['.rst', '.md'] |
45 | 21 | source_suffix = ".rst"
|
46 | 22 |
|
47 | 23 | # The master toctree document.
|
|
50 | 26 | # General information about the project.
|
51 | 27 | project = "smbus3"
|
52 | 28 | doc_title = f"{project} Documentation"
|
53 |
| -author = "Karl-Petter Lindegaard" |
54 |
| -copyright = f"2017-2024, {author}" |
55 |
| - |
56 |
| -# The version info for the project you're documenting, acts as replacement for |
57 |
| -# |version| and |release|, also used in various other places throughout the |
58 |
| -# built documents. |
59 |
| -# |
| 29 | +author = "Elliott Indiran" |
| 30 | +copyright = f"2024, {author}" |
60 | 31 | # The short X.Y version.
|
61 | 32 | version = __version__
|
62 | 33 | # The full version, including alpha/beta/rc tags.
|
63 | 34 | release = __version__
|
64 |
| - |
65 |
| -# The language for content autogenerated by Sphinx. Refer to documentation |
66 |
| -# for a list of supported languages. |
67 |
| -# |
68 |
| -# This is also used if you do content translation via gettext catalogs. |
69 |
| -# Usually you set "language" from the command line for these cases. |
| 35 | +ol_description = ( |
| 36 | + "smbus3 is a drop-in replacement for smbus2, smbus-cffi, smbus-python " |
| 37 | + + "written in pure Python, intended for use with Python 3.9+" |
| 38 | +) |
| 39 | +gr_category = "Miscellaneous" |
| 40 | +# The language for content autogenerated by Sphinx. |
70 | 41 | language = "en"
|
71 | 42 |
|
72 | 43 | # List of patterns, relative to source directory, that match files and
|
73 | 44 | # directories to ignore when looking for source files.
|
74 | 45 | # This patterns also effect to html_static_path and html_extra_path
|
75 | 46 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
76 |
| - |
77 | 47 | # The name of the Pygments (syntax highlighting) style to use.
|
78 | 48 | pygments_style = "sphinx"
|
79 |
| - |
80 | 49 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
81 | 50 | todo_include_todos = False
|
82 |
| - |
83 | 51 | autodoc_default_options = {
|
84 | 52 | "members": True,
|
85 | 53 | "member-order": "bysource",
|
|
91 | 59 |
|
92 | 60 | # -- Options for HTML output ----------------------------------------------
|
93 | 61 |
|
94 |
| -# The theme to use for HTML and HTML Help pages. See the documentation for |
95 |
| -# a list of builtin themes. |
96 |
| -# |
| 62 | +# The theme to use for HTML and HTML Help pages. |
97 | 63 | html_theme = "alabaster"
|
98 |
| - |
99 |
| -# Theme options are theme-specific and customize the look and feel of a theme |
100 |
| -# further. For a list of options available for each theme, see the |
101 |
| -# documentation. |
102 |
| -# |
103 |
| -# html_theme_options = {} |
104 |
| - |
105 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
106 |
| -# relative to this directory. They are copied after the builtin static files, |
107 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
108 |
| -# html_static_path = ['_static'] |
109 |
| - |
110 |
| -# Custom sidebar templates, must be a dictionary that maps document names |
111 |
| -# to template names. |
112 |
| -# |
113 | 64 | # This is required for the alabaster theme
|
114 | 65 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
|
115 | 66 | html_sidebars = {
|
|
119 | 70 | ]
|
120 | 71 | }
|
121 | 72 |
|
122 |
| - |
123 | 73 | # -- Options for HTMLHelp output ------------------------------------------
|
124 | 74 |
|
125 | 75 | # Output file base name for HTML help builder.
|
126 | 76 | htmlhelp_basename = "smbus3doc"
|
127 | 77 |
|
128 |
| - |
129 | 78 | # -- Options for LaTeX output ---------------------------------------------
|
130 | 79 |
|
131 | 80 | latex_elements = {
|
132 | 81 | # The paper size ('letterpaper' or 'a4paper').
|
133 |
| - # |
134 |
| - # 'papersize': 'letterpaper', |
| 82 | + "papersize": "letterpaper", |
135 | 83 | # The font size ('10pt', '11pt' or '12pt').
|
136 |
| - # |
137 |
| - # 'pointsize': '10pt', |
138 |
| - # Additional stuff for the LaTeX preamble. |
139 |
| - # |
140 |
| - # 'preamble': '', |
| 84 | + "pointsize": "10pt", |
141 | 85 | # Latex figure (float) alignment
|
142 |
| - # |
143 |
| - # 'figure_align': 'htbp', |
| 86 | + "figure_align": "htbp", |
144 | 87 | }
|
145 | 88 |
|
146 | 89 | # Grouping the document tree into LaTeX files. List of tuples
|
|
154 | 97 |
|
155 | 98 | # One entry per manual page. List of tuples
|
156 | 99 | # (source start file, name, description, authors, manual section).
|
157 |
| -man_pages = [(master_doc, project, doc_title, [author], 1)] |
| 100 | +man_section = 1 |
| 101 | +man_pages = [(master_doc, project, doc_title, [author], man_section)] |
158 | 102 |
|
159 | 103 |
|
160 | 104 | # -- Options for Texinfo output -------------------------------------------
|
|
169 | 113 | doc_title,
|
170 | 114 | author,
|
171 | 115 | project,
|
172 |
| - "One line description of project.", |
173 |
| - "Miscellaneous", |
| 116 | + ol_description, |
| 117 | + gr_category, |
174 | 118 | ),
|
175 | 119 | ]
|
176 | 120 |
|
|
0 commit comments