Skip to content

Commit

Permalink
Add Pygments code highlighting plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Apr 11, 2019
1 parent 40b5500 commit bbf9250
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ python: 3.6
cache:
directories:
- $HOME/.cache/pip
install: "pip install Lektor"
install:
- pip install Lektor
- lektor plugins add markdown-higlighter
script: "lektor build"
deploy:
provider: script
Expand Down
2 changes: 2 additions & 0 deletions configs/markdown-highlighter.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pygments]
style = colorful
3 changes: 3 additions & 0 deletions qslabs_site.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ name = Quansight Labs blog

[servers.ghpages]
target = ghpages+https://Quansight-Labs/quansight-labs-site?cname=labs.quansight.org

[packages]
lektor-markdown-highlighter = 0.3.1
1 change: 1 addition & 0 deletions templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<title>Quansight Labs Blog</title>

<link rel="stylesheet" href="{{ '/static/css/bootstrap.min.css'|url }}">
<link rel="stylesheet" href="{{ get_pygments_stylesheet()|url }}">

<!-- Custom CSS -->
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
Expand Down

0 comments on commit bbf9250

Please sign in to comment.