-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Sphinx extension for glossary referencing:
ipypublish.sphinx.gls
(
#75) - Added Sphinx extension for glossary referencing: `ipypublish.sphinx.gls`. See :ref:`sphinx_ext_gls` - Added `ConvertBibGloss` post-processor, to convert a bibglossary to the required format - Added notebook-level metadata options for `bibglossary` and `sphinx` (see :ref:`meta_doclevel_schema`) - Large refactoring and improvements for test suite, particularly for testing of Sphinx extensions (using the Sphinx pytest fixtures) and creation of the `IpyTestApp` fixture - fixes #71 Back-compatibility breaking changes: - renamed Sphinx notebook extension from `ipypublish.ipysphinx` to `ipypublish.sphinx.notebook` (see :ref:`sphinx_ext_notebook`) - `ipypublish.postprocessors.base.IPyPostProcessor.run_postprocess` input signature changed (and consequently it has changes for all post-processors) `v0.9`: ```python def run_postprocess(self, stream, filepath, resources): output_folder = filepath.parent ``` `v0.10`: ``` python def run_postprocess(self, stream, mimetype, filepath, resources): output_folder = filepath.parent ```
- Loading branch information
1 parent
a7f3a31
commit 230b856
Showing
226 changed files
with
6,838 additions
and
3,870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[run] | ||
omit = | ||
ipypublish/ipysphinx/docutils_transforms.py | ||
ipypublish/ipysphinx/extension.py | ||
ipypublish/ipysphinx/directives.py | ||
ipypublish/scripts/nb_setup.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
exclude = | ||
setup.py, | ||
ipypublish/scripts/ipynb_latex_setup.py, | ||
ipypublish/tests/test_files/basic_nb/expected/python_with_meta.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"super": { | ||
"prefix": "super", | ||
"scope": "jinja-latex", | ||
"body": "((( super() )))", | ||
"description": "call inherited block" | ||
}, | ||
"set": { | ||
"prefix": "set", | ||
"scope": "jinja-latex", | ||
"body": "((* set ${1:name} = ${2:value} *))", | ||
"description": "set variable" | ||
}, | ||
"print": { | ||
"prefix": "print", | ||
"scope": "inja-latex", | ||
"body": "((( ${1:variable} )))", | ||
"description": "print variable" | ||
}, | ||
"block": { | ||
"prefix": "block", | ||
"scope": "jinja-latex", | ||
"body": [ | ||
"((* block ${1:name} *))", | ||
"$2", | ||
"((* endblock ${1:name} *))" | ||
], | ||
"description": "jinja block" | ||
}, | ||
"macro": { | ||
"prefix": "macro", | ||
"scope": "jinja-latex", | ||
"body": [ | ||
"((* macro ${1:name} *))", | ||
"$2", | ||
"((* endmacro *))" | ||
], | ||
"description": "macro function" | ||
}, | ||
"if": { | ||
"prefix": "if", | ||
"scope": "jinja-latex", | ||
"body": [ | ||
"((* if ${1:condition} *))", | ||
"$2", | ||
"((* endif *))" | ||
], | ||
"description": "if condition" | ||
}, | ||
"if-else": { | ||
"prefix": "if-else", | ||
"scope": "jinja-latex", | ||
"body": [ | ||
"((* if ${1:condition} *))", | ||
"$2", | ||
"((* else *))", | ||
"$3", | ||
"((* endif *))" | ||
], | ||
"description": "if-else condition" | ||
}, | ||
"if-elif-else": { | ||
"prefix": "if-elif-else", | ||
"scope": "jinja-latex", | ||
"body": [ | ||
"((* if ${1:condition} *))", | ||
"$2", | ||
"((* else *))", | ||
"$3", | ||
"((* elif ${1:condition2} *))", | ||
"", | ||
"((* endif *))" | ||
], | ||
"description": "if-else condition" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest_plugins = 'sphinx.testing.fixtures' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@glsterm{gtkey1, | ||
name = {name}, | ||
description = {full description \textbf{with latex}}, | ||
plural = {some names}, | ||
text = {alternative text}, | ||
sort = {a}, | ||
symbol = {\ensuremath{n}} | ||
} | ||
|
||
@glsacronym{akey1, | ||
abbreviation = {MA}, | ||
longname = {My Abbreviation}, | ||
description = {full description}, | ||
plural = {MAs}, | ||
longplural = {Some Abbreviations} | ||
} | ||
|
||
@glssymbol{symbol1, | ||
name = {\ensuremath{\pi}}, | ||
description = {full description}, | ||
plural = {\ensuremath{\pi}s}, | ||
text = {alternative text}, | ||
sort = {b} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@glsterm{gtkey2, | ||
name = {name}, | ||
description = {full description \textbf{with latex}}, | ||
plural = {some names}, | ||
text = {alternative text}, | ||
sort = {a}, | ||
symbol = {\ensuremath{n}} | ||
} | ||
|
||
@glsacronym{akey2, | ||
abbreviation = {MA}, | ||
longname = {My Abbreviation}, | ||
description = {full description}, | ||
plural = {MAs}, | ||
longplural = {Some Abbreviations} | ||
} | ||
|
||
@glssymbol{symbol2, | ||
name = {\ensuremath{\pi}}, | ||
description = {full description}, | ||
plural = {\ensuremath{\pi}s}, | ||
text = {alternative text}, | ||
sort = {b} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.