Standards for /docs directory¶
Follow these guidelines when maintaining the docs.
Writing style¶
- Never use em dashes (
--,---, or Unicode—). Use a hyphen-or rewrite the sentence. - Prefer clear, specific writing over filler.
- Avoid hype adjectives/adverbs (bold, brutal, honest, quietly, seamless, ...) that add tone but no information; cut them or state the concrete fact instead.
- Headers are plain labels in sentence case, no parentheticals.
Don't start a header with an article or filler: write
Folder structure, notThe folder structure. - Do not format md files by wrapping text to a certain line length; add newlines on logical breaks, even within paragraphs or bullet points, eg after a period/semicolon or between clauses. This file is a sample of this style.
- State each fact once, in the most specific page that owns it; link to it from elsewhere rather than restating. Index and overview pages may summarize; detail pages own the canonical statement.
- Explain functionality, concepts, usage patterns, not code details unless necessary. Link to code files for details.
Markdown & links¶
- Links between doc pages are relative paths, so they resolve on GitHub and on the published site.
- Links to files outside
docs/(source code,README, configs) use absolute GitHub URLs onmain:https://github.com/Pitrified/laife/blob/main/<path>for files,.../tree/main/<path>for directories. A relative path to a file outsidedocs/resolves on GitHub but breaks on the published site, which contains onlydocs/, so do not use one. - Guides should not be full of code blocks; explain the concept in prose and link to the code. Reserve fenced blocks for short commands or snippets the reader needs verbatim.
- Tag every fenced block with its language.
- Filenames are snake_case (
README.mdis the one exception).
Folder structure¶
- Use
docs/README.mdas the main entry point for the documentation. mkdocswill handle the creation ofreferencefolder for API reference, do not create it manually.docs/guides: overarching guides for the project, with explanations about cross-cutting concerns, dependencies, and usage patterns.docs/library: matches thesrcfolder structure, contains high level documentation for each module, with links to code files for details.