From d4fef8adbc9c2bc31c26129cb8128abd5e072e2b Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Wed, 30 Nov 2016 00:28:48 -0500 Subject: [PATCH] Added syntax highlighting. --- Gemfile.lock | 10 +++++----- source/layout.html.haml | 1 + source/stylesheets/highlight.css.erb | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 source/stylesheets/highlight.css.erb diff --git a/Gemfile.lock b/Gemfile.lock index cca6d8b..bd892bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -40,17 +40,17 @@ GEM rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) memoist (0.15.0) - middleman (4.1.12) + middleman (4.1.13) coffee-script (~> 2.2) compass-import-once (= 1.0.5) haml (>= 4.0.5) kramdown (~> 1.2) - middleman-cli (= 4.1.12) - middleman-core (= 4.1.12) + middleman-cli (= 4.1.13) + middleman-core (= 4.1.13) sass (>= 3.4.0, < 4.0) - middleman-cli (4.1.12) + middleman-cli (4.1.13) thor (>= 0.17.0, < 2.0) - middleman-core (4.1.12) + middleman-core (4.1.13) activesupport (>= 4.2, < 5.1) addressable (~> 2.3) backports (~> 3.6) diff --git a/source/layout.html.haml b/source/layout.html.haml index ee9ae07..104717f 100644 --- a/source/layout.html.haml +++ b/source/layout.html.haml @@ -17,6 +17,7 @@ %meta{:content => "#EE6E73", :name => "theme-color"} / CSS %link{:href => "/stylesheets/prism.css", :rel => "stylesheet"} + %link{:href => "/stylesheets/highlight.css", :media => "screen,projection", :rel => "stylesheet", :type => "text/css"} %link{:href => "/stylesheets/style.css", :media => "screen,projection", :rel => "stylesheet", :type => "text/css"} %link{:href => "http://fonts.googleapis.com/css?family=Inconsolata", :rel => "stylesheet", :type => "text/css"} %link{:href => "http://fonts.googleapis.com/icon?family=Material+Icons", :rel => "stylesheet"} diff --git a/source/stylesheets/highlight.css.erb b/source/stylesheets/highlight.css.erb new file mode 100644 index 0000000..a2f0ff5 --- /dev/null +++ b/source/stylesheets/highlight.css.erb @@ -0,0 +1 @@ +<%= Rouge::Themes::ThankfulEyes.render(:scope => '.highlight') %> \ No newline at end of file -- GitLab