-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustdoc needs a way to specify HTML metadata for standalone docs #16178
Comments
I implemented a frontmatter module for rustdoc not too long ago. So you can specify arbitrary key->value pairs:
Not sure if that's what you're thinking of. |
@thehydroimpulse Yes, that sounds exactly like what I need! |
Cool, I'll extract it out into it's own PR. |
That's sweet, though other frontmatter i've seen usually has |
Oh yeah, there's also one at the top. |
triage: no change |
@thehydroimpulse Could you link the PR from this issue to make it easier to track? |
aww, looks like it got stalled on insufficient time for cleanup. Thanks for the link! |
Triage: no change. |
@rust-lang/rustdoc, are we interested in this feature? |
I can add it. |
Actually we can already add data in headers through |
fix: Fix span marking for builtin fn macros
The HTML meta tags for descriptions and keywords are both important for SEO. For library docs we can generate this information automatically, but not for standalone docs.
I've never seen any such markdown extension, though maybe Jekyll headers can do this. We may need to invent something.
cc #12466.
The text was updated successfully, but these errors were encountered: