-
Notifications
You must be signed in to change notification settings - Fork 709
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
Suggestion: Custom footer string #2559
Comments
Sure, seems like an easy customization to allow |
Hello @Gerrit0. I would like to work on this issue. |
Go for it! |
There's already a plugin for this: https://typedoc-extra-footer.8hob.io/ |
Please don't avoid adding any features because there is a plugin. Plugins don't work with all versions of Typedoc |
I don't oppose adding this feature to typedoc. Although architecture-wise I think typedoc should leave these kinds of specialized theme customization options to plugins, even as builtin ones. This is because this feature can be implemented seamlessly with only the hooks exposed to plugins, and doing so can avoid bloating the host system. (I'm happy to adapt the plugin above to a typedoc's builtin plugin, if you think desire.) As the author of the plugin, with bias, I think the behavior defined in the plugin above is better designed (so I recommend a similar design in the implementation). Specifically,
What do you think? I kinda dislike the situation in which the plugin offers a minor advantage when the host system already offers the core features, so I'm striving to improve the situation so that I can abolish the plugin altogether. 😂 |
I am more interested in adding markdown pages to the documentation. As of now, I just employed a quick hack - https://react18-tools.github.io/react18-global-store/ But, I believe that this is a very important part of documentation and should be supported by the library. |
In general, I agree with @xuhdev, the more specialized functionality I can push to plugins, the easier to maintain TypeDoc itself stays, which makes it easier to maintain. I also mostly agree with the builtin plugin approach, though unfortunately it is messier than I'd like due to other constraints (options are all declared in one place for TypeDoc so that http://typedoc.org/schema.json can be easily generated, in 0.26 option descriptions are translated, and I'd really like to not spread the translatable strings all over the place to make it easier for translators) That said, having worked places where getting plugins for approved software was a nightmare, I think it's important that it be easy to customize TypeDoc without requiring a plugin for everything. This is why the I don't love making one option's behavior dependent on another option, as is done in typedoc-plugin-extra-footer, but can't argue with the improved user experience regarding adding the @mayank1513 see #2567 |
Included in TypeDoc 0.26, which is releasing 2024/06/21 |
Can you also explain how to use this feature. |
Exactly as proposed in your original post, with the option name |
Search Terms
custom, footer, string, hide, generator
Problem
By using the
--hideGenerator
option, the message "created by TypeDoc" is removed, but the footer is still there. It might be nice to include an option to customize what is written in the footer instead.Suggested Solution
--footer "<span class="...">should support html</span>"
The text was updated successfully, but these errors were encountered: