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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.10.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for slides_xp-0.0.10.tar.gz
Algorithm Hash digest
SHA256 47cc53137fd6f2af383fd381a3292d1ae356045c1407be9599773a24d4c333f2
MD5 86961ba758fc0e6341d7bda36a973641
BLAKE2b-256 ad63f76a4e6935bbd6a2f173c37b8252aa7aa7101cffc77d9734e460af0cfe2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for slides_xp-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 1cafabee0e7013739983def4e992b28d8e9147dfecfa5450972e445813a17225
MD5 5a29ee7f2b8926b93d34b6a549b114eb
BLAKE2b-256 c08fc753baf98f6f0c7ab9159dbe6daf29a30781f4899d5361b79f9bbc3f1856

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