typedoc-default-themes
typedoc-default-themes copied to clipboard
Convert templates from .hbs to .tsx
I was nerd-sniped by our discussion on Discord, so I tried to automatically convert the .hbs into .tsx This is as far as I got. convert.ts attempts to use a third-party library to do the conversion. It complains about some stuff that I've been manually find-and-replacing.
TODO
- [ ] converge
itemandpropsvariables. Using both was a hack because the hbs to jsx converter usesitemfor#eachiteration butpropsfor the top-level props object. - [ ] assign a type to the input of each component; right now it is implicit any
- [ ] switch to preact? it's what Gerrit0 was using in library-mode branch
- [ ] write a
Themeinterface; import and consolidate all functions into a singleThemeinstance - [x] fix
IfCondinvocations to pass a boolean wrapped in{}- [ ] Ideally remove
IfCondentirely, but would be annoying for an MVP
- [ ] Ideally remove
- [x] implement
IfSignature - [x] implement
Markdown - [ ] implement
Collapse: what even is this? - [ ] fix the inline
classNameconditionals that I hacked away to please the converter