sphinx-deck
A Sphinx extension for converting reStructuredText and Markdown to k1LoW/deck-compatible Markdown format.
Overview
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.
Features
- Support for both reST and Markdown source files
- Convert to deck-compatible Markdown with proper slide separators (
---) - Automatic conversion of section headers to deck format (currently h2 and h3 for titles)
Installation
$ pip install sphinx-deck
For Markdown support, also install:
$ pip install "myst-parser[linkify]"
Quick Start
Basic Setup
Add to your conf.py:
extensions = [
"sphinx_deck",
]
With Markdown Support
extensions = [
"myst_parser",
"sphinx_deck",
]
myst_enable_extensions = [
"linkify",
]
myst_linkify_fuzzy_links = False
Usage
For detailed examples, please see the example/ directory in this repository.
- Write your presentation in reST:
Title
=====
First section
-------------
Content 1
^^^^^^^^^
Content 2
^^^^^^^^^
- Or write in Markdown:
# Title
## First section
### Content 1
### Content 2
- Build the deck-compatible Markdown:
$ sphinx-build -M markdown source build
This generates deck-compatible Markdown in the build directory:
# Title
---
## First section
---
## Content 1
---
## Content 2
- Use k1LoW/deck to create Google Slides:
$ deck new build/markdown/index.md
$ deck apply build/markdown/index.md
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Release files for sphinx-deck 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sphinx_deck-0.0.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sphinx_deck-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / sphinx_deck-0.0.1.tar.gz
| Download URL | sphinx_deck-0.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98286c9b9f2b41a6b058bc162ea8062547b07ff6012e8b0daf539ff0c4d12c20
|
|
BLAKE2b-256 checksum How to use checksums |
60758793e89a44e06781b925159d961403e168435dc3c6ab6866d54d2addd8b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.
Transparency logRelease files / sphinx_deck-0.0.1-py3-none-any.whl
| Download URL | sphinx_deck-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a65b1c856f2b97cba5c2a9f115ef84bce30470d279fcc4e31b7bbdaf55e9348e
|
|
BLAKE2b-256 checksum How to use checksums |
4e6a787fa7c05abed74f6ca8a06f877ca835fc40219e71a175b62eff010cf96b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2025.
Transparency log