Skip to content

adding options to generate markdown into the combined docs#105

Merged
heckj merged 1 commit into
swiftlang:mainfrom
heckj:markdown-included
Jul 16, 2026
Merged

adding options to generate markdown into the combined docs#105
heckj merged 1 commit into
swiftlang:mainfrom
heckj:markdown-included

Conversation

@heckj

@heckj heckj commented Jul 14, 2026

Copy link
Copy Markdown
Member

Summary

Adds docc build options (experimental in 6.3) to add markdown generation into the DocC archives.

This would have included HTML as well, but in practice I found the processing we do for the combined docs (invoking docc process-archive) has an unfortunate side effect of stripping out the additional HTML expansions that can be added in the experimental static content with extras stuff (see swiftlang/swift-docc#1588)

Also note that this does not get us to LLMS.txt kind of additions for the DocC content here - there's a notable gap between the markdown generation that was enabled within a DocC archive and what that convention proposes. Opened an enhancement request to build onto the manifest that does get generated to get the content more accessible to crawlers and/or agents.

Either honestly would work, so right now I'm going for whatever can work, and putting it in belt and suspenders.

Validation

  • swift package generate-documentation --analyze --warnings-as-errors passes
  • Previewed locally with swift package --disable-sandbox preview-documentation

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@heckj heckj self-assigned this Jul 14, 2026
@heckj
heckj merged commit 9dba33e into swiftlang:main Jul 16, 2026
11 checks passed
@heckj
heckj deleted the markdown-included branch July 16, 2026 17: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.

2 participants