Issues

Issue #1167 wontfix

Pygments github style

Anonymous created an issue

Hi, I want to use pygments' github style:

https://github.com/richleland/pygments-css/blob/master/github.css

Is there a way to replace readthedocs' pygments.css to this style?

setting pygments_style = 'github' does not work.

Comments (4)

  1. Takayuki Shimizukawa
    • changed status to open

    You can overwrite pygments.css file OR override css definitions.

    A. Overwrite pygments.css:

    1. Save github.css as: _static/pygments.css
    2. Run make html

    B. Override css:

    1. Save github.css as: _static/github.css
    2. add below code at end of conf.py:

      def setup(app):
          app.add_stylesheet("github.css")
      
    3. Run make html

  2. Log in to comment