DiFuks / typedoc-theme-hierarchy

Hierarchy theme for typedoc
MIT License
18 stars 5 forks source link

Updates to support TypeDoc 0.25.x #28

Closed Gerrit0 closed 1 year ago

Gerrit0 commented 1 year ago

I went to recommend this to someone, and noticed it didn't show up in TypeDoc's themes page as having support for 0.25.x. This is because TypeDoc's site filters out plugins/themes which make unreasonable claims about supporting versions to try to avoid recommending broken packages.

This also removes the context cache from the theme. Now that the context includes the current page, it isn't safe to reuse the same context for each page (unless you overwrite the page member on that object) since pieces of TypeDoc assume that the page exists. Currently, this didn't really matter since the only part of TypeDoc that uses it is the piece that builds the "On this page" navigation section, but if you decide to implement #27, this becomes an important change.

DiFuks commented 1 year ago

Thanks!