Writing Content

Formatting in Google Docs

Which Google Docs styles turn into what on your site, and what the theme sets for you.

You write the structure: title, headings, lists, tables and images.

The site's theme decides how it looks, so every article matches the rest of the site in light and dark mode.

Title and description

Google Docs styleBecomes
TitleThe article's title, its heading and its name in menus and search results
SubtitleThe description: the short summary under the title, in listings and in search results

Use each one once, at the top of the doc.

Pick them from the style menu in the Google Docs toolbar, the one that shows Normal text.

The title also sets the article's address. Changing it later changes the address on the next sync, and links to the old one stop working. Settle titles before you share links.

Without a Title paragraph, the article is named after the doc's file name.

Headings

Use Heading 1 to Heading 6 for the sections of your article.

You don't have to start at Heading 1: the highest level you use becomes the top section level on the site.

Headings make the table of contents beside the article, when the theme shows one.

Each heading also gets its own link. See Links Between Articles .

Text formatting

Carries overDoesn't carry over
BoldText color
ItalicFont
UnderlineFont size
StrikethroughLine spacing
Highlight (any text background color)Paragraph alignment
Links

Bold, italic, underline, strikethrough, highlight, inline code and links as a Contito site shows them

Fonts and text colors are left out on purpose.

The theme sets them, so text stays readable on every theme and in dark mode.

To change them for the whole site, go to Website > Design. See Brand: Colors, Fonts and Sizing .

A highlight keeps its meaning but takes the theme's highlight color, whichever color you picked in Google Docs.

Code

Contito treats text in one of these fonts as code:

  • Courier New
  • Roboto Mono
  • Source Code Pro
You writeBecomes
A few words in a code fontInline code, like npm install
A whole paragraph in a code fontA code block
Several code-font paragraphs in a rowOne code block

To pick the language for syntax highlighting, use the Code Block component. See Components .

Lists

Bulleted and numbered lists carry over, nested levels included.

A numbered list that a paragraph interrupts keeps counting where it left off.

Tables

Tables carry over with the column widths you set.

To give a table a header row, style every cell of its first row as a heading, for example Heading 3.

A table with a header row as a Contito site shows it

A table whose first row is a single cell starting with a name in parentheses is a component, not a table. See Components .

Images

Insert images with Insert > Image.

Contito copies each one to your site on sync, so it keeps working even if the doc changes.

Give every image alt text: right-click it and choose Alt text.

Screen readers read it out, and search engines use it.

For a caption under an image, use the Image component. See Components .

Dividers

Insert > Horizontal line draws a divider between sections.

Callouts, accordions and more

A plain Google Doc can't draw a warning box or a collapsible answer.

Components can: you write the component's name in parentheses and Contito draws it.

text
(Callout | type: warning) Back up your data before upgrading.

See Components for the full list, and the Kitchen Sink for each one rendered.

Good habits

Use the pageless format

In Google Docs, choose File > Page setup > Pageless.

Wide tables and images then show at full width, and no page breaks cut through your article, which is closer to how the site shows it.

Press Enter once between paragraphs

Contito drops empty paragraphs and the theme spaces paragraphs evenly.

Blank lines you add for spacing have no effect on the site.

Keep drafts out of the synced folder

Every doc in a connected folder goes live on the next sync.

Write drafts in a separate doc or folder, and move the doc in when it's ready.

Keep the parentheses part in one style

A component name has to be plain text at the very start of a paragraph.

Bold, a link or a different font across the part in parentheses turns it back into ordinary text.