Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return metadata in setup #37

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sphinx_math_dollar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
from . import _version
__version__ = _version.get_versions()['version']


from .math_dollar import split_dollars
from .extension import setup, NODE_BLACKLIST

__all__ = ['split_dollars', 'setup', 'NODE_BLACKLIST']

from . import _version
__version__ = _version.get_versions()['version']
7 changes: 7 additions & 0 deletions sphinx_math_dollar/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys

from .math_dollar import split_dollars
from . import __version__

from docutils.nodes import GenericNodeVisitor, Text, math, math_block, FixedTextElement, literal
from docutils.transforms import Transform
Expand Down Expand Up @@ -67,3 +68,9 @@ def setup(app):
app.add_config_value('parallel_read_safe', True, '')

app.connect('config-inited', config_inited)

return {
'version': __version__,
'parallel_read_safe': True,
'parallel_write_safe': True,
}
Loading