Tip 45 - and another thing...
In Astro docs, we try to limit the number of âasidesâ (UI elements marked as ânoteâ, âtipâ, âcautionâ etc⊠like the one above!) to information that is truly tangential to the core material in some way. Otherwise, if itâs just part of âhow things work,â we believe we should include it in the regular documentation text.
We have to have this guidance because it is very common for people to learn a new fact, realize itâs not explicity stated in our docs, and then submit a contribution to add a âtipâ or a ânoteâ with this new piece of information.
Unfortunately, this TIL (âToday I learnedâŠâ) approach can easily lead to docs looking like a board of sticky notes. When everything stands out, nothing stands out. Banner blindness is real!
In addition to, âomg stop making everything a flaming orange caution; your project wonât explode because you didnât add a client directiveâ, one PR suggestion Iâll make is to remove extra words like âalsoâ when you donât mean to emphasize the âadditional-nessâ of an idea. âAlsoâ is helpful to call out a âsimilar addition,â but not every addition.
âComponents are reusable. Components are also composable. You can also write components from several different frameworks. Components can also pass and recieve props.â Itâs easy to go overboard âsticky noteâ-ing âalsoâ on to every new idea, whether or not the similarity of the addition is interesting, important, true, or helpful.
- â To avoid repeating the same HTML elements on every page, you can move common elements into a layout component. You can use as many or as few layout components as youâd like.
- đ To avoid repeating the same HTML elements on every page, you can move common elements into a layout component. You can also use as many or as few layout components as youâd like.
Just like âbutâ sets the reader up to expect a surprise, âalsoâ can make the reader think they missed something important that came before. We can file this under âwords mean things,â and I like to make sure that each word I include in my docs is contributing to the readerâs experience as intended.
Certainly, if what came before is helpful to understanding this sentence, I will make that connection! If a superflous word like âalsoâ gives me a better reading flow, I might decide to use it. Itâs (usually!) not wrong. Itâs occasionally overwhelming. Itâs sure to grab my attention while editing just in case it doesnât provide any benefit.
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