Skip to content

Commit edab90c

Browse files
committed
Ruff changes to docs/conf.py
1 parent 5b1ead1 commit edab90c

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

docs/conf.py

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# templates_path = ["_templates"]
3636

3737
# The suffix of source filenames.
38-
source_suffix = {'.rst': 'restructuredtext'}
38+
source_suffix = {".rst": "restructuredtext"}
3939

4040
# The encoding of source files.
4141
# source_encoding = 'utf-8-sig'
@@ -127,13 +127,11 @@
127127
"documentation_font": "Open Sans",
128128
"monospace_font": "Ubuntu Mono",
129129
"monospace_font_size": "1.1rem",
130-
131130
# "style" can take the following values: "blue", "indigo", "purple",
132131
# "pink", "red", "orange", "yellow", "green", "tail", and "default".
133132
"style": "blue",
134133
"pygments_light_style": "pastie",
135134
"pygments_dark_style": "dracula",
136-
137135
# Fonts are customizable (and are not retrieved online).
138136
# https://sphinx-nefertiti.readthedocs.io/en/latest/users-guide/customization/fonts.html
139137
"logo": "logo_400px.png",
@@ -143,23 +141,15 @@
143141
"repository_url": "https://github.com/prompt-toolkit/python-prompt-toolkit",
144142
"repository_name": "python-prompt-toolkit",
145143
"current_version": "latest",
146-
"versions": [
147-
(item, docs_fmt_url.format(release=item)) for item in releases
148-
],
144+
"versions": [(item, docs_fmt_url.format(release=item)) for item in releases],
149145
"header_links": [
150-
{
151-
"text": "Getting started",
152-
"link": "pages/getting_started"
153-
},
146+
{"text": "Getting started", "link": "pages/getting_started"},
154147
{
155148
"text": "Tutorials",
156149
"match": "/tutorials/*",
157150
"dropdown": (
158-
{
159-
"text": "Build an SQLite REPL",
160-
"link": "pages/tutorials/repl"
161-
},
162-
)
151+
{"text": "Build an SQLite REPL", "link": "pages/tutorials/repl"},
152+
),
163153
},
164154
{
165155
"text": "Advanced",
@@ -200,9 +190,9 @@
200190
},
201191
{
202192
"text": "The rendering pipeline",
203-
"link": "pages/advanced_topics/rendering_pipeline"
204-
}
205-
)
193+
"link": "pages/advanced_topics/rendering_pipeline",
194+
},
195+
),
206196
},
207197
{
208198
"text": "Reference",
@@ -225,8 +215,8 @@
225215
{
226216
"text": "Issues",
227217
"link": "https://github.com/prompt-toolkit/python-prompt-toolkit/issues",
228-
}
229-
]
218+
},
219+
],
230220
}
231221

232222

0 commit comments

Comments
 (0)