Skip to content

📈 Build simple presentation in Pure Python with Typing.

License

Notifications You must be signed in to change notification settings

getludic/ludic-slides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ludic Slides

Building presentations with Ludic in Python.

Installation

pip install ludic-slides

Quick Start

Create a new file slides.py with the following content:

from ludic_slides import Slide, SlideMain, Slides
from ludic_slides.components import Code, Header, Item, List, Paragraph, b

slides = Slides(
    SlideMain(
        Header("My Slides"),
        Paragraph(f"A {b("Quick Start")} for Ludic Slides"),
    ),
    Slide(
        Header("Installation"),
        List(
            Item(Code("$ pip install ludic-slides")),
            Item(Code("$ ludic-slides slides.py")),
        )
    ),
)

Generate HTML Slides

The following command generates slides.html file:

ludic-slides slides.py

If the variable's name in the slides.py file does not equal slides, you can also specify a different name:

ludic-slides file-name.py:my_variable

You can also specify the output path:

ludic-slides slides.py -o ~/Documents/my-slides.html

Note

Note that outputting to a different location means you will need to copy static files like images used in your presentation to the correct location manually.

About

📈 Build simple presentation in Pure Python with Typing.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages