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

Uploaded Python 3

File details

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

File metadata

  • Download URL: slides_xp-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 687c49f22259accab60baa0d0703054708b1090cec1769d4beb3bea195a48b91
MD5 119acb3bd22f9f593d8fb88686b9bb30
BLAKE2b-256 8cb79432264cb5d4542f11acd24879f4e7bc6617d628c0dac88ec42f84b92cdf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: slides_xp-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac4779edab41862505ce1ded3653b499f24c088a9a40629ad06a11cd61738e17
MD5 4d4634b238dea21fef11f3ad4a01d908
BLAKE2b-256 18b2ec504109deaf64fc6b6b5f78b6036cd3696a67dd23a84e4adcc3f537e4d1

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