Skip to content

Commit 2661769

Browse files
committed
added post on imperial report
1 parent 038ca95 commit 2661769

File tree

49 files changed

+39006
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+39006
-14
lines changed

docs/Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ ruby RUBY_VERSION
1313
gem "jekyll"
1414
gem "faraday", "0.15.4"
1515

16+
gem "jekyll-paginate"
17+
gem "jekyll-sitemap"
18+
gem "jekyll-gist"
19+
gem "jekyll-feed"
20+
gem "jemoji"
21+
1622
# This is the default theme for new Jekyll sites. You may change this to anything you like.
1723
# gem "minima"
1824

1925
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
2026
# uncomment the line below. To upgrade, run `bundle update github-pages`.
21-
gem "github-pages", group: :jekyll_plugins
27+
# gem "github-pages", group: :jekyll_plugins
2228

2329
# If you have any plugins, put them here!
2430
# group :jekyll_plugins do

docs/_config.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,22 @@ fixedNav: 'true' # true or false
5757

5858
permalink: /:year/:title/
5959
markdown: kramdown
60-
exclude: [.gems, _site,
61-
CHANGELOG.md, CNAME, LICENSE, src,
62-
Gemfile, Gemfile.lock, jekyll-build,
63-
make.jl, make-utils.jl, README.md, vendor,
64-
test.sh,
65-
]
60+
exclude:
61+
- .gems
62+
- _site
63+
- CHANGELOG.md
64+
- CNAME
65+
- LICENSE
66+
- src
67+
- Gemfile
68+
- Gemfile.lock
69+
- jekyll-build
70+
- make.jl
71+
- make-utils.jl
72+
- README.md
73+
- vendor
74+
- test.sh
75+
- "*.org"
6676

6777
# Collections
6878
collections:
@@ -112,7 +122,6 @@ defaults:
112122
layout: "post"
113123
sidebar: false
114124

115-
116125
plugins:
117126
- jekyll-paginate
118127
- jekyll-sitemap

docs/_includes/plotly.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div id="{{ include.id }}" class="plotly"></div>
2+
<script>
3+
Plotly.d3.json("{{ include.json }}", function(err, fig) {
4+
Plotly.plot("{{ include.id }}", fig.data, fig.layout, {responsive: true});
5+
});
6+
</script>

docs/_layouts/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/index.css">
4343
{% endif %}
4444

45+
{% if page.url contains "posts" %}
46+
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
47+
{% endif %}
48+
4549
</head>
4650

4751
<body dir="ltr" data-md-color-primary="{{ site.themeColor }}" data-md-color-accent="{{ site.accentColor }}">

docs/_plugins/details_tag.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module Jekyll
2+
module Tags
3+
class DetailsTag < Liquid::Block
4+
5+
def initialize(tag_name, markup, tokens)
6+
super
7+
@caption = markup
8+
end
9+
10+
def render(context)
11+
site = context.registers[:site]
12+
converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
13+
# below Jekyll 3.x use this:
14+
# converter = site.getConverterImpl(::Jekyll::Converters::Markdown)
15+
caption = converter.convert(@caption)
16+
body = converter.convert(super(context))
17+
"<details><summary>#{caption}</summary>#{body}</details>"
18+
end
19+
20+
end
21+
end
22+
end
23+
24+
Liquid::Template.register_tag('details', Jekyll::Tags::DetailsTag)

docs/_plugins/wrap.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module Jekyll
2+
module Tags
3+
class WrapTag < Liquid::Block
4+
5+
def initialize(tag_name, markup, tokens)
6+
super
7+
@class = markup
8+
end
9+
10+
def render(context)
11+
site = context.registers[:site]
12+
converter = site.find_converter_instance(::Jekyll::Converters::Markdown)
13+
# below Jekyll 3.x use this:
14+
# converter = site.getConverterImpl(::Jekyll::Converters::Markdown)
15+
body = converter.convert(super(context))
16+
"<div class=\"#{@class}\">#{body}#{}</div>"
17+
end
18+
19+
end
20+
end
21+
end
22+
23+
Liquid::Template.register_tag('wrap', Jekyll::Tags::WrapTag)

0 commit comments

Comments
 (0)