jekyll-asciidoc 2.1.1 → 3.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.adoc +26 -0
  3. data/Gemfile +4 -16
  4. data/LICENSE.adoc +1 -1
  5. data/README.adoc +370 -192
  6. data/jekyll-asciidoc.gemspec +23 -11
  7. data/lib/jekyll-asciidoc/compat.rb +5 -9
  8. data/lib/jekyll-asciidoc/converter.rb +89 -69
  9. data/lib/jekyll-asciidoc/filters.rb +2 -3
  10. data/lib/jekyll-asciidoc/integrator.rb +18 -29
  11. data/lib/jekyll-asciidoc/utils.rb +6 -3
  12. data/lib/jekyll-asciidoc/version.rb +1 -1
  13. metadata +48 -220
  14. data/Rakefile +0 -24
  15. data/spec/fixtures/alternate_page_attribute_prefix/_config.yml +0 -4
  16. data/spec/fixtures/alternate_page_attribute_prefix/_layouts/default.html +0 -12
  17. data/spec/fixtures/alternate_page_attribute_prefix/explicit-permalink.adoc +0 -4
  18. data/spec/fixtures/attributes_as_array/_config.yml +0 -7
  19. data/spec/fixtures/attributes_as_hash/_config.yml +0 -7
  20. data/spec/fixtures/basic_site/_config.yml +0 -2
  21. data/spec/fixtures/basic_site/_layouts/custom.html +0 -15
  22. data/spec/fixtures/basic_site/_layouts/page.html +0 -15
  23. data/spec/fixtures/basic_site/auto-layout.adoc +0 -4
  24. data/spec/fixtures/basic_site/bare-header.adoc +0 -4
  25. data/spec/fixtures/basic_site/custom-layout.adoc +0 -4
  26. data/spec/fixtures/basic_site/docid.adoc +0 -4
  27. data/spec/fixtures/basic_site/empty-layout.adoc +0 -4
  28. data/spec/fixtures/basic_site/empty-page-attribute.adoc +0 -4
  29. data/spec/fixtures/basic_site/liquid-enabled.adoc +0 -6
  30. data/spec/fixtures/basic_site/nil-layout.adoc +0 -4
  31. data/spec/fixtures/basic_site/no-doctitle.adoc +0 -2
  32. data/spec/fixtures/basic_site/no-liquid.adoc +0 -3
  33. data/spec/fixtures/basic_site/not-published.adoc +0 -4
  34. data/spec/fixtures/basic_site/section-with-id-and-role.adoc +0 -6
  35. data/spec/fixtures/basic_site/standalone-a.adoc +0 -4
  36. data/spec/fixtures/basic_site/standalone-b.adoc +0 -4
  37. data/spec/fixtures/basic_site/subdir/page-in-subdir.adoc +0 -7
  38. data/spec/fixtures/basic_site/with-front-matter-header-only.adoc +0 -4
  39. data/spec/fixtures/basic_site/with-front-matter-header.adoc +0 -6
  40. data/spec/fixtures/basic_site/without-front-matter-header.adoc +0 -3
  41. data/spec/fixtures/blank_page_attribute_prefix/_config.yml +0 -4
  42. data/spec/fixtures/blank_page_attribute_prefix/_layouts/default.html +0 -12
  43. data/spec/fixtures/blank_page_attribute_prefix/explicit-permalink.adoc +0 -4
  44. data/spec/fixtures/default_config/_config.yml +0 -2
  45. data/spec/fixtures/explicit_site_time/_config.yml +0 -4
  46. data/spec/fixtures/explicit_site_time/_layouts/default.html +0 -12
  47. data/spec/fixtures/explicit_site_time/home.adoc +0 -3
  48. data/spec/fixtures/fallback_to_default_layout/_blueprints/blueprint.adoc +0 -3
  49. data/spec/fixtures/fallback_to_default_layout/_config.yml +0 -5
  50. data/spec/fixtures/fallback_to_default_layout/_layouts/default.html +0 -15
  51. data/spec/fixtures/fallback_to_default_layout/_posts/2016-01-01-post.adoc +0 -4
  52. data/spec/fixtures/fallback_to_default_layout/home.adoc +0 -3
  53. data/spec/fixtures/front_matter_defaults/_config.yml +0 -10
  54. data/spec/fixtures/front_matter_defaults/_layouts/docs.html +0 -15
  55. data/spec/fixtures/front_matter_defaults/_layouts/general.html +0 -15
  56. data/spec/fixtures/front_matter_defaults/docs/page.adoc +0 -3
  57. data/spec/fixtures/front_matter_defaults/page.adoc +0 -3
  58. data/spec/fixtures/hybrid_config/_config.yml +0 -8
  59. data/spec/fixtures/imagesdir_relative_to_root/_config.yml +0 -5
  60. data/spec/fixtures/include_relative_to_docdir/_config.yml +0 -4
  61. data/spec/fixtures/include_relative_to_docdir/_layouts/default.html +0 -12
  62. data/spec/fixtures/include_relative_to_docdir/about/_people.adoc +0 -2
  63. data/spec/fixtures/include_relative_to_docdir/about/index.adoc +0 -13
  64. data/spec/fixtures/include_relative_to_root/source/_config.yml +0 -2
  65. data/spec/fixtures/include_relative_to_root/source/_layouts/default.html +0 -11
  66. data/spec/fixtures/include_relative_to_root/source/about/_people.adoc +0 -2
  67. data/spec/fixtures/include_relative_to_root/source/about/index.adoc +0 -13
  68. data/spec/fixtures/include_relative_to_source/_config.yml +0 -4
  69. data/spec/fixtures/include_relative_to_source/_layouts/default.html +0 -12
  70. data/spec/fixtures/include_relative_to_source/about/_people.adoc +0 -2
  71. data/spec/fixtures/include_relative_to_source/about/index.adoc +0 -13
  72. data/spec/fixtures/legacy_config/_config.yml +0 -5
  73. data/spec/fixtures/pygments_code_highlighting/_config.yml +0 -6
  74. data/spec/fixtures/pygments_code_highlighting/_layouts/page.html +0 -13
  75. data/spec/fixtures/pygments_code_highlighting/page-with-code.adoc +0 -16
  76. data/spec/fixtures/read_error/_config.yml +0 -2
  77. data/spec/fixtures/read_error/unreadable.adoc +0 -3
  78. data/spec/fixtures/require_front_matter_header/_config.yml +0 -4
  79. data/spec/fixtures/require_front_matter_header/_layouts/default.html +0 -12
  80. data/spec/fixtures/require_front_matter_header/with-front-matter-header.adoc +0 -5
  81. data/spec/fixtures/require_front_matter_header/without-front-matter-header.adoc +0 -3
  82. data/spec/fixtures/safe_mode/_config.yml +0 -4
  83. data/spec/fixtures/safe_mode/_layouts/home.html +0 -15
  84. data/spec/fixtures/safe_mode/home.adoc +0 -5
  85. data/spec/fixtures/tocify_filter/_config.yml +0 -2
  86. data/spec/fixtures/tocify_filter/_layouts/default.html +0 -15
  87. data/spec/fixtures/tocify_filter/index.adoc +0 -25
  88. data/spec/fixtures/with_custom_collection/_blueprints/blueprint-a.adoc +0 -4
  89. data/spec/fixtures/with_custom_collection/_blueprints/blueprint-b.adoc +0 -10
  90. data/spec/fixtures/with_custom_collection/_config.yml +0 -7
  91. data/spec/fixtures/with_custom_collection/_layouts/blueprint.html +0 -15
  92. data/spec/fixtures/with_custom_collection/_layouts/default.html +0 -15
  93. data/spec/fixtures/with_posts/_config.yml +0 -6
  94. data/spec/fixtures/with_posts/_drafts/a-draft-post.adoc +0 -5
  95. data/spec/fixtures/with_posts/_layouts/custom.html +0 -15
  96. data/spec/fixtures/with_posts/_layouts/post.html +0 -23
  97. data/spec/fixtures/with_posts/_posts/2016-01-01-welcome.adoc +0 -4
  98. data/spec/fixtures/with_posts/_posts/2016-01-02-empty-layout.adoc +0 -4
  99. data/spec/fixtures/with_posts/_posts/2016-01-03-auto-layout.adoc +0 -4
  100. data/spec/fixtures/with_posts/_posts/2016-01-04-custom-layout.adoc +0 -4
  101. data/spec/fixtures/with_posts/_posts/2016-01-05-nil-layout.adoc +0 -4
  102. data/spec/fixtures/with_posts/_posts/2016-02-01-post-with-categories.adoc +0 -4
  103. data/spec/fixtures/with_posts/_posts/2016-02-02-post-with-singular-vars.adoc +0 -7
  104. data/spec/fixtures/with_posts/_posts/2016-03-01-post-with-excerpt.adoc +0 -4
  105. data/spec/fixtures/with_posts/_posts/2016-04-01-show-me-the-title.adoc +0 -4
  106. data/spec/fixtures/with_posts/_posts/2016-05-31-automatic-title.adoc +0 -1
  107. data/spec/fixtures/with_posts/_posts/2016-06-15-post-with-date.adoc +0 -4
  108. data/spec/fixtures/with_posts/_posts/2016-07-15-post-with-date-and-tz.adoc +0 -4
  109. data/spec/fixtures/with_posts/_posts/2016-07-20-post-with-date-in-revision-line.adoc +0 -6
  110. data/spec/fixtures/with_posts/index.html +0 -22
  111. data/spec/fixtures/xhtml_syntax/_config.yml +0 -6
  112. data/spec/fixtures/xhtml_syntax/home.adoc +0 -5
  113. data/spec/fixtures/xhtml_syntax/images/sunset.jpg +0 -0
  114. data/spec/jekyll-asciidoc_spec.rb +0 -1103
  115. data/spec/spec_helper.rb +0 -64
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{% if page.title %}{{ page.title }}{% else %}Site Title{% endif %}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- <footer>
12
- <p>Footer for page layout.</p>
13
- </footer>
14
- </body>
15
- </html>
@@ -1,4 +0,0 @@
1
- = Auto Page Layout
2
- :page-layout: _auto
3
-
4
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- :page-permalink: /bare/
2
-
3
- Just content.
4
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- = Custom Layout
2
- :page-layout: custom
3
-
4
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- [#page-id]
2
- = Page Title
3
-
4
- content
@@ -1,4 +0,0 @@
1
- = Auto Page Layout
2
- :page-layout:
3
-
4
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- = Page Title
2
- :page-attribute-with-empty-value:
3
-
4
- Lorem ipsum.
@@ -1,6 +0,0 @@
1
- ---
2
- liquid: true
3
- ---
4
- = Liquid Enabled
5
-
6
- {{ page.title }}
@@ -1,4 +0,0 @@
1
- = Nil Page Layout
2
- :page-layout: ~
3
-
4
- Lorem ipsum.
@@ -1,2 +0,0 @@
1
- Just content.
2
- Lorem ipsum.
@@ -1,3 +0,0 @@
1
- = No Liquid
2
-
3
- {{ page.title }}
@@ -1,4 +0,0 @@
1
- = Not Published
2
- :page-published: false
3
-
4
- This page should not be published.
@@ -1,6 +0,0 @@
1
- = Page Title
2
-
3
- [#section-id.section-role]
4
- == Section Title
5
-
6
- content
@@ -1,4 +0,0 @@
1
- = Standalone Page A
2
- :page-layout!:
3
-
4
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- = Standalone Page B
2
- :page-layout: false
3
-
4
- Lorem ipsum.
@@ -1,7 +0,0 @@
1
- = Page In Subdir
2
-
3
- Lorem ipsum.
4
-
5
- * docfile={docfile}
6
- * docdir={docdir}
7
- * docname={docname}
@@ -1,4 +0,0 @@
1
- ---
2
- title: Front Matter Only
3
- layout: page
4
- ---
@@ -1,6 +0,0 @@
1
- ---
2
- title: Original Page Title
3
- ---
4
- = Page Title
5
-
6
- Lorem ipsum.
@@ -1,3 +0,0 @@
1
- = Page Title
2
-
3
- Lorem ipsum.
@@ -1,4 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoc:
4
- page_attribute_prefix: ~
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- </body>
12
- </html>
@@ -1,4 +0,0 @@
1
- = Page With Explicit Permalink
2
- :permalink: /permalink/
3
-
4
- Lorem ipsum.
@@ -1,2 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
@@ -1,4 +0,0 @@
1
- time: 2016-07-04T09:15:00
2
- timezone: UTC
3
- gems:
4
- - jekyll-asciidoc
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- </body>
12
- </html>
@@ -1,3 +0,0 @@
1
- = Home Page
2
-
3
- * localdatetime={localdatetime}
@@ -1,3 +0,0 @@
1
- = Blueprint
2
-
3
- Lorem ipsum.
@@ -1,5 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- collections:
4
- blueprints:
5
- output: true
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- <footer>
12
- <p>Footer for default layout.</p>
13
- </footer>
14
- </body>
15
- </html>
@@ -1,4 +0,0 @@
1
- = Post
2
- Henry Jekyll
3
-
4
- Lorem ipsum.
@@ -1,3 +0,0 @@
1
- = Page
2
-
3
- Lorem ipsum.
@@ -1,10 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- defaults:
4
- - values:
5
- layout: general
6
- - scope:
7
- path: docs
8
- type: pages
9
- values:
10
- layout: docs
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- <footer>
12
- <p>Footer for docs layout.</p>
13
- </footer>
14
- </body>
15
- </html>
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- </head>
7
- <body>
8
- <div class="page-content">
9
- {{ content }}
10
- </div>
11
- <footer>
12
- <p>Footer for general layout.</p>
13
- </footer>
14
- </body>
15
- </html>
@@ -1,3 +0,0 @@
1
- = Docs Page
2
-
3
- Content of docs page.
@@ -1,3 +0,0 @@
1
- = General Page
2
-
3
- Content of general page.
@@ -1,8 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoc_ext: adoc
4
- asciidoc_page_attribute_prefix: jekyll
5
- asciidoc:
6
- processor: asciidoctor
7
- ext: asciidoc,adoc
8
- page_attribute_prefix: pg
@@ -1,5 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoctor:
4
- attributes:
5
- imagesdir: /images@
@@ -1,4 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoctor:
4
- base_dir: :docdir
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>{{ page.title }}</title>
5
- </head>
6
- <body>
7
- <div class="page-content">
8
- {{ content }}
9
- </div>
10
- </body>
11
- </html>
12
-
@@ -1,2 +0,0 @@
1
- * Doc Writer
2
- * Word Smith
@@ -1,13 +0,0 @@
1
- = About Us
2
-
3
- We provide content design services for open source tech companies.
4
-
5
- * docfile={docfile}
6
- * docdir={docdir}
7
- * outfile={outfile}
8
- * outdir={outdir}
9
- * outpath={outpath}
10
-
11
- == Our Team
12
-
13
- include::_people.adoc[]
@@ -1,2 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>{{ page.title }}</title>
5
- </head>
6
- <body>
7
- <div class="page-content">
8
- {{ content }}
9
- </div>
10
- </body>
11
- </html>
@@ -1,2 +0,0 @@
1
- * Doc Writer
2
- * Word Smith
@@ -1,13 +0,0 @@
1
- = About Us
2
-
3
- We provide content design services for open source tech companies.
4
-
5
- * docfile={docfile}
6
- * docdir={docdir}
7
- * outfile={outfile}
8
- * outdir={outdir}
9
- * outpath={outpath}
10
-
11
- == Our Team
12
-
13
- include::source/about/_people.adoc[]
@@ -1,4 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoctor:
4
- base_dir: :source
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>{{ page.title }}</title>
5
- </head>
6
- <body>
7
- <div class="page-content">
8
- {{ content }}
9
- </div>
10
- </body>
11
- </html>
12
-
@@ -1,2 +0,0 @@
1
- * Doc Writer
2
- * Word Smith
@@ -1,13 +0,0 @@
1
- = About Us
2
-
3
- We provide content design services for open source tech companies.
4
-
5
- * docfile={docfile}
6
- * docdir={docdir}
7
- * outfile={outfile}
8
- * outdir={outdir}
9
- * outpath={outpath}
10
-
11
- == Our Team
12
-
13
- include::about/_people.adoc[]
@@ -1,5 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoc: asciidoctor
4
- asciidoc_ext: adoc
5
- asciidoc_page_attribute_prefix: jekyll
@@ -1,6 +0,0 @@
1
- gems:
2
- - jekyll-asciidoc
3
- asciidoctor:
4
- attributes:
5
- - stylesdir=/css
6
- - source-highlighter=pygments@
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <title>{{ page.title }}</title>
6
- <link rel="stylesheet" href="{{ "/css/asciidoc-pygments.css" | prepend: site.baseurl }}">
7
- </head>
8
- <body>
9
- <div class="page-content">
10
- {{ content }}
11
- </div>
12
- </body>
13
- </html>
@@ -1,16 +0,0 @@
1
- = Code
2
-
3
- ```ruby
4
- class NilClass
5
- alias :nil_or_empty? :nil?
6
- end
7
-
8
- class String
9
- def nil_or_empty?
10
- alias :nil_or_empty? :empty?
11
- end
12
- end
13
-
14
- v = nil
15
- puts v.nil_or_empty?
16
- ```