Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 823 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 823 Bytes

MkDocs Codehilite Themes

A collection of Pygment css themes compatible with the codehilite extension used by MkDocs.

Usage

Move the css directory into your MkDocs "docs" dir. Make sure the following is in your mkdocs.yml file:

extra_css:
  - css/<theme-file-name>.css
markdown_extensions:
  - codehilite

extra.css

The extra.css file adds a little bit of padding to the codehilite display box, and is completely optional.

To use it, add it to your css directory, and in the mkdocs.yml "extra_css" section:

extra_css:
  - css/extra.css
  - css/<theme-file-name>.css

Source

The css files originated from https://github.com/richleland/pygments-css and were slightly altered to work with MkDocs.