Skip to main content

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.

  1. Write your presentation in reST:
Title
=====

First section
-------------

Content 1
^^^^^^^^^

Content 2
^^^^^^^^^
  1. Or write in Markdown:
# Title

## First section

### Content 1

### Content 2
  1. 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
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_deck-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_deck-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for sphinx_deck-0.0.1.tar.gz
Algorithm Hash digest
SHA256 98286c9b9f2b41a6b058bc162ea8062547b07ff6012e8b0daf539ff0c4d12c20
MD5 77fab4e170264d38fcf80f460c066567
BLAKE2b-256 60758793e89a44e06781b925159d961403e168435dc3c6ab6866d54d2addd8b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_deck-0.0.1.tar.gz:

Publisher: publish.yml on ftnext/sphinx-deck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sphinx_deck-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a65b1c856f2b97cba5c2a9f115ef84bce30470d279fcc4e31b7bbdaf55e9348e
MD5 9c45c75bd88c3c84ffc2d44f497464a0
BLAKE2b-256 4e6a787fa7c05abed74f6ca8a06f877ca835fc40219e71a175b62eff010cf96b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_deck-0.0.1-py3-none-any.whl:

Publisher: publish.yml on ftnext/sphinx-deck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page