xref: /aosp_15_r20/external/pigweed/docs/style/writing.rst (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing:
2*61c4878aSAndroid Build Coastguard Worker
3*61c4878aSAndroid Build Coastguard Worker===================
4*61c4878aSAndroid Build Coastguard WorkerWriting style guide
5*61c4878aSAndroid Build Coastguard Worker===================
6*61c4878aSAndroid Build Coastguard Worker.. inclusive-language: disable
7*61c4878aSAndroid Build Coastguard Worker.. _reStructuredText: https://en.wikipedia.org/wiki/ReStructuredText
8*61c4878aSAndroid Build Coastguard Worker.. _Sphinx: https://www.sphinx-doc.org/en/master/
9*61c4878aSAndroid Build Coastguard Worker.. inclusive-language: enable
10*61c4878aSAndroid Build Coastguard Worker
11*61c4878aSAndroid Build Coastguard WorkerThis style guide explains how you should style written content that's published
12*61c4878aSAndroid Build Coastguard Workeron ``pigweed.dev``.
13*61c4878aSAndroid Build Coastguard Worker
14*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-overview:
15*61c4878aSAndroid Build Coastguard Worker
16*61c4878aSAndroid Build Coastguard Worker--------
17*61c4878aSAndroid Build Coastguard WorkerOverview
18*61c4878aSAndroid Build Coastguard Worker--------
19*61c4878aSAndroid Build Coastguard Worker
20*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-scope:
21*61c4878aSAndroid Build Coastguard Worker
22*61c4878aSAndroid Build Coastguard WorkerScope
23*61c4878aSAndroid Build Coastguard Worker=====
24*61c4878aSAndroid Build Coastguard WorkerThis style guide applies to all written content that's published to
25*61c4878aSAndroid Build Coastguard Worker``pigweed.dev``.
26*61c4878aSAndroid Build Coastguard Worker
27*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-other:
28*61c4878aSAndroid Build Coastguard Worker
29*61c4878aSAndroid Build Coastguard WorkerOther documentation-related style guides
30*61c4878aSAndroid Build Coastguard Worker========================================
31*61c4878aSAndroid Build Coastguard WorkerThis style guide is narrowly focused on writing conventions such as how to
32*61c4878aSAndroid Build Coastguard Workercapitalize a document title. See :ref:`docs-contrib-docs` for other aspects
33*61c4878aSAndroid Build Coastguard Workerof Pigweed's documentation.
34*61c4878aSAndroid Build Coastguard Worker
35*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-usage:
36*61c4878aSAndroid Build Coastguard Worker
37*61c4878aSAndroid Build Coastguard WorkerUsage
38*61c4878aSAndroid Build Coastguard Worker=====
39*61c4878aSAndroid Build Coastguard Worker.. _Google developer documentation style guide: https://developers.google.com/style
40*61c4878aSAndroid Build Coastguard Worker.. _create an issue: https://pwbug.dev
41*61c4878aSAndroid Build Coastguard Worker
42*61c4878aSAndroid Build Coastguard Worker1. Check if this writing style guide answers your style question.
43*61c4878aSAndroid Build Coastguard Worker2. If you don't find an answer in this guide, check the
44*61c4878aSAndroid Build Coastguard Worker   `Google developer documentation style guide`_ (GDDSG). If the GDDSG answers
45*61c4878aSAndroid Build Coastguard Worker   your question, use that answer.
46*61c4878aSAndroid Build Coastguard Worker3. If neither this guide nor the GDDSG answers your question, `create an issue`_
47*61c4878aSAndroid Build Coastguard Worker   in the Pigweed tracker. The answer will either get added to this guide or to
48*61c4878aSAndroid Build Coastguard Worker   the GDDSG.
49*61c4878aSAndroid Build Coastguard Worker
50*61c4878aSAndroid Build Coastguard Worker.. note::
51*61c4878aSAndroid Build Coastguard Worker
52*61c4878aSAndroid Build Coastguard Worker   The GDDSG is the "base class" of Pigweed's writing style. The writing style
53*61c4878aSAndroid Build Coastguard Worker   guide you're currently looking at is the "derived class" that can override
54*61c4878aSAndroid Build Coastguard Worker   the base class as needed. Overrides must have very strong rationale.
55*61c4878aSAndroid Build Coastguard Worker
56*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-caps:
57*61c4878aSAndroid Build Coastguard Worker
58*61c4878aSAndroid Build Coastguard Worker--------------
59*61c4878aSAndroid Build Coastguard WorkerCapitalization
60*61c4878aSAndroid Build Coastguard Worker--------------
61*61c4878aSAndroid Build Coastguard Worker
62*61c4878aSAndroid Build Coastguard Worker.. _docs-pw-style-writing-caps-headings:
63*61c4878aSAndroid Build Coastguard Worker
64*61c4878aSAndroid Build Coastguard WorkerTitles and section headings
65*61c4878aSAndroid Build Coastguard Worker===========================
66*61c4878aSAndroid Build Coastguard Worker.. _Capitalization in titles and headings: https://developers.google.com/style/capitalization#capitalization-in-titles-and-headings
67*61c4878aSAndroid Build Coastguard Worker
68*61c4878aSAndroid Build Coastguard WorkerUse sentence case. See `Capitalization in titles and headings`_.
69