Writing this guide
These pages are the guide to Parseh. Each one is a Markdown file under html-guide/markdown/, and html-guide/build.py compiles them into the web pages you are reading. This section explains how to write one: the Markdown it takes, how it is laid out, and how it is compiled and published.
1. The short version#
- Write a page: a
.mdfile anywhere underhtml-guide/markdown/. A folder is a section of the guide; its_index.mdis the section’s own page. - Give it a front matter with a
title, and aweightto place it among its neighbours. - Compile. When Parseh is running, the guide’s front page has a Compile the guide button whenever the pages have changed; the installer compiles them too, every time it runs.
- Read it: the hub’s guide button opens it, and so does
html-guide/index.htmlopened straight from the disk.
title: Recording a narrationweight: 3description: One sentence under the title in the list of pages.## Before you startYou need the book's **reader** built, and a recording of the book beingread aloud: see [the reading editions](../books/reading.md).2. What a page may hold#
A page takes all of Hugo’s Markdown (the Goldmark renderer, with the extensions Hugo turns on by default) and all of the Parseh studio’s dialect — the same text a document in the studio holds, drawn the same way. Where the two read the same text differently, the studio’s reading wins; the table of those cases says what each one does.
- Pages and navigation: the front matter, sections, the order of the list of pages, links between pages.
- Hugo’s Markdown: headings, lists, tables, links, footnotes and every other construct, with what it looks like.
- The Parseh dialect: target-language text, lemma headings, boxes, exercises and formulas, and where the dialect wins.
- Code blocks: verbatim code with a Copy button, highlighting, and
parseh-example, which shows Markdown beside what it becomes. - Pictures, recordings and videos: screenshots, GIFs, figures, players.
- Shortcodes: Hugo’s
{{< figure >}},{{< details >}},{{< ref >}}and the rest. - Compiling and publishing: the compile, its warnings, GitHub Pages, and taking the guide into a project of its own.