|
1 |
| -When you're assigned an issue, after you've completed your work and the workflows (status checks) have run, check to make sure there are no build warnings under the OpenPublishing.Build status check. If there are, open the build report (under View Details) and resolve any build warnings you introduced. |
2 |
| - |
3 |
| -When writing documentation or editing .md files, follow the following guidelines: |
4 |
| - |
5 |
| -Unless otherwise specified, all .NET content refers to modern .NET (not .NET Framework). |
6 |
| - |
7 |
| -Follow the style of the [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/). |
8 |
| - |
9 |
| -Headings should be in sentence case, not title case. Don't use gerunds in titles. |
10 |
| - |
11 |
| -Use the active voice whenever possible, and second person to address the reader directly. |
12 |
| - |
13 |
| -Use a conversational tone with contractions. |
14 |
| - |
15 |
| -Be concise. |
16 |
| - |
17 |
| -Break up long sentences. |
18 |
| - |
19 |
| -Use the present tense for instructions and descriptions. For example, "The method returns a value" instead of "The method will return a value." |
20 |
| - |
21 |
| -Do not use "we" or "our" to refer to the authors of the documentation. |
22 |
| - |
23 |
| -Use the imperative mood for instructions. For example, "Call the method" instead of "You should call the method." |
24 |
| - |
25 |
| -Use "might" instead of "may" to indicate possibility. For example, "This method might throw an exception" instead of "This method may throw an exception." |
26 |
| - |
27 |
| -Use the Oxford comma in lists of three or more items. |
28 |
| - |
29 |
| -Number ordered list items all as "1." instead of "1.", "2.", etc. Use bullets for unordered lists. |
30 |
| - |
31 |
| -Use **bold** when referring to UI elements. Use `code style` for file names and folders, custom types, and other text that should never be localized. |
32 |
| - |
33 |
| -Put raw URLs within angle brackets. |
34 |
| - |
35 |
| -Include links to related topics and resources where appropriate. Use relative links if the target file lives in this repo. If you add a link to another page on learn.microsoft.com that's not in this repo, remove https://learn.microsoft.com/en-us from the link. |
36 |
| - |
37 |
| -When mentioning APIs, use cross-references to the API documentation. These links are formatted as <xref:api-doc-ID>. You can find the API doc ID in the XML files in the https://github.com/dotnet/dotnet-api-docs repository. For types, the doc ID is the value of the `Value` attribute of the `<TypeSignature>` element where the `Language` attribute value is `DocId`. For other (member) APIs, the doc ID is the value of the `Value` attribute of the `<MemberSignature>` element where the `Language` attribute value is `DocId`. Omit the first two characters of the DocId. For example, the xref link for System.String is <xref:System.String>. |
38 |
| - |
39 |
| -If you're assigned a GitHub issue that's labeled "breaking-change", include the prompt directions in the .github/prompts/breaking-change.md file in this repo. |
40 |
| - |
41 |
| -If you include a code snippet that's more than 6 lines long, put it in a separate .cs file in a folder named "snippets" in the same folder as the document. Within the "snippets" folder, add a new directory with the name of the document. For example, if the document is named "my-doc.md", create a folder named "snippets/my-doc" folder. Also add a simple .csproj file to the same directory that targets the latest version of .NET. It can be a library or executable project. |
42 |
| - |
43 |
| -If you're adding a new Markdown file, it should be named in all lowercase with hyphens separating words. Also, omit any filler words such as "the" or "a" from the file name. |
| 1 | +# .NET Aspire Documentation Guidelines |
| 2 | + |
| 3 | +## Terminology |
| 4 | +- First mention: ".NET Aspire", subsequent mentions: "Aspire" |
| 5 | +- All .NET content refers to modern .NET (not .NET Framework) |
| 6 | + |
| 7 | +## Writing Style |
| 8 | +Follow [Microsoft Writing Style Guide](https://learn.microsoft.com/en-us/style-guide/welcome/) with these specifics: |
| 9 | + |
| 10 | +### Voice and Tone |
| 11 | +- Active voice, second person addressing reader directly |
| 12 | +- Conversational tone with contractions |
| 13 | +- Present tense for instructions/descriptions |
| 14 | +- Imperative mood for instructions ("Call the method" not "You should call the method") |
| 15 | +- Use "might" instead of "may" for possibility |
| 16 | +- Avoid "we"/"our" referring to documentation authors |
| 17 | + |
| 18 | +### Structure and Format |
| 19 | +- Sentence case headings (no gerunds in titles) |
| 20 | +- Be concise, break up long sentences |
| 21 | +- Oxford comma in lists |
| 22 | +- Number all ordered list items as "1." (not sequential numbering like "1.", "2.", "3.", etc.) |
| 23 | +- Complete sentences with proper punctuation in all list items |
| 24 | +- Avoid "etc." or "and so on" - provide complete lists or use "for example" |
| 25 | +- No consecutive headings without content between them |
| 26 | + |
| 27 | +### Formatting Conventions |
| 28 | +- **Bold** for UI elements |
| 29 | +- `Code style` for file names, folders, custom types, non-localizable text |
| 30 | +- Raw URLs in angle brackets |
| 31 | +- Use relative links for files in this repo |
| 32 | +- Remove `https://learn.microsoft.com/en-us` from learn.microsoft.com links |
| 33 | + |
| 34 | +## API References |
| 35 | +Use cross-references: `<xref:api-doc-ID>` |
| 36 | + |
| 37 | +To find API doc IDs: |
| 38 | +1. Check XML files in https://github.com/dotnet/dotnet-api-docs |
| 39 | +2. For types: `Value` attribute of `<TypeSignature>` where `Language="DocId"` (omit first 2 characters) |
| 40 | +3. For members: `Value` attribute of `<MemberSignature>` where `Language="DocId"` (omit first 2 characters) |
| 41 | + |
| 42 | +If unsure, use API browser: `https://learn.microsoft.com/api/apibrowser/dotnet/search?api-version=0.2&locale=en-us&search={API_NAME}&$skip=0&$top=5` |
| 43 | + |
| 44 | +Use the `url` value from results for manual links. |
| 45 | + |
| 46 | +## Code Snippets |
| 47 | +For snippets >6 lines: |
| 48 | +1. Create `snippets/my-doc/` folder in same directory as document (for a document named `my-doc.md`) |
| 49 | +1. Add snippet as separate `.cs` file |
| 50 | +1. Include simple `.csproj` targeting latest .NET |
| 51 | +1. All code should use the latest stable versions/features |
| 52 | + |
| 53 | +## File Naming |
| 54 | +New Markdown files: lowercase with hyphens, omit filler words (the, a, etc.) |
| 55 | + |
| 56 | +## Special Cases |
| 57 | +- Breaking changes: Include directions from `.github/prompts/breaking-change.md` |
0 commit comments