Techwriter at work blog.

Living and writing documentation at Documatt, small team of programmers that do write documentation too.


Posts by Matt

Translating with gettext overview

  • 15 October 2021
  • Author: Matt
  • Tag: i18n

Localization with gettext is streamlined process with responsibility distributed among original messages author, gettext tooling, and translator or translator tools. This post will help you understand extracting messages and starting new translation.

Read more ...


Getttext PO/POT format explained

  • 15 October 2021
  • Author: Matt
  • Tag: i18n

Gettext is internationalization (i18n) mechanism and library used not only in many software products, programming languages but also for translating Sphinx documentations. Gettext extracts strings marked “to-be-localized” from a source code (or a document) to plain text file with .po or .pot file extension. Let’s look at its format.

Read more ...


Debugging Sphinx extensions

Developing extensions for Sphinx documentation projects can easily grow into a big Python project. Debugging with print() quickly becomes a no-go. Let’s have a look how to debug Sphinx extension of any size.

Read more ...


Best Sphinx conf.py tips

Over the years writing documentation in Sphinx, I found I do the same tweaks in every Sphinx project’s conf.py again and again. Here are the best ones.

Read more ...


CSS to remove document title from Sphinx local ToC

This week, I’m working on Documatt Sphinx Theme, a theme used for example in this blog. One of the longest postponed feature is displaying a local table of contents (ToC) in the right sidebar. By default, Sphinx displays a current document title in the local ToC, so let’s fix it.

Read more ...


How to modify Sphinx theme?

Do you like your current HTML theme for Sphinx documentation project, but want only to change font family, increase the font size, change colors, and similar minor customizations? Learn common ways to customize and modify Sphinx themes.

Read more ...


Sphinx theming guide

  • 12 August 2020
  • Author: Matt
  • Category: top

Tech writers should write. Delivering documentation in a visually appealing manner is almost the same important as the content itself, however. Sphinx themes are “skins” that define look & feel of documentation when outputted to HTML format. In this guide, you will learn how to customize existing or create a new theme from scratch.

Read more ...


Sphinx themes

Sphinx theme is skin that changes the appearance of HTML version of the documentation. It contains HTML templates, CSS stylesheets, and static files like images, favicon, fonts, etc.

Read more ...


reStructuredText pitfalls

  • 13 July 2020
  • Author: Matt

This page title could also be What I can’t do in reStructuredText?. Unfortunately, there are areas where reStructuredText doesn’t shine, and it’s handy if you will know its limitations in advance.

Read more ...


reStructuredText and Sphinx guide

  • 13 July 2020
  • Author: Matt
  • Category: top

If you starting writing in reStructuredText, you will quickly find it’s not always intuitive. In this Sphinx and reStructuredText guide, you’ll find explanation in plain English of syntax, elementary concepts and important pitfalls to avoid.

Read more ...


Showing code examples

In almost any technical documentation you need to show bits of code, filenames and paths, commands and console examples. They are usually styled in monospace font with optional syntax highlighting.

Read more ...


Sections – structuring document

Document structure is hierarchy of its sections. reStructuredText calls heading the section and takes different approach on section leveling than you probably expect. Section titles are decorated with the punctuation characters and importance (a section level) depends on its usage order in document.

Read more ...


Admonitions

Admonitions are specially marked blocks that can appear anywhere an ordinary body element can. Readers will appreciate if you spice up your text with admonitions like tip for extra information or warning to raise their attention.

Read more ...


How to add a sitemap to the Sphinx project?

Sitemap is essential part of making your website more visible for search engines. It is usually represented by the sitemap.xml file and lists URLs of all website pages, translations of pages in alternative languages, etc. sphinx-sitemap extension can easily generate sitemap for your Sphinx documentation project.

Read more ...


Pictures in documentation best practices

A picture is worth a thousand words. Everybody agrees with this proverb, but taking pictures for documentation that really worth it is not always easy. I’ll share with you my personal best practices of handling images in documentation.

Read more ...


Editor skills of every tech writer

Know and love your editor. Programmers and tech writers literally spend their lives in powerful text editor and IDEs but sometimes aren’t aware of all their editing features. In the following post, I share some essential skills you, as a tech writer, should definitively adopt.

Read more ...