Skip to content
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

[Feature Request] Support autotitle #129

Closed
JReinhold opened this issue Aug 29, 2023 · 3 comments
Closed

[Feature Request] Support autotitle #129

JReinhold opened this issue Aug 29, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@JReinhold
Copy link
Collaborator

JReinhold commented Aug 29, 2023

Storybook has a feature called autotitle, that sets the title of the component (meta) based on the file path, if no title is explicitly set. It would be nice if this addon supported that feature.

Implementation

The indexer gets passed a makeTitle function in the indexer options (second parameter) to the indexer function. That function can be used to generate this title automatically, also taking into account any user title specified.

Additional context

Implementing this with makeTitle would probably also solve the bug at #130 at the same time.

@benmccann
Copy link
Contributor

#101 sounds potentially related as well

@j3rem1e
Copy link
Contributor

j3rem1e commented Aug 31, 2023

This API didn't exist when I have implemented the indexer. I can have a look at it.

@j3rem1e
Copy link
Contributor

j3rem1e commented Sep 1, 2023

I have fixed autotitle here: #134

@j3rem1e j3rem1e mentioned this issue Sep 2, 2023
@j3rem1e j3rem1e closed this as completed Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants