-
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.
Outline templates: use jinja file, instead of json (#62)
- extracted templates into separate files - use template outline file instead of json schema - improve front end logging - update documentation - version bump - added tests
- Loading branch information
1 parent
608d936
commit 5b4e82a
Showing
86 changed files
with
1,288 additions
and
1,361 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
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,2 +1,3 @@ | ||
recursive-include ipypublish *.json | ||
recursive-include ipypublish *.j2 | ||
recursive-include ipypublish/tests/test_files * |
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 @@ | ||
skips: ['B101'] # TODO this should only skip in test files, see https://github.com/PyCQA/bandit/issues/346 |
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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
ipypublish\.templates\.create\_template module | ||
============================================== | ||
|
||
.. automodule:: ipypublish.templates.create_template | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/api/ipypublish.templates.outline_schemas.convert_format_str.rst
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,7 @@ | ||
ipypublish\.templates\.outline\_schemas\.convert\_format\_str module | ||
==================================================================== | ||
|
||
.. automodule:: ipypublish.templates.outline_schemas.convert_format_str | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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,19 @@ | ||
Examples | ||
-------- | ||
|
||
For an example of the potential input/output: | ||
|
||
- :download:`Example.ipynb <../../example/notebooks/Example.ipynb>` | ||
- `Example.pdf <https://chrisjsewell.github.io/ipypublish/Example.view_pdf.html>`__ | ||
- `Example.html <https://chrisjsewell.github.io/ipypublish/Example.html>`__ | ||
- `Example.slides.html <https://chrisjsewell.github.io/ipypublish/Example.slides.html#/>`__ | ||
|
||
.. todo:: replace external links with internal ones (but make sure content is correct) | ||
|
||
Or, for a practical example of the ipypublish capability, see these | ||
documents on Atomic 3D Visualisation: | ||
|
||
- `Notebook <https://github.com/chrisjsewell/chrisjsewell.github.io/blob/master/3d_atomic/3D%20Atomic%20Visualisation.ipynb>`__, | ||
- `PDF <https://chrisjsewell.github.io/3d_atomic/converted/3D%20Atomic%20Visualisation.view_pdf.html>`__, | ||
- `HTML <https://chrisjsewell.github.io/3d_atomic/converted/3D%20Atomic%20Visualisation.html>`__ | ||
- `Reveal.JS slideshow <https://chrisjsewell.github.io/3d_atomic/converted/3D%20Atomic%20Visualisation.slides.html>`__. |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. _outline_schema: | ||
|
||
Template Outline Configuration Example | ||
-------------------------------------- | ||
Template Outline Example | ||
------------------------ | ||
|
||
.. literalinclude:: ../../ipypublish/templates/outline_schemas/latex_tplx_schema.json | ||
:language: JSON | ||
.. literalinclude:: ../../ipypublish/templates/outline_schemas/html_outline.html.j2 | ||
:language: html+jinja |
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 +1 @@ | ||
__version__ = '0.7.1' | ||
__version__ = '0.8.0' |
Oops, something went wrong.