The Nordic TechDocs Style Guide is the authoritative reference for technical writing at Nordic Semiconductor. It provides guidelines on grammar, style, content structure, procedures, and formatting for all externally published documentation.
This guide consolidates rules from multiple sources. When sources conflict, follow this precedence:
- This style guide (takes precedence)
- Merriam-Webster dictionary (spelling and usage)
The guide was originally forked from the Microsoft Style Guide and has since been substantially expanded with Nordic-specific guidelines and industry best practices.
Nordic TechDocs Style Guide is the official repository for the guide.
- Grammar and style — Sentence structure, verbs, clauses, nouns, pronouns, modifiers, person
- Content structure — Headings, lists, tables, links, cross-references, error messages, notes and admonitions, modular writing, organization schemes, illustrations
- Procedures and instructions — Step-by-step instructions, task hierarchy, task organization, UI interactions, procedure review
- Writing tips — Accessibility, bias-free communication, internationalization, scannable writing, online writing, reader-focused writing, jargon, anthropomorphisms, redundancies
- Punctuation — Commas, dashes and hyphens, parentheses, apostrophes, colons, semicolons, and more
- Planning — Content planning, design planning, document types, editorial process, legal guidelines, release notes (including nRF Connect SDK conventions)
- Reference — Acronyms, glossary, capitalization, numbers, units of measurement, typographic conventions, trademarks, product names, URLs
We use the MkDocs framework with the Material theme to build the static documentation site.
Create a folder and set up a Python virtual environment:
python -m venv venv=== "Linux / macOS"
```bash
source venv/bin/activate
```
=== "Windows"
```bash
venv\Scripts\activate
```
pip install mkdocs mkdocs-material mkdocs-macros-pluginOptionally, install the MCP server dependencies:
pip install mcp fastmcpgit clone https://https://github.com/NordicPlayground/techdocs-style-guideNavigate to the techdocs-style-guide directory and run:
mkdocs serveThe site is available at http://127.0.0.1:8000. Press Ctrl+C to stop the server.
To build the documentation for deployment:
mkdocs buildThe output is written to the site/ directory. Use --strict to catch broken links and other issues:
mkdocs build --strictdeactivateThis repository includes two MCP servers that serve the style guide documentation to AI tools via full-text search:
tools/tiny_docs_mcp.py-- the main servertools/tiny_docs_mcp_easy.py-- a beginner-friendly variant with the same functionality
Both servers use a shared SQLite FTS5 index (docs_index.db) and expose three capabilities:
reindex-- rebuild the search index from all.mdfiles in the docs directorysearch-- full-text search returning matching documents with snippetsdoc://by-id/{id}-- resource to fetch the full content of a search result
Before using the MCP server for the first time, you must build the search index. Call the reindex tool with the docs directory as the root, or run it manually:
cd techdocs-style-guide
python tools/tiny_docs_mcp.pyThen call the reindex tool from your AI client. Reindex again after adding or modifying documentation files.
Add the following to your mcp.json:
{
"mcpServers": {
"nordic-style-guide": {
"command": "path/to/venv/python",
"args": [
"/path/to/techdocs-style-guide/tools/tiny_docs_mcp.py"
],
"cwd": "/path/to/techdocs-style-guide"
}
}
}Use this as the basis for either your workspace or system-wide MCP configuration. You can also add this through File > Preferences > Cursor Settings > Tools and MCP.
Restart Cursor after adding the configuration.
Add the following to your .vscode/mcp.json in the workspace root:
{
"servers": {
"nordic-style-guide": {
"command": "path/to/venv/python",
"args": [
"/path/to/techdocs-style-guide/tools/tiny_docs_mcp.py"
],
"cwd": "/path/to/techdocs-style-guide"
}
}
}Alternatively, add it to your user settings (settings.json):
{
"mcp": {
"servers": {
"nordic-style-guide": {
"command": "path/to/venv/python",
"args": [
"/path/to/techdocs-style-guide/tools/tiny_docs_mcp.py"
],
"cwd": "/path/to/techdocs-style-guide"
}
}
}
}Reload the window after adding the configuration.