Sphinx extension for slides and extended tables.
Project description
kirlent_sphinx is a Sphinx extension that is primarily meant to be used with
the `Kırlent`_ educational content management system, although it can be used
as a regular Sphinx extension.
Features
--------
kirlent_sphinx provides the following components:
- An extended ``table`` directive derived from the `Cloud Sphinx Theme`_
project.
- A ``slide`` directive and a corresponding HTML theme based on `RevealJS`_,
derived from the `sphinxjp.themes.revealjs`_ project.
Getting started
---------------
You can install kirlent_sphinx with pip::
pip install kirlent_sphinx
To enable it in your project, make the following changes in ``conf.py``:
- Add ``kirlent_sphinx`` to extensions::
extensions = ["kirlent_sphinx"]
- Set ``kirlent`` as the theme::
html_theme = "kirlent"
- Disable index generation::
html_use_index = False
Usage
-----
For the extended ``table`` directive, consult the documentation
of the `table_styling`_ extension of the `Cloud Sphinx Theme`_ project.
The ``slide`` and ``speaker-notes`` directives are derived from the
``revealjs`` and ``rv_note`` directives of the `sphinxjp.themes.revealjs`_
project. The ``rv_small`` and ``rv_code`` directives of that project have been
removed.
The Kırlent HTML theme uses pygments for code highlighting instead of
highlight.js which is used by the original theme. In addition, it uses
`Tailwind`_ utility classes for styling:
.. slide:: Slide title
.. container:: columns
.. container:: column w-1/3 bg-blue-lighter
- item 1a
- item 1b
.. container:: column bg-red-lighter
- item 2
.. speaker-notes::
some extra explanation
License
-------
Copyright (C) 2019 H. Turgut Uyar <uyar@tekir.org>
kirlent_sphinx is released under the BSD license. Read the included
``LICENSE.txt`` file for details.
kirlent_sphinx contains code derived from the `Cloud Sphinx Theme`_ project
which is released under the BSD license. Read the included
``LICENSE_cloud_spheme.txt`` file for details.
kirlent_sphinx contains code derived from the `sphinxjp.themes.revealjs`_
project which is released under the MIT license. Read the included
``LICENSE_sphinxjp.themes.revealjs.txt`` file for details.
kirlent_sphinx contains code from the `RevealJS`_ project which is
released under the MIT license. Read the included ``LICENSE_revealjs.txt``
file for details.
kirlent_sphinx contains code from the `Tailwind`_ project which is
released under the MIT license. Read the included ``LICENSE_tailwind.txt``
file for details.
.. _Kırlent: https://gitlab.com/tekir/kirlent/
.. _Cloud Sphinx Theme: https://cloud-sptheme.readthedocs.io/en/latest/
.. _table_styling: https://cloud-sptheme.readthedocs.io/en/latest/lib/cloud_sptheme.ext.table_styling.html
.. _sphinxjp.themes.revealjs: https://github.com/tell-k/sphinxjp.themes.revealjs
.. _RevealJS: https://revealjs.com/
.. _Tailwind: https://tailwindcss.com/
the `Kırlent`_ educational content management system, although it can be used
as a regular Sphinx extension.
Features
--------
kirlent_sphinx provides the following components:
- An extended ``table`` directive derived from the `Cloud Sphinx Theme`_
project.
- A ``slide`` directive and a corresponding HTML theme based on `RevealJS`_,
derived from the `sphinxjp.themes.revealjs`_ project.
Getting started
---------------
You can install kirlent_sphinx with pip::
pip install kirlent_sphinx
To enable it in your project, make the following changes in ``conf.py``:
- Add ``kirlent_sphinx`` to extensions::
extensions = ["kirlent_sphinx"]
- Set ``kirlent`` as the theme::
html_theme = "kirlent"
- Disable index generation::
html_use_index = False
Usage
-----
For the extended ``table`` directive, consult the documentation
of the `table_styling`_ extension of the `Cloud Sphinx Theme`_ project.
The ``slide`` and ``speaker-notes`` directives are derived from the
``revealjs`` and ``rv_note`` directives of the `sphinxjp.themes.revealjs`_
project. The ``rv_small`` and ``rv_code`` directives of that project have been
removed.
The Kırlent HTML theme uses pygments for code highlighting instead of
highlight.js which is used by the original theme. In addition, it uses
`Tailwind`_ utility classes for styling:
.. slide:: Slide title
.. container:: columns
.. container:: column w-1/3 bg-blue-lighter
- item 1a
- item 1b
.. container:: column bg-red-lighter
- item 2
.. speaker-notes::
some extra explanation
License
-------
Copyright (C) 2019 H. Turgut Uyar <uyar@tekir.org>
kirlent_sphinx is released under the BSD license. Read the included
``LICENSE.txt`` file for details.
kirlent_sphinx contains code derived from the `Cloud Sphinx Theme`_ project
which is released under the BSD license. Read the included
``LICENSE_cloud_spheme.txt`` file for details.
kirlent_sphinx contains code derived from the `sphinxjp.themes.revealjs`_
project which is released under the MIT license. Read the included
``LICENSE_sphinxjp.themes.revealjs.txt`` file for details.
kirlent_sphinx contains code from the `RevealJS`_ project which is
released under the MIT license. Read the included ``LICENSE_revealjs.txt``
file for details.
kirlent_sphinx contains code from the `Tailwind`_ project which is
released under the MIT license. Read the included ``LICENSE_tailwind.txt``
file for details.
.. _Kırlent: https://gitlab.com/tekir/kirlent/
.. _Cloud Sphinx Theme: https://cloud-sptheme.readthedocs.io/en/latest/
.. _table_styling: https://cloud-sptheme.readthedocs.io/en/latest/lib/cloud_sptheme.ext.table_styling.html
.. _sphinxjp.themes.revealjs: https://github.com/tell-k/sphinxjp.themes.revealjs
.. _RevealJS: https://revealjs.com/
.. _Tailwind: https://tailwindcss.com/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kirlent_sphinx-0.2.0.tar.gz
(174.9 kB
view hashes)
Built Distribution
kirlent_sphinx-0.2.0-py3-none-any.whl
(934.4 kB
view hashes)
Close
Hashes for kirlent_sphinx-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46254dd45e8ca73e86d775610ada8abe9670ffda69afe3012f00c0adb781418 |
|
MD5 | 69459685354f538f4709bacfc6d107e0 |
|
BLAKE2b-256 | d31892e9d4782d5e84a83a70160670cd3ec74ad776bf28c48637a54500669a48 |