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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e1d6f8b6add1e4b83ee2243f99896df167780641a2145d8e23ea1a9164932a7d
MD5 8454dbc0e2e685b9d15ba1439460737b
BLAKE2b-256 6fb05f1fd8ce79fe7d88530566aeedec651bdcbb8e1d7e5a15a8420daff9011f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slides_xp-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb0900fda7a1baab0e13293f94d701dcb392b29f175b607b9875eb0d1307b85
MD5 8d33448188307a41a2809150964d8140
BLAKE2b-256 ac0aefaa6b6dbcabf240bd180a13a546144cf0bcb5473dcd20a94d78090fdd13

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