1. Your first page
Write a minimal wdoc page and preview it with the dev server.
After this lesson you can
- Write a one-page wdoc document from scratch - Build it to HTML with wcl wdoc build - Iterate under wcl wdoc serve with live rebuilds
Every wdoc document is a .wcl file that starts with import <wdoc.wcl> — that import brings in the whole block vocabulary. The smallest useful document is a single page holding content blocks: a heading, a paragraph, whatever the page needs. start = true marks the entry page.
Two commands cover the whole authoring loop: wcl wdoc build <file> --out <dir> renders the HTML once, and wcl wdoc serve <file> starts a dev server that watches the source and re-renders on save.
§ 1Exercise: Hello, wdoc
Create hello.wcl with one page, build it, then serve it and edit the paragraph while watching the browser.
}
Expected result
out/index.html renders the heading and formatted paragraph, and under serve a saved edit shows up after a browser refresh.
Hint
No site block is needed yet — a lone page renders standalone. Sites arrive in the next lesson.