Skip to content

[5.6] Add Static Hosting Support#56

Merged
ethan-kusters merged 3 commits intoswiftlang:release/5.6from
ethan-kusters:static-hosting-support-5.6
Jan 11, 2022
Merged

[5.6] Add Static Hosting Support#56
ethan-kusters merged 3 commits intoswiftlang:release/5.6from
ethan-kusters:static-hosting-support-5.6

Conversation

@ethan-kusters
Copy link
Copy Markdown
Contributor

  • Rationale: Adds support for creating DocC archives that are compatible with static hosting environments like GitHub Pages.
  • Risk: Low.
  • Risk Detail: This is an isolated change that touches very little existing DocC code.
  • Reward: High
  • Reward Details: Enables new hosting scenarios for users of DocC.
  • Original PR: Add Static Hosting Support #44
  • Issue: rdar://70800606
  • Code Reviewed By: Ethan Kusters
  • Testing Details: New tests covering changes have been added. Existing tests continue to pass.

Relevant forums discussion: https://forums.swift.org/t/support-hosting-docc-archives-in-static-hosting-environments/53572.

Resolves rdar://70800606.

Co-authored-by: Ethan Kusters <ekusters@apple.com>
@ethan-kusters ethan-kusters self-assigned this Dec 10, 2021
@ethan-kusters
Copy link
Copy Markdown
Contributor Author

ethan-kusters commented Dec 10, 2021

I've cherry-picked @d-ronnqvist's fix for a test case in the original PR as we should only land these changes together.

@ethan-kusters
Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@ethan-kusters
Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@ethan-kusters ethan-kusters merged commit bdb481d into swiftlang:release/5.6 Jan 11, 2022
@iltercengiz
Copy link
Copy Markdown

@ethan-kusters awesome to see this is merged into release. I've been trying to manually use DocC and renderer to setup our project's documentation to be hosted with GitHub pages but having trouble with the paths (--hosting-base-path to be precise). Any plans for sharing steps to follow if we want to utilize static hosting today?

@mportiz08
Copy link
Copy Markdown
Contributor

mportiz08 commented Jan 25, 2022

@ethan-kusters awesome to see this is merged into release. I've been trying to manually use DocC and renderer to setup our project's documentation to be hosted with GitHub pages but having trouble with the paths (--hosting-base-path to be precise). Any plans for sharing steps to follow if we want to utilize static hosting today?

@iltercengiz You may want to check out the forums post if you haven't already, which has example command line invocations.

@ethan-kusters
Copy link
Copy Markdown
Contributor Author

@ethan-kusters awesome to see this is merged into release. I've been trying to manually use DocC and renderer to setup our project's documentation to be hosted with GitHub pages but having trouble with the paths (--hosting-base-path to be precise). Any plans for sharing steps to follow if we want to utilize static hosting today?

@iltercengiz You may want to check out the forums post if you haven't already, which has example command line invocations.

Hi @iltercengiz! Sorry- I missed this entirely. As @mportiz08 mentioned, the forums post is a good place to start. I'll plan on updating the thread this week with more concrete instructions now that we have an OSS toolchain that includes support for this.

Alternatively, if you're interested, you could consider using the Swift-DocC-Plugin which should simplify things here. Here's the announcement post for the plugin: https://forums.swift.org/t/swift-docc-plugin-for-swiftpm/54725. And here's the specific docs on how to generate GitHub pages compatible documentation: https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/publishing-to-github-pages.

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.

6 participants