Slides & Presentations
Hype can generate web-based presentations from your markdown documents using the slides command.
Basic Usage
# Start slides server on default port (3000)
hype slides presentation.md
# Use a different port
hype slides -port 8080 presentation.md
Once started, open your browser to http://localhost:3000 to view your presentation.
Creating Slides
Slides are created using the standard hype <page> element. Each <page> becomes a slide in your presentation:
<page>
# Slide 1
Welcome to my presentation!
</page>
<page>
# Slide 2
## Key Points
- Point one
- Point two
- Point three
</page>
<page>
# Code Example
<go src="example" run></go>
</page>
Features
- Live Code Execution: Code blocks with
runattribute execute and display output - Syntax Highlighting: Code blocks are automatically highlighted
- Navigation: Use left/right arrow keys to navigate between slides
- Web-based: No additional software required - just a browser
Flags Reference
| Flag | Default | Description |
|---|---|---|
-port
|
3000
|
Port for the slides server |
Tips
- Keep slides focused: One main idea per slide works best
- Use code examples: Hype's ability to execute code makes live demos easy
- Test navigation: Check that your slides flow well before presenting
- Assets: Place images in an
assets/folder in your working directory