File tree Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Expand file tree Collapse file tree 2 files changed +3
-25
lines changed Original file line number Diff line number Diff line change 9
9
# See https://swift.org/CONTRIBUTORS.txt for Swift project authors
10
10
11
11
# Prepares a version of the book suitable for publication on swift.org.
12
- #
13
- # To use top-of-tree DocC, clone the following repositories:
14
- #
15
- # https://github.com/apple/swift-docc
16
- # https://github.com/apple/swift-docc-render
17
- #
18
- # Then set environment variables to paths in their working directories,
19
- # like the following, before running this script:
20
- #
21
- # PATH=~/git/DocC/.build/arm64-apple-macosx/debug:$PATH
22
- # DOCC_HTML_DIR=~/git/DocC-Renderer/dist/
23
12
24
13
set -eux
25
14
@@ -36,7 +25,7 @@ cd "$(git rev-parse --show-toplevel)"
36
25
# The published version of the book gets the swift.org header.
37
26
cp -n TSPL.docc/header-publish.html TSPL.docc/header.html
38
27
39
- docc convert \
28
+ xcrun docc convert \
40
29
--experimental-enable-custom-templates \
41
30
--hosting-base-path swift-book \
42
31
--output-path " $output " \
Original file line number Diff line number Diff line change 14
14
# This script should be run by someone with commit access to the 'gh-pages' branch
15
15
# at a regular frequency so that the documentation content on the GitHub Pages site
16
16
# is up-to-date with the content in this repo.
17
- #
18
- # To use top-of-tree DocC, clone the following repositories:
19
- #
20
- # https://github.com/apple/swift-docc
21
- # https://github.com/apple/swift-docc-render
22
- #
23
- # Then set environment variables to paths in their working directories,
24
- # like the following, before running this script:
25
- #
26
- # PATH=~/git/DocC/.build/arm64-apple-macosx/debug:$PATH
27
- # DOCC_HTML_DIR=~/git/DocC-Renderer/dist/
28
17
29
- set -eu
18
+ set -eux
30
19
31
20
REMOTE=${1:- origin}
32
21
CURRENT_COMMIT_HASH=" $( git rev-parse --short HEAD) "
@@ -46,7 +35,7 @@ export DOCC_JSON_PRETTYPRINT="YES"
46
35
cp -n TSPL.docc/header-staging.html TSPL.docc/header.html
47
36
48
37
# Build documentation, writing output in the gh-pages/docs subdirectory.
49
- docc convert \
38
+ xcrun docc convert \
50
39
--experimental-enable-custom-templates \
51
40
--hosting-base-path swift-book \
52
41
--output-path " ./gh-pages/docs" \
You can’t perform that action at this time.
0 commit comments