-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- automatically generate stylesheet for Pygments - add pygments.rb as a development dependency - add test to verify integration with Pygments - document integration with Pygments - disable feature when using JRuby
- Loading branch information
1 parent
13d7eef
commit ed16ee6
Showing
7 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
gems: | ||
- jekyll-asciidoc | ||
asciidoctor: | ||
attributes: | ||
- stylesdir=/css | ||
- source-highlighter=pygments@ |
13 changes: 13 additions & 0 deletions
13
spec/fixtures/pygments_code_highlighting/_layouts/page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>{{ page.title }}</title> | ||
<link rel="stylesheet" href="{{ "/css/asciidoc-pygments.css" | prepend: site.baseurl }}"> | ||
</head> | ||
<body> | ||
<div class="page-content"> | ||
{{ content }} | ||
</div> | ||
</body> | ||
</html> |
16 changes: 16 additions & 0 deletions
16
spec/fixtures/pygments_code_highlighting/page-with-code.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
= Code | ||
|
||
```ruby | ||
class NilClass | ||
alias :nil_or_empty? :nil? | ||
end | ||
|
||
class String | ||
def nil_or_empty? | ||
alias :nil_or_empty? :empty? | ||
end | ||
end | ||
|
||
v = nil | ||
puts v.nil_or_empty? | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters