diff options
author | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-03-05 18:59:05 +0000 |
---|---|---|
committer | Adam Turner <9087854+aa-turner@users.noreply.github.com> | 2023-03-05 19:03:06 +0000 |
commit | 29d7166af203b33958f7f6c261ae3813e27b32cc (patch) | |
tree | a5fe2f329f5c2db7826b203334ca8093142bc2e3 /sphinx/cmd/quickstart.py | |
parent | 44326fe2476db44e8c2a60d9326c9c3ac2865c03 (diff) | |
download | sphinx-git-29d7166af203b33958f7f6c261ae3813e27b32cc.tar.gz |
Drop OrderedDict
Since Python 3.7, dicts maintain insertion order.
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r-- | sphinx/cmd/quickstart.py | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py index cda8181cc..17ae61208 100644 --- a/sphinx/cmd/quickstart.py +++ b/sphinx/cmd/quickstart.py @@ -7,7 +7,6 @@ import locale import os import sys import time -from collections import OrderedDict from os import path from typing import TYPE_CHECKING, Any, Callable @@ -36,18 +35,18 @@ from sphinx.util.console import bold, color_terminal, colorize, nocolor, red # from sphinx.util.osutil import ensuredir from sphinx.util.template import SphinxRenderer -EXTENSIONS = OrderedDict([ - ('autodoc', __('automatically insert docstrings from modules')), - ('doctest', __('automatically test code snippets in doctest blocks')), - ('intersphinx', __('link between Sphinx documentation of different projects')), - ('todo', __('write "todo" entries that can be shown or hidden on build')), - ('coverage', __('checks for documentation coverage')), - ('imgmath', __('include math, rendered as PNG or SVG images')), - ('mathjax', __('include math, rendered in the browser by MathJax')), - ('ifconfig', __('conditional inclusion of content based on config values')), - ('viewcode', __('include links to the source code of documented Python objects')), - ('githubpages', __('create .nojekyll file to publish the document on GitHub pages')), -]) +EXTENSIONS = { + 'autodoc': __('automatically insert docstrings from modules'), + 'doctest': __('automatically test code snippets in doctest blocks'), + 'intersphinx': __('link between Sphinx documentation of different projects'), + 'todo': __('write "todo" entries that can be shown or hidden on build'), + 'coverage': __('checks for documentation coverage'), + 'imgmath': __('include math, rendered as PNG or SVG images'), + 'mathjax': __('include math, rendered in the browser by MathJax'), + 'ifconfig': __('conditional inclusion of content based on config values'), + 'viewcode': __('include links to the source code of documented Python objects'), + 'githubpages': __('create .nojekyll file to publish the document on GitHub pages'), +} DEFAULTS = { 'path': '.', |