You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: doc/STYLE_GUIDE.md
+80-5Lines changed: 80 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,29 @@ See [CONTRIBUTING.md](../CONTRIBUTING.md) for general information on contributin
11
11
12
12
## Location
13
13
14
-
Place all documentation contributions in the appropriate location in the [`/doc`](./) directory. If you are unsure of the best location for your contribution, let us know in your pull request.
14
+
Place all documentation contributions in the appropriate location in the [`/doc`](./) directory. Most contributions should go into the `/doc/guides` subdirectory, which covers conceptual and usage content, to align it with the structure of the openweave.io documentation site.
15
+
16
+
Current documentation structure:
17
+
18
+
Directory | Description
19
+
----|----
20
+
`/doc/guides` | Conceptual or usage content that doesn't fit within a subdirectory, and high-level tutorials
21
+
`/doc/guides/images` | All images included in guide content
22
+
`/doc/guides/profiles` | Content describing or illustrating use of OpenWeave profiles
23
+
`/doc/guides/test` | Content related to testing Weave with Happy
24
+
`/doc/guides/tools` | Content describing or illustrating use of OpenWeave tools
25
+
`/doc/guides/weave-primer` | Weave Primer content
26
+
`/doc/images` | Top-level OpenWeave images, such as logos
27
+
`/doc/presentations` | PDF presentations on Weave features
28
+
`/doc/specs` | PDFs of Weave specifications
29
+
30
+
If you are unsure of the best location for your contribution, create an Issue and ask, or let us know in your Pull Request.
31
+
32
+
### Updating the site menus
33
+
34
+
When adding a new document, or moving one, also update the `_toc.yaml` file(s) in the related folders. For example, the `/doc/guides/tools/_toc.yaml` file is the menu for the [Tools section on openweave.io](https://openweave.io/guides/tools).
35
+
36
+
New documents should be added to the site menu TOCs where appropriate. If you are unsure of where to place a document within the menu, let us know in your Pull Request.
15
37
16
38
## Style
17
39
@@ -31,6 +53,12 @@ Use standard Markdown when authoring OpenWeave documentation. While HTML may be
31
53
32
54
> Note: Edit this file to see the Markdown behind the examples.
33
55
56
+
### Headers
57
+
58
+
The document title should be an h1 header (#) and in title case (all words are capitalized). All section headers should be h2 (##) or lower and in sentence case (only the first word and proper nouns are capitalized).
59
+
60
+
The best practice for document clarity is to not go lower than h3, but h4 is fine on occasion. Try to avoid using h4 often, or going lower than h4. If this happens, the document should be reorganized or broken up to ensure it stays at h3 with the occasional h4.
61
+
34
62
### Command line examples
35
63
36
64
Feel free to use either `$` or `%` to preface command line examples, but be consistent within the same doc or set of docs:
0 commit comments