Welcome to PocketWeb
PocketWeb publishes a folder of plain files as a website. There is nothing to install and nothing to configure: run one executable, point it at a folder, and every folder becomes a page.
You are looking at the demo folder. Serve it yourself with:
pocketweb -r demo
This page is the demo folder itself. It is made of these files, shown in the order of their names:
10 Welcome to PocketWeb.txt: this plain text, with its title taken from the file name.
20 A Markdown file.md: text with Markdown formatting.
30 An HTML file.html: a piece of HTML, inserted as it is.
40 A sample image.svg: a picture with a caption.
50 A sample audio clip.m4a: a sound with a player.
60 A sample video clip.mp4: a video with a player.
70 PocketWeb at a glance.pdf: a file to download.
The numbers at the start of the names set the order and are not shown. Around the content, .header holds the site name at the top, .aside the box below the menu (by default it sits below the content; this site's .css moves it), .footer the line at the bottom, and .css the styling. The empty file .intro gives this page alone the class "intro", which .css uses for the blue welcome box.
Plain text can link and embed files by putting their path in square brackets. This opens the PDF further down: 70 PocketWeb at a glance.pdf
Web addresses become links by themselves, like https://example.com.
The menu leads to one folder for each layout PocketWeb has.
A Markdown file
An HTML file
This item is the file 30 An HTML file.html. PocketWeb inserts HTML files as they are, so they can hold anything Markdown cannot, such as a table or a highlight:
| File | Shown as |
|---|---|
.txt | Text with paragraphs and links |
.md | Formatted Markdown |
.html | HTML, unchanged |
.jpg, .png, .svg, … | A picture with a caption |
.mp3, .m4a, … | An audio player |
.mp4, .webm, … | A video player |
.pdf, .zip, … | A download link |
PocketWeb at a glance
70 PocketWeb at a glance.pdf (1.1 KB)