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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 e1d624a0428a8f59ace633f9308fa30ffe1ae768f6a6ea834661b6dc45d113fd
MD5 f5eb4ef02dfe029bccdc5a43ef0cf65d
BLAKE2b-256 94eb6add993f087d9091c4488df7d9a7f90439c01988e45cdf89943516cf8a27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slides_xp-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bf257fbe417e99e1be2782a231c0ac8cd870ed0cb2e6d58ae5441a115aaee135
MD5 7bb64ad0293d9773336ae90f06ff5912
BLAKE2b-256 7d7bdde2eb9bfc4e37d60b894d556e356c9c18ee7308368e1298534504129147

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