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
A symbol link to the Sloth initializer can be written using the symbol
345
+
path in either source language.
287
346
347
+
**Swift name**
348
+
349
+
```markdown
350
+
``Sloth/init(name:color:power:)``
351
+
```
352
+
353
+
**Objective-C name**
354
+
355
+
```markdown
356
+
``Sloth/initWithName:color:power:``
357
+
```
288
358
289
359
To add a link to an article, use the less-than symbol (`<`), the `doc` keyword,
290
360
a colon (`:`), the name of the article, and a greater-than symbol
@@ -319,20 +389,20 @@ add the link's URL destination within the parentheses.
319
389
DocC extends Markdown's image support so you can provide appearance and
320
390
display scale-aware versions of an image. You use specific components to create image filenames, and DocC uses the most appropriate version of the image when displaying your documentation.
321
391
322
-

392
+

323
393
324
394
| Component | Description |
325
395
| --- | --- |
326
396
| Image name |**Required**. Identifies the image within the documentation catalog. The name must be unique across all images in the catalog, even if you store them in separate folders. |
327
-
| Appearance |**Optional**. Identifies the appearance mode in which DocC uses the image. Add `~dark` directly after the image name to identify the image as a dark appearance mode variant. |
397
+
| Appearance |**Optional**. Identifies the appearance mode in which DocC uses the image. Add `~dark` directly after the image name to identify the image as a dark mode variant. |
328
398
| Display scale |**Optional**. Identifies the display scale at which DocC uses the image. Possible values are `@1x`, `@2x`, and `@3x`. When specifying a display scale, add it directly before the file extension. |
329
399
| File extension |**Required**. Identifies the type of image, such as .png or .jpeg. |
330
400
331
401
For example, the following are all valid DocC image filenames:
332
402
333
403
- term `sloth.png`: An image that's independent of all appearance modes and display scales.
334
-
- term `sloth~dark.png`: An image that's specific to a dark appearance mode, but is display-scale independent.
335
-
- term `[email protected]`: An image that's specific to a dark appearance mode and the 2x display scale.
404
+
- term `sloth~dark.png`: An image that's specific to dark mode, but is display-scale independent.
405
+
- term `[email protected]`: An image that's specific to dark mode and the 2x display scale.
336
406
337
407
> Important: You must store images you include in your documentation in a
338
408
documentation catalog. For more information, see <doc:documenting-a-swift-framework-or-package>.
@@ -349,7 +419,7 @@ display scale, and file extension components. Don't include the path to the
349
419
image, even if you store the image in a folder in the documentation catalog.
350
420
351
421
```markdown
352
-

422
+

353
423
```
354
424
355
425
### Add Bulleted, Numbered, and Term Lists
@@ -499,4 +569,4 @@ DocC doesn't prematurely terminate the styling.
499
569
**Sloths require sustenance\*\* to perform activities.**
500
570
```
501
571
502
-
<!-- Copyright (c) 2021 Apple Inc and the Swift Project authors. All Rights Reserved. -->
572
+
<!-- Copyright (c) 2021-2023 Apple Inc and the Swift Project authors. All Rights Reserved. -->
0 commit comments