Skip to content

Commit d05f70d

Browse files
authored
easier doc access (swiftlang#53)
* adds notes on how to view documentation in a browser * adds DocC preview build directory ignore line
1 parent 7632a9d commit d05f70d

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,6 @@ xcuserdata
2626
/.full-build
2727
/.swiftpm
2828
Package.resolved
29+
30+
# Ignore docc preview build dir
31+
*/.docc-build/

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,30 @@ Documentation
1919

2020
[SwiftBuild.docc](SwiftBuild.docc) contains additional technical documentation.
2121

22+
To view the documentation in browser, run the following command at the root of the project:
23+
```bash
24+
docc preview SwiftBuild.docc
25+
```
26+
27+
in MacOS, use:
28+
```bash
29+
xcrun docc preview SwiftBuild.docc
30+
```
31+
2232
Testing
2333
-------------
2434
Before submitting the pull request, please make sure you have tested your changes. You can run the full test suite by running `swift test` from the root of the repository. The test suite is organized into a number of different test targets, with each corresponding to a specific component. For example, `SWBTaskConstructionTests` contains tests for the `SWBTaskConstruction` module which plan builds and then inspect the resulting build graph. Many tests in Swift Build operate on test project model objects which emulate those constructed by a higher level client and validate behavior at different layers. You can learn more about how these tests are written and organized in [Project Tests](SwiftBuild.docc/Development/test-development-project-tests.md).
2535

26-
36+
2737
Contributing to Swift Build
2838
------------
2939

3040
Contributions to Swift Build are welcomed and encouraged! Please see the
3141
[Contributing to Swift guide](https://swift.org/contributing/).
3242

3343
Before submitting the pull request, please make sure that they follow the Swift project [guidelines for contributing
34-
code](https://swift.org/contributing/#contributing-code). Bug reports should be
35-
filed in [the issue tracker](https://github.com/swiftlang/swift-build/issues) of
44+
code](https://swift.org/contributing/#contributing-code). Bug reports should be
45+
filed in [the issue tracker](https://github.com/swiftlang/swift-build/issues) of
3646
`swift-build` repository on GitHub.
3747

3848
To be a truly great community, [Swift.org](https://swift.org/) needs to welcome

0 commit comments

Comments
 (0)