Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Proposal: towards new API

This is a proposal, not something you can install. Opinions very welcome.

Writing M2 docs today means a separate doc ///…/// block (or a document {…} list) far away from the code, in a hypertext DSL of its own. It works, but it’s a chore, so a lot of code ends up documented badly or not at all.

While building the language server I ended up needing docs in a different shape anyway: as data, attached to the code, and in Markdown. The next pages are about what that looks like and where I think it could go: