From 21f2e34b74bc0175e8d1df561d1b1a432483c2ca Mon Sep 17 00:00:00 2001 From: evanorti Date: Thu, 12 Oct 2023 15:42:50 -0400 Subject: [PATCH] Delete style-guide.mdx --- style-guide.mdx | 311 ------------------------------------------------ 1 file changed, 311 deletions(-) delete mode 100644 style-guide.mdx diff --git a/style-guide.mdx b/style-guide.mdx deleted file mode 100644 index 566d64d0d..000000000 --- a/style-guide.mdx +++ /dev/null @@ -1,311 +0,0 @@ -# Terra Docs style guide - -Use the following style guide to ensure the Terra documentation is understandable, useful, consistent, and organized. - -## Guiding principles - -The Terra Docs are: - -### Friendly - -Write in a personable voice with a positive attitude. - -### Consistent - -Use the same terminology, formatting, voice, and tone across all your documentation. Markdown takes the guesswork out of formatting. Use the conventions in this guide to maintain consistency. - -### Approachable - -The Terra Docs are intended for a diverse, international audience. Use natural language, and talk like a person. Avoid technical jargon and obscure words. Use your writing to present Terra. Don't use Terra to present your writing. - -### Simple - -Write less. Say more. - -Simplicity is at the heart of the Terra style. Writers and readers will understand each other better with a minimalist approach. Emphasize clarity over complexity. - -Writing in shorter sentences will give your writing more clarity. Try to limit the number of clauses in a sentence. Simplify your language. Avoid jargon. - -### Inclusive - -All people are welcome here. Use appropriate language as it relates to matters of identity. - -For more information, see the [Microsoft bias-free writing guidelines](https://docs.microsoft.com/en-us/style-guide/bias-free-communication). - -## Organizational framework - -The Terra Docs are structured using the [Diataxis framework](https://diataxis.fr/). Each document should fall into one of the four categories: tutorials, how-to guides, explanation, and reference. Try not to overlap categories in the same document. - -### Tutorials - -Tutorials start the user from scratch and walk them through the process of getting started. Discussion should be kept to a minimum in these guides. Action is important. Tutorials walk the user through a complete, concrete series of steps to achieve a goal. - -Example: The Terrain initial setup - -### How-to guides - -These guides are shorter than tutorials and explain how to do different actions after the user has gone through a tutorial. How-to guides don't start from scratch. - -Example: Start the LCD - -### Explanation - -Explanations are discussions that explain a particular topic. - -Example: What is Terra? - -### Reference - -Informational material used for quick reference. - -Example: The Terrad commands and subcommands - -## Voice - -All writing in the Terra Docs is written in the second or third person. - -First-person language such as "I," "we," "us," or "let's" should be avoided in all situations. - -**Examples**: -- "We recommend," becomes "it is recommended." -- "Let's use the following command," becomes "use the following command." -- "Our project," becomes "your project." - -## Style guidelines - -### Acronyms - -Use the spelled-out term followed by the acronym in parentheses, such as dynamic-link library (DLL). On subsequent occurrences in the same topic, use the acronym. - -### Bold and italics - -Italics should be avoided. Bold is used in the following cases: - -- When referring to interface buttons. "Click **Send**." -- When denoting [examples](#examples). - -Ending punctuation is never stylized or included in links. - -**Example**: Open the window and click **Next**. Select a fee to submit a [transaction](link). - -### Code - -Code should be in blocks. A command that a user needs to execute should be written in a code block rather than inline. Use _`inline code`_ to refer to specific parts of code. - -**Example**: Use the _`start`_ command to run the application: - -```sh -npm start -``` - -Use notes in code blocks sparingly, if at all. Most notes should be written above the code block. Annotations should be reserved for long code blocks. - -Code blocks in tutorials should be written so that a user can copy and paste them directly into their terminal using the copy button on each code block. - -Avoid using multiple commands in a code block. Commands should be separated and listed as substeps. - -#### Inline code - -Code mentioned outside of code blocks should always be written in tick marks exactly as it appears. - -Code Hike syntax for inline code: - -``` -_`inline code`_ - -``` - -**Example**: - -Use the _`k.FunctionExapmle`_ function to create an example. - -Avoid starting sentences with code, as it makes capitalization and punctuation difficult. Never alter the punctuation or capitalization of code. Write it exactly as it appears. - -**Example**: - -All code goes inside `tick` marks, even when referring to specific `variables`. - - -### Dropdowns - -Dropdowns can be used to hide content that is related but not necessary to the page. - -```` -
- Title -

- -``` -hidden content -``` -

-
-```` - -### Examples - -Examples are denoted using the following format: - -``` -**Example**: You can put a short intro to the example here. - -This is an example. -``` - -### File/folder names - -Name all your files and folders using lower case. Use dashes if necessary. Do not use spaces or underscores. Keep filenames succinct. - -**Example**: - -``` -my-folder/my-file.png -``` - -### Formatting - -Markdown takes the guesswork out of formatting. Rely on Markdown to format and standardize your documentation. Do not use special HTML code to format text. The point of Markdown is to be consistent. Do not use breaks `
` unless absolutely necessary. Avoid using lines to denote sections. Headings denote sections. - -Limiting your styling will make your writing clearer and more succinct. - -### Headings - -Headings denote sections in a document. Each page should contain only one first-level heading as its title. Headings below the title can be nested. Do not skip heading levels. - -Headings that denote chronological steps are numbered. Headings used to denote non-chronological sections, such as explanations or stand-alone information, are not numbered. - -All headings follow sentence-style capitalization. Avoid starting a heading with in-line code. Headings should not have ending punctuation, except for questions. - -Level 1 headings should only be used for titles. - -Try to use only three heading levels. Do not use more than 4 levels. - -**Example**: - -``` -# Title heading only -## Level 2 -### Level 3 -#### Avoid using level 4 headings -##### Never use more than 4 levels - -``` - -### Images - -Use the Markdown syntax for images whenever possible. Avoid using HTML to customize images. - -All images should be named with a short, descriptive label. - -**Example**: - -``` -![](/img/example-image.jpg) -``` - -### Links - -Use descriptive text for links. Avoid using "here" as a placeholder. All links are written in markdown format. - -**Example**: - -Incorrect: For more examples, click [here](example.com). - -Correct: For more examples, visit the [example page](example.com). - -Descriptive links help the user understand where they are going. - - -### Lists - -#### Ordered lists - -1. Any steps that need to be completed sequentially are ordered. - -2. Ordered lists must contain at least two steps. - -#### Unordered lists - -- Use unordered lists to list non-sequential information. -- Use sentence-style capitalization and punctuation in unordered lists. -- Unordered lists must contain at least two components. - -### Notes and admonitions - -You can use admonitions by importing them and using the following syntax: - -``` -import Admonition from '@theme/Admonition'; - - - -Some **content** with _markdown_ `syntax`. - - - -``` - -Admonition types: - -``` -note -tip -info -caution -danger -``` - -All notes, warnings, tips, or other admonitions must be written in an admonition box. Don't use subtext or other formatting elements. If a note is important, it goes in a box. If it is not important, leave it out. - -Try to use custom titles for all admonitions. - -**Example**: - -``` - - -``` - -### Numbers - -Numbers below ten should be spelled out when used in a sentence. When referring to a specific step number, just use the numeral. Proper nouns or direct references don't need to be spelled out. - -**Example**: - -"There are three things to remember." - -"There are 40 things to remember." - -"Go to step 2." - -"Pisco-2" - -"Step 9 shows how to start the LCD." - -### Punctuation - -Simplify your writing. While tempting, em dashes and parentheticals promote unnecessary complexity and ambiguous grammar. - -Use the Oxford comma. - -Punctuation integral to a sentence should never be styled or included in a link. - -**Examples**: - -Period outside of link: - -``` -"Visit the [example page](example.com). " -``` - -Commas outside of code: - -``` -The three commands are `start`, `end`, and `help`. -``` - -