steveire / grantlee

Libraries for text templating with Qt
Other
141 stars 48 forks source link

Make code in docs pretty again #37 #43

Closed pcolby closed 5 years ago

pcolby commented 6 years ago

The custom HTML stylesheet, which was generated for Doxygen 1.5.6 (a version just short of 10 years old now) is missing a lot of styles needed for modern versions of Doxygen.

Since Doxygen 1.8.2, there is now a HTML_EXTRA_STYLESHEET option that allows custom HTML stylesheets to be used in addition to Doxygen's own default doxygen.css sheet.

This change simply moves Grantlee's custom HTML stylesheet from the HTML_STYLESHEET option to the HTML_EXTRA_STYLESHEET option instead, resulting in a better render for modern versions of Doxygen (such as properly formatted code blocks), as well as increasing resilience to future changes from the Doxygen project.

pcolby commented 6 years ago

Fixes https://github.com/steveire/grantlee/issues/37

steveire commented 5 years ago

Cherry-picked to master, thanks!