Initial working Jekyll + AsciiDoc template

This commit is contained in:
Marko Korhonen 2021-09-21 20:07:14 +03:00
commit 6a4426252d
9 changed files with 253 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor

25
404.html Normal file
View file

@ -0,0 +1,25 @@
---
permalink: /404.html
layout: default
---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

26
Gemfile Normal file
View file

@ -0,0 +1,26 @@
source "https://rubygems.org"
gem "jekyll", "~> 4.2.0"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.5"
# Enable code syntax highlighting with asciidoc
gem 'pygments.rb', '~> 2.1.0'
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.12"
gem 'jekyll-asciidoc'
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
gem "webrick", "~> 1.7"

89
Gemfile.lock Normal file
View file

@ -0,0 +1,89 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
asciidoctor (2.0.16)
colorator (1.1.0)
concurrent-ruby (1.1.9)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.15.4)
forwardable-extended (2.6.0)
http_parser.rb (0.6.0)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
jekyll (4.2.0)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
pathutil (~> 0.9)
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-asciidoc (3.0.0)
asciidoctor (>= 1.5.0)
jekyll (>= 3.0.0)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.1.0)
sassc (> 2.0.1, < 3.0)
jekyll-seo-tag (2.7.1)
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
pygments.rb (2.1.0)
rb-fsevent (0.11.0)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.1)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
webrick (1.7.0)
PLATFORMS
x86_64-linux
DEPENDENCIES
jekyll (~> 4.2.0)
jekyll-asciidoc
jekyll-feed (~> 0.12)
minima (~> 2.5)
pygments.rb (~> 2.1.0)
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.1)
webrick (~> 1.7)
BUNDLED WITH
2.2.27

19
_config.yml Normal file
View file

@ -0,0 +1,19 @@
title: Jekyll + AsciiDoc demo
email: your-email@example.com
description: >-
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "" # the base hostname & protocol for your site, e.g. http://example.com
twitter_username: jekyllrb
github_username: jekyll
theme: minima
plugins:
- jekyll-feed
asciidoc: {}
asciidoctor:
attributes:
source-highlighter: pygments

View file

@ -0,0 +1,29 @@
---
layout: post
title: "Welcome to Jekyll!"
date: 2021-09-21 18:51:07 +0300
categories: jekyll update
---
:jekyll-docs: https://jekyllrb.com/docs/home
:jekyll-gh: https://github.com/jekyll/jekyll
:jekyll-talk: https://talk.jekyllrb.com/
Youll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated.
Jekyll requires blog post files to be named according to the following format:
`YEAR-MONTH-DAY-title.MARKUP`
Where `YEAR` is a four-digit number, `MONTH` and `DAY` are both two-digit numbers, and `MARKUP` is the file extension representing the format used in the file. After that, include the necessary front matter. Take a look at the source for this post to get an idea about how it works.
Jekyll also offers powerful support for code snippets:
[source,ruby]
def print_hi(name)
puts "Hi, #{name}"
end
print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
Check out the {jekyll-docs}[Jekyll docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at {jekyll-gh}[Jekylls GitHub repo]. If you have questions, you can ask them on {jekyll-talk}[Jekyll Talk].

43
asciidoc-pygments.css Normal file
View file

@ -0,0 +1,43 @@
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
pre.pygments .hll { background-color: #ffffcc }
pre.pygments, pre.pygments code { background: #ffffff; }
pre.pygments .tok-c { color: #008000 } /* Comment */
pre.pygments .tok-err { border: 1px solid #FF0000 } /* Error */
pre.pygments .tok-k { color: #0000ff } /* Keyword */
pre.pygments .tok-ch { color: #008000 } /* Comment.Hashbang */
pre.pygments .tok-cm { color: #008000 } /* Comment.Multiline */
pre.pygments .tok-cp { color: #0000ff } /* Comment.Preproc */
pre.pygments .tok-cpf { color: #008000 } /* Comment.PreprocFile */
pre.pygments .tok-c1 { color: #008000 } /* Comment.Single */
pre.pygments .tok-cs { color: #008000 } /* Comment.Special */
pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */
pre.pygments .tok-gh { font-weight: bold } /* Generic.Heading */
pre.pygments .tok-gp { font-weight: bold } /* Generic.Prompt */
pre.pygments .tok-gs { font-weight: bold } /* Generic.Strong */
pre.pygments .tok-gu { font-weight: bold } /* Generic.Subheading */
pre.pygments .tok-kc { color: #0000ff } /* Keyword.Constant */
pre.pygments .tok-kd { color: #0000ff } /* Keyword.Declaration */
pre.pygments .tok-kn { color: #0000ff } /* Keyword.Namespace */
pre.pygments .tok-kp { color: #0000ff } /* Keyword.Pseudo */
pre.pygments .tok-kr { color: #0000ff } /* Keyword.Reserved */
pre.pygments .tok-kt { color: #2b91af } /* Keyword.Type */
pre.pygments .tok-s { color: #a31515 } /* Literal.String */
pre.pygments .tok-nc { color: #2b91af } /* Name.Class */
pre.pygments .tok-ow { color: #0000ff } /* Operator.Word */
pre.pygments .tok-sa { color: #a31515 } /* Literal.String.Affix */
pre.pygments .tok-sb { color: #a31515 } /* Literal.String.Backtick */
pre.pygments .tok-sc { color: #a31515 } /* Literal.String.Char */
pre.pygments .tok-dl { color: #a31515 } /* Literal.String.Delimiter */
pre.pygments .tok-sd { color: #a31515 } /* Literal.String.Doc */
pre.pygments .tok-s2 { color: #a31515 } /* Literal.String.Double */
pre.pygments .tok-se { color: #a31515 } /* Literal.String.Escape */
pre.pygments .tok-sh { color: #a31515 } /* Literal.String.Heredoc */
pre.pygments .tok-si { color: #a31515 } /* Literal.String.Interpol */
pre.pygments .tok-sx { color: #a31515 } /* Literal.String.Other */
pre.pygments .tok-sr { color: #a31515 } /* Literal.String.Regex */
pre.pygments .tok-s1 { color: #a31515 } /* Literal.String.Single */
pre.pygments .tok-ss { color: #a31515 } /* Literal.String.Symbol */

7
index.adoc Normal file
View file

@ -0,0 +1,7 @@
:page-layout: home
This is the front page. You can find it in the source as `index.adoc`.
This is the home page and it is using the `home` layout, so you should see a "Posts" widget below, which shows the latests posts.
Jekyll also supports generating RSS feeds, pretty cool ain't it?

10
jekyll-asciidoc.adoc Normal file
View file

@ -0,0 +1,10 @@
= Jekyll ♥ AsciiDoc
:page-layout: page
:page-permalink: /jekyll-asciidoc/
:url-asciidoctor: http://asciidoctor.org
This is a sample page composed in AsciiDoc.
Jekyll converts it to HTML using {url-asciidoctor}[Asciidoctor].
[source,ruby]
puts "Hello, World!"