opentitan icon indicating copy to clipboard operation
opentitan copied to clipboard

Use CSS for code highlighting

Open mdhayter opened this issue 8 years ago • 7 comments

The code highlighting turns off insertion of CSS and directly injects styles. Investigate using CSS instead.

mdhayter avatar Nov 06 '18 22:11 mdhayter

This includes inserting a CSS class for the "good" and "bad" code directives https://github.com/lowRISC/stwg-base/pull/19#pullrequestreview-172144019

[Just noting for my own reference, as that part of the issue wasn't obvious to me from the description].

asb avatar Nov 07 '18 10:11 asb

Good/bad is done, is this closeable, or do we want our other CSS requests to be here? We'll have a whole doc-pretty-up pass eventually.

sjgitty avatar Jan 08 '19 01:01 sjgitty

The code highlighter seems to be working ok. At the moment I have not seen any reason to need CSS to override its formatting. Limiting the amount of CSS we need to maintain seems like an advantage.

Revisit this when we understand if the site builder needs to modify the highlighted code with its site CSS.

mdhayter avatar Jan 08 '19 09:01 mdhayter

Hoping for a refresher on this bug. I agree we want to avoid heavy CSS. But we also had a long ago aspirational goal of getting a professional in to help spiff up our documentation style. @domrizz0 what is the thinking on that at this point?

sjgitty avatar Apr 12 '19 02:04 sjgitty

We bring in an external firm and do a light re-design at some point. I think ~July is the right timeframe.

On Apr 11, 2019, at 19:01, Scott Johnson [email protected] wrote:

Hoping for a refresher on this bug. I agree we want to avoid heavy CSS. But we also had a long ago aspirational goal of getting a professional in to help spiff up our documentation style. @domrizz0 what is the thinking on that at this point?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

domrizz0 avatar Apr 12 '19 04:04 domrizz0

@domrizz0 @mdhayter can this issue be closed? Thanks.

aytong avatar Oct 30 '19 23:10 aytong

Let's close this - with hugo we're using chroma, which is generating inline styles, but it's easy to use a custom style. Plus we're not using the custom good and bad styles.

We could set it to generate CSS, but don't have a particular motivation to do so right now.

asb avatar Nov 01 '19 10:11 asb