Skip to content

Support authoring a single anonymous topics section #421

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

Conversation

ethan-kusters
Copy link
Contributor

Bug/issue #, if applicable: rdar://100994549, resolves #404

Summary

The initial implementation of anonymous topics sections didn’t
account for the use-case of a single, anonymous topic section.

The current markup parsing logic expects to find at least one H3 heading
inside a valid topic section. So while the rest of DocC’s navigator
logic was ready to handle this markup, the initial check
for the existence and range of the task group in the markup
failed to return a value for this use case.

Testing

Confirm that the DocC catalog included in #404 renders as expected.

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

The initial implementation of anonymous topics sections didn’t
account for the use-case of a single, anonymous topic section.

The current markup parsing logic expects to find at least one H3 heading
inside a valid topic section. So while the rest of DocC’s navigator
logic was ready to handle this markup, the initial check
for the existence and range of the task group in the markup
failed to return a value for this use case.

Resolves rdar://100994549
DocC supports anonymous topic sections so this error is no
longer needed.
@ethan-kusters ethan-kusters self-assigned this Nov 11, 2022
@ethan-kusters
Copy link
Contributor Author

@swift-ci please test

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 good to me! Sorry about that, I should've caught this in my original fix :/

@ethan-kusters ethan-kusters merged commit b9d9ada into swiftlang:main Nov 11, 2022
@ethan-kusters ethan-kusters deleted the single-anonymous-topic-group branch November 11, 2022 23:12
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.

DocC emits error for topic section missing topic group heading and ignores anonymous curation
2 participants