Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a build script for publication and use a plain DocC bundle #94

Merged
merged 11 commits into from
Feb 1, 2023

Conversation

krilnon
Copy link
Contributor

@krilnon krilnon commented Jan 24, 2023

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.

@krilnon
Copy link
Contributor Author

krilnon commented Jan 25, 2023

We'll need to change the swift-ci config after this change:

swift package plugin generate-documentation --target TSPL --transform-for-static-hosting

…to:

docc convert --experimental-enable-custom-templates --hosting-base-path swift-book --output-path "./swift-book" TSPL.docc

@amartini51 amartini51 merged commit cd5d200 into main Feb 1, 2023
@amartini51 amartini51 deleted the krilnon/conditional-header branch February 1, 2023 22:09
amartini51 added a commit to amartini51/swift-book that referenced this pull request May 8, 2024
This got overlooked in PR swiftlang#94 (commit 16750eb).

References: 16750eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants