Writing Guide¶
Headings¶
Use the same heading characters on every page so that the page tree nests correctly.
Level |
Characters |
|---|---|
Page title |
|
Section |
|
Subsection |
|
Sub-subsection |
|
Indentation¶
Indent with one tab for each level, not with spaces. This covers directive options and content, such as the entries of a toctree and the rows of a list-table.
When a line continues a list item, such as the - Characters cell in the table above, put two spaces after the tab so that it lines up with the text of the item.
Markup¶
Pages are written in reStructuredText. MyST Markdown (.md) is also enabled.
Page Outlines¶
Every page starts as an outline: a title, a todo that says what the page covers, and the empty headings it will be written under. Fill in the sections under the headings and delete the todo when the page is done.
Use the name the Umamo window shows for anything on screen, such as a menu row, a button, or a section of the Properties editor. The strings are in module/ui/src/commonMain/composeResources/values/strings.xml in the Umamo repository.
Reference Blocks¶
A section about one operator or tool starts with a Reference block that says where to find it:
.. admonition:: Reference
:class: refbox
:Mode: Edit Mode
:Menu: :menuselection:`File --> Import --> Artwork…`
:Shortcut: :kbd:`Ctrl-Shift-O`
ModeThe editor mode the operator is available in. Leave the line out when it works in any mode.
MenuThe menu path, written with
menuselection. UseContext menufor the right-click menu,Toolbarfor a Toolbar button, andCommand palettefor an operator that is only reachable there.ShortcutThe shortcut of the Default keymap preset, written with
kbd. WriteCtrlfor the primary modifier, which isCmdon macOS. A shortcut that uses the Control key itself, such as Toggle Pose Mode, staysCtrlon macOS, so say so on that page. Spell out punctuation and numpad keys (Minus,Period,NumpadPlus) so thatkbddoes not mistake them for separators.
Leave out any line you cannot confirm instead of leaving it empty.
See Also¶
End each page with a seealso block that links to the related pages. Link with doc and an absolute path, so that moving a page does not break the links:
.. seealso::
* :doc:`/editors/outliner`
Screenshots¶
A page is written before its screenshots are taken. Where a page needs a picture, put a placeholder in its place. The placeholder says what the picture must show, so that anyone can take it later without reading the whole page:
.. admonition:: Screenshot needed
:class: screenshot-needed
:Show: The Export submenu of the File menu, open.
:Setup: Open any model, so that the rows are enabled.
:Crop: The menu bar and the open menus only.
:Save as: ``images/files/export_menu.png``
:Caption: The Export submenu of the File menu.
ShowWhat the picture contains. Name the labels that must be readable, as the window shows them.
SetupHow to get Umamo into that state, starting from a fresh launch. Describe the model or the artwork in general terms, such as a model with a few parts and a warp deformer, and do not name a private file.
CropWhat to include and what to leave out: the whole window, one area, or one dialog.
Save asThe path of the image file, relative to the
manualfolder. Use the name of the chapter for the folder, and a file name that says what the picture shows.CaptionThe caption, which is also the alternative text.
Leave out a line that has nothing to say. To find every picture that is still to be taken, search the pages for Screenshot needed. When the picture exists, replace the placeholder with a figure:
.. figure:: /images/files/export_menu.png
The Export submenu of the File menu.
Pages Not Yet Available¶
Some pages describe a feature that Umamo does not have yet. They start with a Not yet available admonition and outline Current Status, What Works Today, and Planned. A page for a feature that works, but not completely, ends with a Current Limitations section instead.
Todo
Write the rest of the guide: tone.