Skip to content

Docs reimagining - #821

Merged
ktoso merged 6 commits into
mainfrom
wip-docs-docc-revamp
Aug 5, 2026
Merged

Docs reimagining#821
ktoso merged 6 commits into
mainfrom
wip-docs-docc-revamp

Conversation

@ktoso

@ktoso ktoso commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Disclosure, this is a very large refactoring and AI assistance was used to make the content consistent and add all the snippet markers. I've reviewed this deeply, iterated multiple times and made sure all the prose is human written and/or adjusted, we don't want just plain ai generated docs especially in prose, but automating all the "snippets" finding and adjustment was a huge help from ai tools.

--

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 3 times, most recently from 89dfa97 to 5eeeb78 Compare July 13, 2026 02:32
@ktoso
ktoso force-pushed the wip-docs-docc-revamp branch from 5eeeb78 to 2c2b0bd Compare July 15, 2026 02:51
@ktoso
ktoso force-pushed the wip-docs-docc-revamp branch from 8a1ef3a to 1d87551 Compare August 3, 2026 04:30
@ktoso
ktoso force-pushed the wip-docs-docc-revamp branch from 1d87551 to 758c0ca Compare August 5, 2026 08:20
@ktoso
ktoso marked this pull request as ready for review August 5, 2026 08:20
@ktoso

ktoso commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

I'm sure I left some mistake somewhere still, but this is a huge improvement and I'd like to keep working in this new world of docs for us :-)

@ktoso
ktoso force-pushed the wip-docs-docc-revamp branch from 8e1f32f to 81dcc77 Compare August 5, 2026 08:45
@ktoso
ktoso merged commit 4831d57 into main Aug 5, 2026
42 checks passed
@ktoso
ktoso deleted the wip-docs-docc-revamp branch August 5, 2026 09:48
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