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
| Associated type | API collection pages | Enumerations |
117
+
| Class | Articles | Function and function macro |
118
+
| Constant | Sample code projects | Initializer |
119
+
| Entitlement || Macro |
120
+
| Enumerated types || Method |
121
+
| Information property list key || Notification |
122
+
| Property || Subscript |
123
+
| Protocol |||
124
+
| Structure |||
125
+
| Type alias |||
126
+
| Variable |||
92
127
93
128
For instance, when writing the abstract for a class `Order`, you could write:
94
129
@@ -143,7 +178,7 @@ Documentation should be written in a professional voice. The author and the
143
178
reader are not expected to know each other personally, so avoid overly familiar
144
179
terms or colloquialisms such as _we_, _our_, or _let's_.
145
180
146
-
When writing specific instructions that a reader must follow exactly in order to
181
+
When writing specific instructions that a reader must follow exactly to
147
182
accomplish a task, use the second person (_you_, _your_, and so on).
148
183
149
184
#### Articles
@@ -160,23 +195,23 @@ these guidelines when creating an article:
160
195
- Start section headings with an imperative verb.
161
196
- Always follow a section heading with some text to setup the code or problem
162
197
you want to solve.
163
-
- Ensure that your filename adheres to the guidance in the [Filenames](#filenames)
164
-
section, below.
198
+
- Ensure that your filename adheres to the guidance in the
199
+
[Filenames](#filenames) section, below.
165
200
166
201
#### API collections
167
202
168
203
To organize related subsets of symbols, articles, and other content, use an API
169
204
collection. Follow these guidelines when creating an API collection:
170
205
171
-
- Begin the collection title with a noun that describes what the items in the
172
-
collection have in common.
173
-
- After the title, include a single sentence that describes the items in the
174
-
collection.
206
+
- Begin the collection title with a noun that describes what the items in the
207
+
collection have in common.
208
+
- After the title, include a single sentence abstract that describes the items
209
+
in the collection.
175
210
- Optionally, include an overview to the collection.
176
211
- Organize the symbols under topic group headings. Begin a topic group heading
177
-
with a gerund.
178
-
- Ensure that your filename adheres to the guidance in the [Filenames](#filenames)
179
-
section, below.
212
+
with a gerund.
213
+
- Ensure that your filename adheres to the guidance in the
214
+
[Filenames](#filenames) section, below.
180
215
181
216
#### Filenames
182
217
@@ -193,7 +228,7 @@ page is _Event tags_, the filename would be `event-tags.md`.
193
228
The DocC compiler lowercases URL paths, so filenames converted from
194
229
[UpperCamelCase](https://en.wikipedia.org/wiki/Camel_case) may be difficult to
195
230
read. UpperCamelCase should still be used for Markdown files in the repository
196
-
such as this one that are not part of a DocC bundle.
231
+
such as this one that aren't part of a DocC bundle.
197
232
198
233
For more information, see [Adding Supplemental Content to a Documentation Catalog](https://www.swift.org/documentation/docc/adding-supplemental-content-to-a-documentation-catalog).
199
234
@@ -202,6 +237,6 @@ For more information, see [Adding Supplemental Content to a Documentation Catalo
202
237
Documentation is encoded as UTF-8 using Markdown where possible.
203
238
204
239
Documentation should be wrapped at 80 columns, including code samples in
205
-
documentation where possible, so the reader does not need to scroll
206
-
horizontally. If documentation includes a long link, it does not need to be
240
+
documentation where possible, so the reader doesn't need to scroll
241
+
horizontally. If documentation includes a long link, it doesn't need to be
207
242
split up over multiple lines, and a URL shortener should _not_ be used.
0 commit comments