Skip to content

Generator::getTitle(): fall back to file name if title is missing #820

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 1 commit into from
Feb 15, 2025

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Feb 14, 2025

Description

When the documentation title attribute is missing, a title would still be included in the docs, but not contain any (useful) information.

8-missing-title-html
8-missing-title-markdown
8-missing-title-text

Fixed now by falling back to the XML document file name and splitting the name into words.

Includes tests.

Suggested changelog entry

Generators: gracefully handle missing title attribute

Related issues/external references

This PR is part of a series of PRs which will add a complete set of tests (and improvements) for the Generator feature.

Also see: #671 and other PR with the Core Component: Generators label.

Types of changes

  • New feature (non-breaking change which adds functionality)

Sorry, something went wrong.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
When the documentation `title` attribute is missing, a title would still be included in the docs, but not contain any (useful) information.

Fixed now by falling back to the XML document file name and splitting the name into words.

Includes tests.
@jrfnl jrfnl merged commit 580a36c into master Feb 15, 2025
59 checks passed
@jrfnl jrfnl deleted the feature/generators-fall-back-to-filename branch February 15, 2025 22:07
@jrfnl
Copy link
Member Author

jrfnl commented Feb 15, 2025

Thanks for reviewing @fredden !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants