You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
I don't know much about Handlebars or the TypeDoc build process, but how hard would it be to turn the docs into an SPA? I ask mainly because I've added a dark theme toggle that uses the FilterItem class along with a bunch of CSS variables. The problem is that it flashes white every time you navigate, which is highly unfortunate. I'm pretty sure it's because it has to read from localStorage then set the CSS vars and propagate those down the tree. If it was an SPA, it would only need to read once, which I hope would prevent the flash.
I think the main issue would be doing the routing. I imagine we'd make a new partial called content and switch that out on navigation (probably have to split out .tsd-page-title from header), but the routes would have to be created during the TypeDoc build.
The text was updated successfully, but these errors were encountered:
It shouldn't be too difficult to create a custom theme that is a SPA, but the architecture just isn't there for doing it with the current default/minimal theme setup... the content partial sounds reasonable to me. I'd like to not break existing links to docs though, which could be difficult.
So with the current routes, it exists like base/?[class|enum|interface|module]/[:slug].html#hash. Something like that. Here's how I think the routing would have to work (I'm basing it off this article).
Emit HTML partials instead of whole files; only one fully qualified HTML file is produced
I don't know much about Handlebars or the TypeDoc build process, but how hard would it be to turn the docs into an SPA? I ask mainly because I've added a dark theme toggle that uses the
FilterItem
class along with a bunch of CSS variables. The problem is that it flashes white every time you navigate, which is highly unfortunate. I'm pretty sure it's because it has to read fromlocalStorage
then set the CSS vars and propagate those down the tree. If it was an SPA, it would only need to read once, which I hope would prevent the flash.I think the main issue would be doing the routing. I imagine we'd make a new partial called
content
and switch that out on navigation (probably have to split out.tsd-page-title
fromheader
), but the routes would have to be created during the TypeDoc build.The text was updated successfully, but these errors were encountered: