5
9 Comments

CSS help needed to improve documentation

https://github.com/sirixdb/sirixdb.github.io/blob/master/css/style.css

Hi all,

I'm sadly no front-end developer or web designer, thus some help would be super great :-)

Do you know how I can add line numbers for the code examples in [1]? Maybe a small link to copy the example to the clipboard would also be great.

The main stylesheet is this:

https://github.com/sirixdb/sirixdb.github.io/blob/master/css/style.css

Have a great weekend
Johannes

[1] https://sirix.io/transactional-cursor-api.html

submitted this linkon September 1, 2019
    1. 1

      I've tried with a rouge setting, but it messed up some stuff with my CSS file.

      https://github.com/jekyll/jekyll/issues/4619

      For instance I couldn't clear the margin on the added HTML table-elements.

      1. 1

        I am asking because Mike Harmer is building these themes @mikeh https://www.indiehackers.com/mikeh?id=fWFTY5G6BKcrffPpiVYCDhtOecu2

        It might help you quicker, he might have gone thru this before?

        1. 2

          Ah yes, sorry for not mentioning. Maybe I can add the setting again. I'm sure it all boils down to the right CSS properties then.

          1. 1

            I think I had to add my own CSS to handle line numbers with Rouge (Jekyll's syntax highlighter) last time I did it – there's some options you can set in the config.yml file too!

      2. 1

        are you using Jekyll themes?