|
7 | 7 | import os |
8 | 8 | import sys |
9 | 9 | import time |
10 | | -from collections import OrderedDict |
11 | 10 | from os import path |
12 | 11 | from typing import TYPE_CHECKING, Any, Callable |
13 | 12 |
|
|
36 | 35 | from sphinx.util.osutil import ensuredir |
37 | 36 | from sphinx.util.template import SphinxRenderer |
38 | 37 |
|
39 | | -EXTENSIONS = OrderedDict([ |
40 | | - ('autodoc', __('automatically insert docstrings from modules')), |
41 | | - ('doctest', __('automatically test code snippets in doctest blocks')), |
42 | | - ('intersphinx', __('link between Sphinx documentation of different projects')), |
43 | | - ('todo', __('write "todo" entries that can be shown or hidden on build')), |
44 | | - ('coverage', __('checks for documentation coverage')), |
45 | | - ('imgmath', __('include math, rendered as PNG or SVG images')), |
46 | | - ('mathjax', __('include math, rendered in the browser by MathJax')), |
47 | | - ('ifconfig', __('conditional inclusion of content based on config values')), |
48 | | - ('viewcode', __('include links to the source code of documented Python objects')), |
49 | | - ('githubpages', __('create .nojekyll file to publish the document on GitHub pages')), |
50 | | -]) |
| 38 | +EXTENSIONS = { |
| 39 | + 'autodoc': __('automatically insert docstrings from modules'), |
| 40 | + 'doctest': __('automatically test code snippets in doctest blocks'), |
| 41 | + 'intersphinx': __('link between Sphinx documentation of different projects'), |
| 42 | + 'todo': __('write "todo" entries that can be shown or hidden on build'), |
| 43 | + 'coverage': __('checks for documentation coverage'), |
| 44 | + 'imgmath': __('include math, rendered as PNG or SVG images'), |
| 45 | + 'mathjax': __('include math, rendered in the browser by MathJax'), |
| 46 | + 'ifconfig': __('conditional inclusion of content based on config values'), |
| 47 | + 'viewcode': __('include links to the source code of documented Python objects'), |
| 48 | + 'githubpages': __('create .nojekyll file to publish the document on GitHub pages'), |
| 49 | +} |
51 | 50 |
|
52 | 51 | DEFAULTS = { |
53 | 52 | 'path': '.', |
|
0 commit comments