TheYuriG / deno-portfolio

This is the repository that later gets rendered as my personal website.
https://www.theyurig.com
3 stars 1 forks source link

Technical Debt tracker #27

Open TheYuriG opened 1 year ago

TheYuriG commented 1 year ago

Listing here things I couldn't figure out and I'm open for external contributions to solve. Just like National Debt, this will persist until the end of time, all that can be done is to reduce the overall debt.

TheYuriG commented 1 year ago
  • [ ] No markdown parser: Not using .md files to save/read blog posts.

There is the markdown parser, but that just converts to a HTML page on disk, but I want it on memory so I can use syntax highlight over it.

  • [ ] Syntax highlight: Only option I could find with Deno was to use speed-highlight which is awfully documented.

It seems like the blog will do this, but I haven't found a way to decouple it from serving the blog. I just want the highlight, not the rest.

TheYuriG commented 1 year ago

Too much useless CSS is shipped. [...] The Academind mentions that we can use .module.css files in React [...].

This SO post seems to indicate that is possible to do it in Preact as well.

TheYuriG commented 1 year ago

Too much useless CSS is shipped. I need to figure out a way to ship only the required CSS that each component needs.

While working out at the gym today, I realized that I've self-inflicted this issue by not using twind which is built into Fresh by default. That would already manage all the classes for me, only ship the required CSS, and allow me to need no .css files in /static.

Guess a refactor is inbound soon...

TheYuriG commented 1 year ago

Too much useless CSS is shipped. [...] The Academind mentions that we can use .module.css files in React [...].

This SO post seems to indicate that is possible to do it in Preact as well. [...] While working out at the gym today, I realized that I've self-inflicted this issue by not using twind which is built into Fresh by default. That would already manage all the classes for me, only ship the required CSS, and allow me to need no .css files in /static.

Guess a refactor is inbound soon...

Completed with #53.

TheYuriG commented 1 year ago
  • [ ] Syntax highlight: Only option I could find with Deno was to use speed-highlight which is awfully documented.

It seems like the blog will do this, but I haven't found a way to decouple it from serving the blog. I just want the highlight, not the rest.

Completed with the tool I've created in #66.

TheYuriG commented 1 year ago
  • [x] No markdown parser to JSX: Not using .md files to save/read blog posts. Posts are manually created as .ts files instead, then dynamically imported as needed. Affected file(s): /routes/[blog]/[post].tsx. Affects users? NO.

No longer necessary as my current JSX implementation is far superior to what a simple markdown parser would be able to achieve, then I would inflict myself with additional pain to figure out how to create (Gradient|Dotted)Link elements out of the markdown.