mtmacdonald / docgen

A documentation tool
http://mtmacdonald.github.io/docgen
Other
44 stars 15 forks source link

Modernise icons #93

Closed mtmacdonald closed 8 months ago

mtmacdonald commented 8 months ago

This merge request replaces the old clunky SVG icons from 2011 with modern icon designs.

Before

Here's what the old clunky icons from 2011 looked like:

Screenshot 2024-02-28 at 19 20 07

After

Now we bundle professionally designed, open-source Tabler Icons.

Screenshot 2024-02-28 at 19 21 03

I've updated the docs with some examples:

Screenshot 2024-02-28 at 19 23 52

Implementation: we install Tabler Icons as an NPM package in devDependencies, and use a custom build script to embed it DocGen. We still use the previous implementation of an SVG injector, to make styling the icons with CSS more accessible.