All headings have anchor links, which are links that you can use to point to a particular section of your documentation.
You can see the anchors of a title when your content is in a reading mode. If you want to add an anchor to some text, just add a relative link.
Good to know: Reading on a screen is less comfortable than reading on paper. Make sure your content is not too long with too many titles. Sometimes splitting your content into different pages creates a better overview! 🤓
You can add bullet lists, numbered lists and task lists to your content:
This is a bullet list.
You can use Tab to indent…
…and Shift+Tab to outdent.
A number list comes in handy when trying to prioritize.
You can use Tab to indent…
and Shift+Tab to outdent.
Here's a task that hasn't been done
And here's a subtask that has been done, indented using Tab.
Aaaaand, here's a subtask that hasn't been done.
You can insert some code on GitBook by using code blocks. Each code block can have a language set, and syntax highlighting will be applied automatically based on this language.
We use Prism for syntax highlighting. Here's an easy way to check which languages Prism supports: Test Drive Prism. If you notice a mismatch between GitBook and Prism, there's a chance we are a version or two behind. We'll eventually catch up.
The most common type of images is an "image block". They are full-width images containing a caption. You can center or align them to the left. You can insert them like this:
Image blocks can display a gallery of images.
can have its
Drawings / sketches can be inserted from the insertion palette and are editable directly through GitBook using the integrated Excalidraw editor.
Drawings are stored as special SVG files in the space. Those files have an extension of drawing.svg.
You can add tables to better organize your information.
Table columns can have the following data types, which apply restrictions or embellishments to every cell in the column:
Text: standard text. Can be formatted.
Number: a number, with or without floating digits.
Checkbox: a checkbox that can be checked or unchecked.
Select: data can be selected from a pre-defined list of options. Can be single-choice or multiple-choice.
Users: data can be selected from a list of the organization's members. Can be single-choice or multiple-choice.
Files: data is a reference to a file in the space. New files can be uploaded when populating cells in the column.
Rating: A star rating, with a configurable maximum.
Changing a column type
You can use the column dropdown menu to change a column's type. Select the new type and hit save. You'll be prompted to confirm this change, as column data could be deleted or malformed by this action.
You can drag from a column's edge to resize it. Column resizing is stored as a percentage of the overall width, which allows for relative sizing based on the overall width of the table.
Tables that are wider than the editor container will be horizontally scrollable.
Good to know: You can drag and drop columns and rows to reorder them, and delete columns or rows using their respective context menus.