https://github.com/ftnext/sphinx-deck.git
A Sphinx extension for converting reStructuredText and Markdown to k1LoW/deck-compatible Markdown format.
sphinx-deck enables you to write presentations in familiar reStructuredText (reST) or Markdown syntax and convert them to deck-compatible Markdown for Google Slides generation.
---)$ pip install sphinx-deck
For Markdown support, also install:
$ pip install "myst-parser[linkify]"
Add to your conf.py:
extensions = [
"sphinx_deck",
]
extensions = [
"myst_parser",
"sphinx_deck",
]
myst_enable_extensions = [
"linkify",
]
myst_linkify_fuzzy_links = False
For detailed examples, please see the example/ directory in this repository.
Title
=====
First section
-------------
Content 1
^^^^^^^^^
Content 2
^^^^^^^^^
# Title
## First section
### Content 1
### Content 2
$ sphinx-build -M markdown source build
This generates deck-compatible Markdown in the build directory:
# Title
---
## First section
---
## Content 1
---
## Content 2
$ deck new build/markdown/index.md
$ deck apply build/markdown/index.md
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.