Skip to main content

No project description provided

Project description

Slides XP

A simple but flexible markdown slide-show viewer.

Running

sxp <directories to serve>

Theming

You can use the --theme option to specify the a built-in theme, or a path to a directory containing CSS theme files.

The built-in themes are:

  • default
  • xp

Python-generated slides

Python files that end with .slide.py can be used to generate slides using Python, which is useful for custom themed slides. The file should include a render function that returns a pyhtml tag.

Custom CSS

A theme directory should contain (at least) these files:

  • main.css: main stylesheet. Always loaded.
  • slide.css: stylesheet for slide pages.
  • picker.css: stylesheet for slide picker page.

These stylesheets are mounted at the /theme endpoint.

Within these stylesheets, the following classes can be selected.

  • .highlight: code blocks
  • .slide-content: slide content
  • .picker-box: slide picker
  • .picker-item: slide within slide picker

And the following variables are available:

  • --hl-comment: code block highlighting, comment
  • --hl-doc: code block highlighting, documentation
  • --hl-keyword: code block highlighting, keyword
  • --hl-var: code block highlighting, variable
  • --hl-func: code block highlighting, function
  • --hl-type: code block highlighting, type
  • --hl-string: code block highlighting, string

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

slides_xp-0.0.4.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

slides_xp-0.0.4-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.4.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for slides_xp-0.0.4.tar.gz
Algorithm Hash digest
SHA256 fa99317af8e680ea1c4a0dc3014b465c756aee75a4067a550f03962c7fc4cb7b
MD5 44c0ec1d1002e8016be3b49bc789f324
BLAKE2b-256 9ebe44baae207f9eb871a6f3bc7db06e40b18277adf67d0ab9dfa34220d55dd0

See more details on using hashes here.

File details

Details for the file slides_xp-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: slides_xp-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.11 Linux/6.8.0-1021-azure

File hashes

Hashes for slides_xp-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7628d9d47d9bc13611aa2ece1a474e3db3436f23422c23eb8c3fd33d7e8abbe8
MD5 2e44990b330e4e1bbe59484b5d8cbe76
BLAKE2b-256 afac9214e526af4cb0aa10d169c66d4b651728140dd1496da894979147e4925f

See more details on using hashes here.

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