mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix collectors does not returns ext-metadata
This commit is contained in:
parent
46244ae9f8
commit
75c7c80299
@ -143,6 +143,12 @@ class DownloadFileCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(ImageCollector)
|
app.add_env_collector(ImageCollector)
|
||||||
app.add_env_collector(DownloadFileCollector)
|
app.add_env_collector(DownloadFileCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
@ -18,7 +18,7 @@ from sphinx.environment.collectors import EnvironmentCollector
|
|||||||
|
|
||||||
if False:
|
if False:
|
||||||
# For type annotation
|
# For type annotation
|
||||||
from typing import Set # NOQA
|
from typing import Dict, Set # NOQA
|
||||||
from docutils import nodes # NOQA
|
from docutils import nodes # NOQA
|
||||||
from sphinx.sphinx import Sphinx # NOQA
|
from sphinx.sphinx import Sphinx # NOQA
|
||||||
from sphinx.environment import BuildEnvironment # NOQA
|
from sphinx.environment import BuildEnvironment # NOQA
|
||||||
@ -56,5 +56,11 @@ class DependenciesCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(DependenciesCollector)
|
app.add_env_collector(DependenciesCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
@ -15,7 +15,7 @@ from sphinx.environment.collectors import EnvironmentCollector
|
|||||||
|
|
||||||
if False:
|
if False:
|
||||||
# For type annotation
|
# For type annotation
|
||||||
from typing import Set # NOQA
|
from typing import Dict, Set # NOQA
|
||||||
from docutils import nodes # NOQA
|
from docutils import nodes # NOQA
|
||||||
from sphinx.applicatin import Sphinx # NOQA
|
from sphinx.applicatin import Sphinx # NOQA
|
||||||
from sphinx.environment import BuildEnvironment # NOQA
|
from sphinx.environment import BuildEnvironment # NOQA
|
||||||
@ -56,5 +56,11 @@ class IndexEntriesCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(IndexEntriesCollector)
|
app.add_env_collector(IndexEntriesCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
@ -15,7 +15,7 @@ from sphinx.environment.collectors import EnvironmentCollector
|
|||||||
|
|
||||||
if False:
|
if False:
|
||||||
# For type annotation
|
# For type annotation
|
||||||
from typing import Set # NOQA
|
from typing import Dict, Set # NOQA
|
||||||
from docutils import nodes # NOQA
|
from docutils import nodes # NOQA
|
||||||
from sphinx.sphinx import Sphinx # NOQA
|
from sphinx.sphinx import Sphinx # NOQA
|
||||||
from sphinx.environment import BuildEnvironment # NOQA
|
from sphinx.environment import BuildEnvironment # NOQA
|
||||||
@ -69,5 +69,11 @@ class MetadataCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(MetadataCollector)
|
app.add_env_collector(MetadataCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
@ -16,7 +16,7 @@ from sphinx.transforms import SphinxContentsFilter
|
|||||||
|
|
||||||
if False:
|
if False:
|
||||||
# For type annotation
|
# For type annotation
|
||||||
from typing import Set # NOQA
|
from typing import Dict, Set # NOQA
|
||||||
from docutils import nodes # NOQA
|
from docutils import nodes # NOQA
|
||||||
from sphinx.sphinx import Sphinx # NOQA
|
from sphinx.sphinx import Sphinx # NOQA
|
||||||
from sphinx.environment import BuildEnvironment # NOQA
|
from sphinx.environment import BuildEnvironment # NOQA
|
||||||
@ -62,5 +62,11 @@ class TitleCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(TitleCollector)
|
app.add_env_collector(TitleCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
@ -284,5 +284,11 @@ class TocTreeCollector(EnvironmentCollector):
|
|||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# type: (Sphinx) -> None
|
# type: (Sphinx) -> Dict
|
||||||
app.add_env_collector(TocTreeCollector)
|
app.add_env_collector(TocTreeCollector)
|
||||||
|
|
||||||
|
return {
|
||||||
|
'version': 'builtin',
|
||||||
|
'parallel_read_safe': True,
|
||||||
|
'parallel_write_safe': True,
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user