Skip to content

Conversation

@d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable: rdar://163326857

Summary

This is another slice of #1366

It adds a helper function to the DocCHTML/MarkdownRenderer to render availability information as HTML.

Dependencies

None.

Testing

Nothing in particular for this PR. It only adds an internal helper function. See #1366 for how it eventually does get used.

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • Added tests
  • Ran the ./bin/test script and it succeeded
  • Updated documentation if necessary

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

}
}

struct MultiValueLinkProvider: LinkProvider {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to double check my understanding - the MultiValueLinkProvider here is a convenience instance really just for this test scenario, as the upstream usage of parsing availability uses another type that conforms to the LinkProvider protocol - Is that correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there's a "real" link provider here that reads from the documentation context.

That 4000+ LOC PR isn't really meant to be reviewed and merged on its own, so I'm breaking it down into smaller pieces that can be merged individually and incrementally. Unfortunately, that means that some early PRs may add test code that's barely used (yet).

@d-ronnqvist d-ronnqvist merged commit 56ba4eb into swiftlang:main Dec 4, 2025
2 checks passed
@d-ronnqvist d-ronnqvist deleted the output-html-availability branch December 4, 2025 18:37
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