-
Notifications
You must be signed in to change notification settings - Fork 130
More flexible theme customization #109
Comments
Sorry for the delay in response here, the themes repo is always the last thing I look at & is thus the most likely to be missed over a weekend or two... Switching to a modules - whether this is Webpack, or some other tool I don't much care... I like this a lot. I do have questions about how much of the current JS is necessary.
Exposing unbundled TS - The dynamic JS functionality is small enough that I already question how useful using TypeScript for it is... I worry about exposing the unbuilt files since it makes nearly any refactoring a breaking change. Exposing a build function is dangerous. We either need to detect whether we need to rebuild due to outside changes (tricky...) or rebuild every time (very slow...) A dark theme is something I've wanted for a while.... and I've started taking steps to support it natively. The first step of this was switching all colors from using color names/numbers to css variables. This isn't near done yet unfortunately... but some steps have been made. https://github.com/TypeStrong/typedoc/blob/library-mode/static/style.css#L6-L16 |
Thank you for answer. I see what you think about TS, but Typedoc is tool for TS documentation. In my opinionion, TS using is very symbolic and principal question for this library. I very like typescript and I believe that it does not add many overhead for development. But I can't say the same about SASS. I think modern CSS can solve all tasks for this library and I am happy that you will use CSS variables for colors. But it may not solve my problem. It is not problem for me to write some code in SASS, my problem in that I have to write over 300 lines of code, and every time when I wate to update Typedoc I need to suppors this huge file. To be honest, I have not understand your point about "tricky or very slow" build. May be I am wrong, but now there is not any mechanism like watch-mode, that detects changed theme files automatically and re-builds output. So every time when I need to rebuild theme I just need start cli-command, that rebuild all Handlebars templates every time. I think that if CSS and JS built every time too it would not take much more time. Anyway, if I find time, I will prepare pull request with ES6 imports instead namespaces. I will try to setup build output without breacking changes (the same files in same folders). Other steps are optional and they can be discaussed again. |
I have sent PR with desribed changes, see #112 |
Main problem
I am a developer of reselect-utils. I use typedoc for docs generation. My project is written on Typesript, but I wanted to provide dark theme for my documentation and now half of my codebase is a huge CSS file. I have a some plan to improve it.
Road map
So, what do you think about that? Will it be useful and helpful?
The text was updated successfully, but these errors were encountered: