Tip 4 - make headings
When you think (or realize) youâll reference something frequently, make it a heading.
Section headings help organize your content and make your text easier to both read and skim. When I have several paragraphs in a row without a section heading, I know Iâve likely written more than one âkey idea.â Thatâs a good signal to look for where I might have moved on to a different idea that could be its own section.
But thatâs not my only clue that Iâm in need of a heading! Often, Iâll notice its time for a heading when I can see myself wanting to link directly to a paragraph. For example, in Astro, there are two ways to âadd a renderer to a containerâ (using a helper function, and first importing then storing manually). Not only is it visually clearer to make a new section heading for each method, but separate sub-headings allow me to link to either method individually from other parts of the documentation.
Astro Docs contains many internal links so people can quickly access related content. This content might be expanded on in a guide, shown in an example in a recipe, or defined in an API reference. The closer you can get to linking the exact place in docs youâd like your reader to visit, the more helpful the link. Your reader doesnât have to guess which part of a larger section is relevant to them.
Sometimes, I will discover after a page is already published that I wish I could link to a more targeted part of a section. Usually thereâs a key idea that would really help provide extra context⊠and, Iâve already written it so I donât need to say it again! But, itâs buried in a larger chunk of content and it shouldnât be the readerâs job to find it.
Helping my readers navigate quickly and directly to the content they need is worth the rework. And, donât worry if you didnât predict the need ahead of time; when itâs necessary, youâll know!
Toggle Comments
© 2021 - 2024 Sarah Rainsberger. Except where otherwise noted, and/or quoting external sources, the content of this site is licensed under CC BY-NC-SA 4.0