Sphinx extension to generate Markdown for k1LoW/deck from Sphinx documentation
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_deck-0.0.1.tar.gz.
File metadata
- Download URL: sphinx_deck-0.0.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98286c9b9f2b41a6b058bc162ea8062547b07ff6012e8b0daf539ff0c4d12c20
|
|
| MD5 |
77fab4e170264d38fcf80f460c066567
|
|
| BLAKE2b-256 |
60758793e89a44e06781b925159d961403e168435dc3c6ab6866d54d2addd8b9
|
Provenance
The following attestation bundles were made for sphinx_deck-0.0.1.tar.gz:
Publisher:
publish.yml on ftnext/sphinx-deck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_deck-0.0.1.tar.gz -
Subject digest:
98286c9b9f2b41a6b058bc162ea8062547b07ff6012e8b0daf539ff0c4d12c20 - Sigstore transparency entry: 667274054
- Sigstore integration time:
-
Permalink:
ftnext/sphinx-deck@f4e885c7560ecda98423dc3ae94050d4b2ebc92e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f4e885c7560ecda98423dc3ae94050d4b2ebc92e -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphinx_deck-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sphinx_deck-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a65b1c856f2b97cba5c2a9f115ef84bce30470d279fcc4e31b7bbdaf55e9348e
|
|
| MD5 |
9c45c75bd88c3c84ffc2d44f497464a0
|
|
| BLAKE2b-256 |
4e6a787fa7c05abed74f6ca8a06f877ca835fc40219e71a175b62eff010cf96b
|
Provenance
The following attestation bundles were made for sphinx_deck-0.0.1-py3-none-any.whl:
Publisher:
publish.yml on ftnext/sphinx-deck
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_deck-0.0.1-py3-none-any.whl -
Subject digest:
a65b1c856f2b97cba5c2a9f115ef84bce30470d279fcc4e31b7bbdaf55e9348e - Sigstore transparency entry: 667274056
- Sigstore integration time:
-
Permalink:
ftnext/sphinx-deck@f4e885c7560ecda98423dc3ae94050d4b2ebc92e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/ftnext
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f4e885c7560ecda98423dc3ae94050d4b2ebc92e -
Trigger Event:
release
-
Statement type: