Skip to main content

No project description provided

Project description

Slides XP

A simple but flexible markdown slide-show viewer.

Installing

pip install slides-xp

Running

sxp <directories to serve>

Or, without installation, using uv:

uvx slides-xp <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.7.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.7-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.7.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1015-azure

File hashes

Hashes for slides_xp-0.0.7.tar.gz
Algorithm Hash digest
SHA256 a13ccf919ec9c2dd6076e26baa4e246d7e6baa7b781ff5836c5b549f3d3536e8
MD5 a1b21960308d81c118ec4b3837825e71
BLAKE2b-256 6825417819f4e52633d0524e49a56ffa34f0610c48ad778e8e49bc731a96598d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slides_xp-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 2.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1015-azure

File hashes

Hashes for slides_xp-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7807350ced5feedf068ade7b948ff19cea441c89478fc15c34253b0b278ea8d9
MD5 d55968b9f77b3a5f3c7c3d83d9fdbda0
BLAKE2b-256 03fbd41b6a22269aeb46736e91a87942ef749499fa4fc401ed35f2251b298352

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