Skip to main content

Quickstart CLI to scaffold Sphinx + sphinx-revealjs presentation projects

Project description

sphinx-revealjs-quickstart

A CLI to quickly scaffold presentation projects with Sphinx + sphinx-revealjs.

Usage

uvx sphinx-revealjs-quickstart -p project -a author

To also generate GitHub Pages deployment assets, add --github-pages:

uvx sphinx-revealjs-quickstart --github-pages -p project -a author

This tool also accepts the same arguments as sphinx-quickstart (e.g. -l, -v, --release). See the sphinx-quickstart man page for the full list.

Generated Files

Default

.
├── Makefile
├── build/
└── source/
    ├── _static/
    │   └── css/
    │       └── common.css.jinja
    ├── conf.py
    └── index.rst

With --github-pages

.
├── .github/
│   └── workflows/
│       └── publish-pages.yml
├── Makefile
├── build/
└── source/
    ├── _static/
    │   └── css/
    │       └── common.css.jinja
    ├── _templates/
    │   └── page.html
    ├── conf.py
    └── index.rst

About the Generated Content

  • source/conf.py and source/_static/css/common.css.jinja contain settings and styles that creator (nikkie) usually uses

Customizing highlight_color

The generated conf.py includes an html_context entry:

html_context = {
    "highlight_color": "#5ae08e",
}

common.css.jinja is a Sphinx CSS template that reads this value at build time. Change highlight_color to any CSS color value to update the <strong> tag color in your slides. Remove the entry entirely to omit the strong color rule from the generated CSS.

Customizing OGP metadata (with --github-pages)

When --github-pages is used, the generated conf.py also includes OGP-related entries in html_context:

html_context = {
    "highlight_color": "#5ae08e",
    "twitter_site": "",
    "site_base_url": "",
}

These values are used by the generated source/_templates/page.html to render Open Graph and Twitter Card meta tags:

Key Description
twitter_site Twitter/X account handle (e.g. @yourname) used in twitter:site meta tag
site_base_url Base URL of your GitHub Pages site (e.g. https://yourname.github.io/yourrepo) used in og:url and og:image

Fill in these values in conf.py after scaffolding.

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_revealjs_quickstart-0.0.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

sphinx_revealjs_quickstart-0.0.4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_revealjs_quickstart-0.0.4.tar.gz.

File metadata

File hashes

Hashes for sphinx_revealjs_quickstart-0.0.4.tar.gz
Algorithm Hash digest
SHA256 131cd97ef45cf4f5e4f8444c6382b496e58a9c93225d3081af82c2b98d8777ff
MD5 cb0d3612dbf0adbf3d769a40df859966
BLAKE2b-256 b6117b946b9796201941097f80881a001fe25e93d665238b40e48646e0dc87c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_revealjs_quickstart-0.0.4.tar.gz:

Publisher: publish.yml on ftnext/sphinx-revealjs-quickstart

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_revealjs_quickstart-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_revealjs_quickstart-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6b1e468761d58fe932c7e307c9509bf7f71b794c55e434ecbdfde09bab6ebc70
MD5 2755092ef87c905808cc316cc5b4310c
BLAKE2b-256 829d194f16584236c1d78165fd322ddae3c23480d5a6755e3c0a902539cc6057

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_revealjs_quickstart-0.0.4-py3-none-any.whl:

Publisher: publish.yml on ftnext/sphinx-revealjs-quickstart

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