Skip to content

Commit dd48bd2

Browse files
authored
Merge pull request Phlow#102 from nerk/gh-pages
Support for AsciiDoc
2 parents a464ae5 + 7efca61 commit dd48bd2

File tree

7 files changed

+1303
-27
lines changed

7 files changed

+1303
-27
lines changed

Gemfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
source 'https://rubygems.org'
22

33
gem 'jekyll', '3.0.2'
4-
gem 'jekyll-gist'
5-
gem 'jekyll-paginate'
4+
5+
group :jekyll_plugins do
6+
gem 'jekyll-gist'
7+
gem 'jekyll-paginate'
8+
gem "jekyll-asciidoc"
9+
end
10+
11+
gem 'asciidoctor', '~> 1.5.4'
12+
gem 'coderay', '1.1.1'
13+

Gemfile.lock

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.3.8)
4+
addressable (2.4.0)
5+
asciidoctor (1.5.4)
6+
coderay (1.1.1)
57
colorator (0.1)
68
faraday (0.9.2)
79
multipart-post (>= 1.2, < 3)
8-
ffi (1.9.10)
10+
ffi (1.9.14-x64-mingw32)
911
jekyll (3.0.2)
1012
colorator (~> 0.1)
1113
jekyll-sass-converter (~> 1.0)
@@ -15,39 +17,45 @@ GEM
1517
mercenary (~> 0.3.3)
1618
rouge (~> 1.7)
1719
safe_yaml (~> 1.0)
20+
jekyll-asciidoc (2.0.1)
21+
asciidoctor (>= 1.5.0)
22+
jekyll (>= 2.3.0)
1823
jekyll-gist (1.4.0)
1924
octokit (~> 4.2)
2025
jekyll-paginate (1.1.0)
2126
jekyll-sass-converter (1.4.0)
2227
sass (~> 3.4)
23-
jekyll-watch (1.3.1)
24-
listen (~> 3.0)
25-
kramdown (1.9.0)
28+
jekyll-watch (1.5.0)
29+
listen (~> 3.0, < 3.1)
30+
kramdown (1.11.1)
2631
liquid (3.0.6)
27-
listen (3.0.5)
28-
rb-fsevent (>= 0.9.3)
29-
rb-inotify (>= 0.9)
30-
mercenary (0.3.5)
32+
listen (3.0.8)
33+
rb-fsevent (~> 0.9, >= 0.9.4)
34+
rb-inotify (~> 0.9, >= 0.9.7)
35+
mercenary (0.3.6)
3136
multipart-post (2.0.0)
32-
octokit (4.2.0)
33-
sawyer (~> 0.6.0, >= 0.5.3)
37+
octokit (4.3.0)
38+
sawyer (~> 0.7.0, >= 0.5.3)
3439
rb-fsevent (0.9.7)
3540
rb-inotify (0.9.7)
3641
ffi (>= 0.5.0)
37-
rouge (1.10.1)
42+
rouge (1.11.1)
3843
safe_yaml (1.0.4)
39-
sass (3.4.21)
40-
sawyer (0.6.0)
41-
addressable (~> 2.3.5)
44+
sass (3.4.22)
45+
sawyer (0.7.0)
46+
addressable (>= 2.3.5, < 2.5)
4247
faraday (~> 0.8, < 0.10)
4348

4449
PLATFORMS
45-
ruby
50+
x64-mingw32
4651

4752
DEPENDENCIES
53+
asciidoctor (~> 1.5.4)
54+
coderay (= 1.1.1)
4855
jekyll (= 3.0.2)
56+
jekyll-asciidoc
4957
jekyll-gist
5058
jekyll-paginate
5159

5260
BUNDLED WITH
53-
1.10.6
61+
1.12.5

_config.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ urlimg: 'https://phlow.github.io/feeling-responsive/images/'
4444
# Logo size is 600x80 pixels
4545
logo: "logo.png"
4646

47+
# Gems
48+
gems:
49+
- jekyll-asciidoc
50+
- jekyll-gist
51+
- jekyll-paginate
52+
4753

4854
# ____ _ __ _
4955
# / __ \____ _____ _(_)___ ____ _/ /_(_)___ ____
@@ -52,15 +58,10 @@ logo: "logo.png"
5258
# /_/ \__,_/\__, /_/_/ /_/\__,_/\__/_/\____/_/ /_/
5359
# /____/
5460
#
55-
gems:
56-
- jekyll-gist
57-
- jekyll-paginate
5861
paginate: 5 # Paginates all X entries
5962
paginate_path: "blog/page:num" # Pagination path › Important for blog page in /blog/ to work
6063

6164

62-
63-
6465
# Theme works best with Kramdown (using the table of contents function)
6566
markdown: kramdown
6667
permalink: /:categories/:title/
@@ -245,3 +246,22 @@ google_analytics_tracking_id: UA-60112281-1
245246
# used in _includes/footer_scripts
246247

247248
# tawkto_embed_uri:
249+
250+
251+
# ___ _ __ __
252+
# / | __________(_)___/ /___ _____/ /_____ _____
253+
# / /| | / ___/ ___/ / __ / __ \/ ___/ __/ __ \/ ___/
254+
# / ___ |(__ ) /__/ / /_/ / /_/ / /__/ /_/ /_/ / /
255+
# /_/ |_/____/\___/_/\__,_/\____/\___/\__/\____/_/
256+
#
257+
# https://github.com/asciidoctor/jekyll-asciidoc
258+
# https://github.com/asciidoctor
259+
#
260+
261+
asciidoctor:
262+
attributes:
263+
source-highlighter: coderay
264+
coderay-css: style
265+
icons: font
266+
267+

_includes/_head.html

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@
2121
{% endcapture %}<meta charset="utf-8">
2222
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2323
<title>{{ title }}</title>
24-
<link rel="stylesheet" type="text/css" href="{{ url }}/assets/css/styles_feeling_responsive.css">
25-
<script src="{{ url }}/assets/js/modernizr.min.js"></script>
24+
25+
{% if site.asciidoctor %}
26+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.0/css/font-awesome.min.css">
27+
<link rel="stylesheet" type="text/css" href="{{ url }}/assets/css/styles_feeling_responsive_asciidoc.css">
28+
{% else %}
29+
<link rel="stylesheet" type="text/css" href="{{ url }}/assets/css/styles_feeling_responsive.css">
30+
{% endif %}
31+
32+
<script src="{{ url }}/assets/js/modernizr.min.js"></script>
2633

2734
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js"></script>
2835
<script>

0 commit comments

Comments
 (0)