Skip to content

Docs reimagining#821

Draft
ktoso wants to merge 3 commits into
mainfrom
wip-docs-docc-revamp
Draft

Docs reimagining#821
ktoso wants to merge 3 commits into
mainfrom
wip-docs-docc-revamp

Conversation

@ktoso

@ktoso ktoso commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

This does a few things:

  • we change the organization of docs to be about features and tools
  • we use code snippets form tests to showcase each feature
  • we automate the generation of swift-java.config docs and validate it upon CI runs.

This does a few hacks since docc doesn't allow linking snippets from "other places" and they must be in Snippets/ but we do not want them there, we want them to be validated with tests in normal sample apps like today. So This does a symlinking trick to keep them accessible to docc, but keep them in the right places. This breaks syntax highlighting on them... I'm looking for solutions to this.

This also uses the fact that we now support non-Swift snippets, which I've contributed over here: swiftlang/swift-docc-plugin#120

We'll need to work more with docc to meet our requirements here, but this is already a huge improvement.

I'll be going over all the examples to make sure they all make sense and are complete etc.


The docs are MUCH improved with this and this is how it looks like:

Screenshot 2026-07-09 at 11 03 13 Screenshot 2026-07-09 at 11 03 35 Screenshot 2026-07-09 at 11 01 46

@ktoso ktoso force-pushed the wip-docs-docc-revamp branch from 0990bf8 to 0ec643d Compare July 11, 2026 01:07
@ktoso ktoso force-pushed the wip-docs-docc-revamp branch from 0ec643d to 89dfa97 Compare July 11, 2026 02:38
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.

1 participant