Skip to content

Commit 721944a

Browse files
authored
Merge pull request #80857 from daveyc123/doccForDiagnostics
Instructions for generating DocC for diagnostics
2 parents 5c4ff42 + 33fbcee commit 721944a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/Diagnostics.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ Diagnostic group documentation should:
9999
- Include references to relevant chapters of _The Swift Programming Language_.
100100
- Be written in Markdown, but avoid excessive markup which negatively impacts the terminal UX.
101101

102+
The diagnostic group documentation supports generating a DocC bundle for hosting. You can currently find the compiler diagnostics documentation at https://docs.swift.org/compiler/documentation/diagnostics/
103+
104+
To generate this documentation locally, run the following command from the root of the repository:
105+
```
106+
docc preview --allow-arbitrary-catalog-directories userdocs/diagnostics
107+
```
108+
109+
102110
### Quick-Start Guide for Contributing New Diagnostic Groups ###
103111

104112
Adding new diagnostic groups is a great way to get familiar with the process of contributing to Swift, while also making a big impact!

0 commit comments

Comments
 (0)