Skip to content

Commit cd5d200

Browse files
committed
Add a build script for publication and use a plain DocC bundle (#94)
Adds a separate script that generates a version of the book suitable for publishing on swift.org (with the non-staging header). This conditionalizes which header.html is used. This PR also moves away from using the package plugin to generate the book and instead uses plain DocC commands. This simplifies the file structure of the repo. GitHub encountered conflicts that it couldn't resolve in the following files, but which the Git "ort" merge strategy was able to resolve automatically: TSPL.docc/LanguageGuide/StringsAndCharacters.md TSPL.docc/RevisionHistory/RevisionHistory.md
2 parents d5edd36 + e31d520 commit cd5d200

File tree

181 files changed

+86
-45
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+86
-45
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.DS_Store
2+
.docc-build
23
.swiftpm
34
/.build
45
/Package.resolved
5-
.docc-build
6+
/TSPL.docc/header.html
7+
/swift-book

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion

Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

Package.swift

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion

Sources/TSPL/EmptyFile.swift

Whitespace-only changes.
File renamed without changes.

Sources/TSPL/TSPL.docc/Assets/CollectionTypes_intro~dark@2x.png renamed to TSPL.docc/Assets/CollectionTypes_intro~dark@2x.png

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)