Skip to content

Add row and column directives #378

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 14, 2022

Conversation

ethan-kusters
Copy link
Contributor

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

Summary

Adds support for @Row and @Column in reference documentation pages.

Described on the forums here: https://forums.swift.org/t/supporting-more-dynamic-content-in-swift-docc-reference-documentation/59527#row-9.

Dependencies

Articles currently don’t support having a directive
as the first item of the discussion. This resolves the issue
while maintaining compatibility with Metadata, Comment, and
DeprecationSummary blocks.
@ethan-kusters
Copy link
Contributor Author

@swift-ci please test

@ethan-kusters
Copy link
Contributor Author

@swift-ci please test

@ethan-kusters
Copy link
Contributor Author

@swift-ci please test

@ethan-kusters ethan-kusters marked this pull request as ready for review September 12, 2022 17:01
Copy link
Contributor

@franklinsch franklinsch left a comment

Choose a reason for hiding this comment

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

Looks great! Just a few suggestions

@@ -60,6 +60,8 @@ public enum RenderBlockContent: Equatable {
case termList(TermList)
/// A table that contains a list of row data.
case table(Table)

case row(Row)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we're missing docs here, same for the public APIs below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Addressed here: d0c2e31.

@ethan-kusters
Copy link
Contributor Author

@swift-ci please test

@ethan-kusters ethan-kusters merged commit 1c4b479 into swiftlang:main Sep 14, 2022
@ethan-kusters ethan-kusters deleted the row-and-column branch September 14, 2022 13:23
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