File: SwiftDocC.md

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (59 lines) | stat: -rw-r--r-- 1,818 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# ``SwiftDocC``

Combine code comments with markup prose to produce structured, semantic documentation.

## Overview

DocC comes with built-in support for several types of input files. You organize these files by placing them in a folder with a `.docc` extension. This folder is called a documentation bundle, and can include these file types:
 
 - Symbol-graph files, in JSON format, that describe available symbols in a framework.
 - Lightweight markdown files that contain free-form articles and more.
 - Tutorial files that include dynamic, learning content.
 - Asset files like images, videos, and archived projects for download.
 - An `Info.plist` file that contains metadata about the bundle.

SwiftDocC provides the APIs you use to load a bundle, parse the symbol-graph meta-information, extract symbol documentation, and optionally pair that symbol documentation with external file content. DocC represents the compiled documentation in an in-memory model that you can further convert in a persistable representation for writing to disk.

## Topics 

### Essentials

- <doc:CompilerPipeline>

### Content Discovery

- <doc:DocumentationWorkspaceGroup>
- <doc:DocumentationContextGroup>

### Resolving documentation links

- <doc:LinkResolution>

### Rendering
Converting in-memory documentation into rendering nodes and persisting them on disk as JSON.

- <doc:RenderingModel>
- <doc:PersistingDocumentation>

### Indexing

- <doc:DocumentationIndexing>

### Diagnostics and Analysis

- <doc:EmittingDiagnostics>
- <doc:StaticAnalysis>
- <doc:Benchmarking>

### Utilities and Communication

- <doc:Concurrency>
- <doc:Utilities>
- <doc:Communication>

### Development

- <doc:Features>
- <doc:AddingFeatureFlags>

<!-- Copyright (c) 2021-2024 Apple Inc and the Swift Project authors. All Rights Reserved. -->