Skip to content

Commit 134655f

Browse files
committed
initial commit
0 parents  commit 134655f

21 files changed

+2035
-0
lines changed

Diff for: Gemfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
source "https://rubygems.org"
2+
ruby RUBY_VERSION
3+
4+
# Hello! This is where you manage which Jekyll version is used to run.
5+
# When you want to use a different version, change it below, save the
6+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
7+
#
8+
# bundle exec jekyll serve
9+
#
10+
# This will help ensure the proper Jekyll version is running.
11+
# Happy Jekylling!
12+
gem "jekyll", "3.4.0"
13+
14+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
15+
gem "minima", "~> 2.0"
16+
17+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
18+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
19+
# gem "github-pages", group: :jekyll_plugins
20+
21+
# If you have any plugins, put them here!
22+
group :jekyll_plugins do
23+
gem "jekyll-feed", "~> 0.6"
24+
end
25+
26+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
27+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Diff for: Gemfile.lock

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.5.2)
5+
public_suffix (>= 2.0.2, < 4.0)
6+
colorator (1.1.0)
7+
ffi (1.9.25)
8+
forwardable-extended (2.6.0)
9+
jekyll (3.6.3)
10+
addressable (~> 2.4)
11+
colorator (~> 1.0)
12+
jekyll-sass-converter (~> 1.0)
13+
jekyll-watch (~> 1.1)
14+
kramdown (~> 1.3)
15+
liquid (~> 3.0)
16+
mercenary (~> 0.3.3)
17+
pathutil (~> 0.9)
18+
rouge (~> 1.7)
19+
safe_yaml (~> 1.0)
20+
jekyll-feed (0.11.0)
21+
jekyll (~> 3.3)
22+
jekyll-sass-converter (1.5.2)
23+
sass (~> 3.4)
24+
jekyll-watch (1.5.1)
25+
listen (~> 3.0)
26+
kramdown (1.17.0)
27+
liquid (3.0.6)
28+
listen (3.1.5)
29+
rb-fsevent (~> 0.9, >= 0.9.4)
30+
rb-inotify (~> 0.9, >= 0.9.7)
31+
ruby_dep (~> 1.2)
32+
mercenary (0.3.6)
33+
minima (2.1.1)
34+
jekyll (~> 3.3)
35+
pathutil (0.16.2)
36+
forwardable-extended (~> 2.6)
37+
public_suffix (3.0.3)
38+
rb-fsevent (0.10.3)
39+
rb-inotify (0.9.10)
40+
ffi (>= 0.5.0, < 2)
41+
rouge (1.11.1)
42+
ruby_dep (1.5.0)
43+
safe_yaml (1.0.4)
44+
sass (3.6.0)
45+
sass-listen (~> 4.0.0)
46+
sass-listen (4.0.0)
47+
rb-fsevent (~> 0.9, >= 0.9.4)
48+
rb-inotify (~> 0.9, >= 0.9.7)
49+
50+
PLATFORMS
51+
ruby
52+
53+
DEPENDENCIES
54+
jekyll (= >= 3.6.3)
55+
jekyll-feed (~> 0.6)
56+
minima (~> 2.0)
57+
tzinfo-data
58+
59+
RUBY VERSION
60+
ruby 2.6.0p0
61+
62+
BUNDLED WITH
63+
1.17.3

Diff for: README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Debug4Science
2+
Source code of the Jekyll-based website of the CEA/Inria collaboration **Debug4Science**.
3+
The website is deployed at https://gemoc.github.io/debug4science (https://gemoc.org/debug4science)

Diff for: _config.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely edit after that. If you find
5+
# yourself editing this file very often, consider using Jekyll's data files
6+
# feature for the data you need to update frequently.
7+
#
8+
# For technical reasons, this file is *NOT* reloaded automatically when you use
9+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
10+
11+
# Site settings
12+
# These are used to personalize your new site. If you look in the HTML files,
13+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
14+
# You can create any custom variable you would like, and they will be accessible
15+
# in the templates via {{ site.myvariable }}.
16+
title: Debug4Science (CEA/Inria)
17+
18+
description: Debug4Science is a research collaboration between Inria/DiverSE and CEA/DAM
19+
baseurl: "/debug4science" # the subpath of your site, e.g. /blog
20+
url: "https://gemoc.github.io/debug4science" # the base hostname & protocol for your site, e.g. http://example.com
21+
twitter_username: gemocinitiative
22+
github_username: gemoc
23+
24+
# Build settings
25+
markdown: kramdown
26+
theme: minima
27+
kramdown:
28+
parse_block_html: true
29+
30+
gems:
31+
- jekyll-feed
32+
exclude:
33+
- Gemfile
34+
- Gemfile.lock
35+
- README.md
36+
- node_modules
37+
- vendor/bundle/
38+
- vendor/cache/
39+
- vendor/gems/
40+
- vendor/ruby/

Diff for: _includes/.DS_Store

6 KB
Binary file not shown.

Diff for: _includes/header.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<header class="site-header" role="banner">
2+
3+
<div class="wrapper">
4+
{% assign default_paths = site.pages | map: "path" %}
5+
{% assign page_paths = site.header_pages | default: default_paths %}
6+
<a class="site-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7+
8+
{% if page_paths %}
9+
<nav class="site-nav">
10+
<!--<input type="checkbox" id="nav-trigger" class="nav-trigger" />-->
11+
<label for="nav-trigger">
12+
<span class="menu-icon">
13+
<svg viewBox="0 0 18 15" width="18px" height="15px">
14+
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
15+
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
16+
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
17+
</svg>
18+
</span>
19+
</label>
20+
21+
<div class="trigger">
22+
<a class="page-link" href="{{ site.baseurl }}/activities.html">Activities</a>
23+
<a class="page-link" href="{{ site.baseurl }}/objectives.html">Objectives</a>
24+
<a class="page-link" href="{{ site.baseurl }}/publications.html">Publications</a>
25+
<a class="page-link" href="{{ site.baseurl }}/software.html">Software</a>
26+
<a class="page-link" href="{{ site.baseurl }}/team.html">Team</a>
27+
</div>
28+
</nav>
29+
{% endif %}
30+
</div>
31+
</header>

Diff for: _includes/jekyll-timeline-li-event.html

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{% comment %}
2+
3+
Depends on:
4+
* include.pxPerMonth
5+
* event
6+
7+
For each event, we display name and description
8+
I use `from` and `to` properties to calculate top position and height
9+
I also use this to calculate pretty date range display phrases
10+
11+
{% endcomment %}
12+
13+
14+
{% comment %} ------------------------------------------ Constants -- {% endcomment %}
15+
{% assign minEventHeight = 24.0 %}
16+
{% assign secondsPerMonth = 2628288.0 %}
17+
{% comment %} 60 * 60 * 24 * 30.42. It must be be a float (end with .0) so divided_by doesn't floor the result {% endcomment %}
18+
19+
20+
21+
{% assign now = 1576000000 %}
22+
23+
24+
{% comment %} ---------------------------------------- Offset from top because we always draw a full year --- {% endcomment %}
25+
{% assign curMonth = 12 %}
26+
{% assign monthOffset = 12 | minus: curMonth %}
27+
28+
29+
30+
{% comment %} ---------------------------------------- Default values for to and from --- {% endcomment %}
31+
{% if event.to == "now" %}
32+
{% assign to = now %}
33+
{% else %}
34+
{% assign to = event.to | date: '%s' %}
35+
{% endif %}
36+
37+
{% if event.from %}
38+
{% assign from = event.from | date: '%s' %}
39+
{% else %}
40+
{% assign secondsPerQuarter = secondsPerMonth | times: 4 %}
41+
{% assign from = to | minus: secondsPerQuarter %}
42+
{% endif %}
43+
44+
45+
{% comment %} ---------------------------------------- Set top position and height --- {% endcomment %}
46+
{% comment %}
47+
top: now - to ( / sPerMonth * pxPerMonth)
48+
height: to - from ( / sPerMonth * pxPerMonth)
49+
{% endcomment %}
50+
{% assign eventAge = now | minus: to | divided_by: secondsPerMonth %}
51+
{% assign top = eventAge | plus: monthOffset | times: include.pxPerMonth %}
52+
{% assign eventLength = to | minus: from | divided_by: secondsPerMonth | plus: 1 %}
53+
{% comment %} plus: 1 to be inclusive. If I worked from 2016-01 to 2016-02, I should cover both months {% endcomment %}
54+
{% assign h = eventLength | times: include.pxPerMonth %}
55+
{% if h < minEventHeight %}
56+
{% assign height = minEventHeight %}
57+
{% else %}
58+
{% assign height = h %}
59+
{% endif %}
60+
61+
62+
63+
{% comment %} ---------------------------------------- Set display strings --- {% endcomment %}
64+
{% assign toDateDisplay = event.to | date: '%b %Y' %}
65+
{% if event.from %}
66+
{% assign dateDisplay = event.from | date: '%b %Y' | append: ' to ' | append: toDateDisplay %}
67+
{% assign yrs = eventLength | divided_by: 12 | floor %}
68+
{% assign mo = eventLength | modulo: 12 | floor %}
69+
{% if yrs == 0 %}
70+
{% assign duration = mo | append: 'mo' %}
71+
{% else %}
72+
{% assign duration = yrs | append: 'yr' %}
73+
{% if mo != 0 %}
74+
{% assign duration = duration | append: ' ' | append: mo | append: 'mo' %}
75+
{% endif %}
76+
{% endif %}
77+
78+
{% else %}
79+
{% assign dateDisplay = toDateDisplay %}
80+
{% assign secondsPerQuarter = secondsPerMonth | times: 4 %}
81+
{% assign duration = 'event' %}
82+
{% endif %}
83+
84+
85+
86+
<li class="event" tabindex="0"
87+
style="top: {{top}}px; height: {{height}}px; min-height: {{height}}px;" title="{{event.name}}: {{dateDisplay}} ({{duration}})">
88+
<div class="title">{{ event.name | markdownify }}</div>
89+
<div class="description">{{ event.description | markdownify }}</div>
90+
</li>

Diff for: _includes/jekyll-timeline.html

+122
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{% comment %} ------------------------------------------ Dependencies
2+
This template depends on:
3+
include.startYear // Int. Four digit year
4+
include.timelineHeight // Int. Pixel count
5+
include.col1Title
6+
include.col1Events: [ // Array of objects with the following fields. Can use _data/foo.yml or front matter to specify
7+
{
8+
name: String
9+
to: Date
10+
from: Date
11+
description: String?
12+
}
13+
]
14+
{% endcomment %}
15+
16+
17+
18+
{% comment %} ------------------------------------------ Calculate an array of years for display -- {% endcomment %}
19+
{% assign endYear = 2019 %}
20+
{% assign yearString = "" %}
21+
{% for y in (include.startYear..endYear) %}
22+
{% assign yearString = yearString | append: y | append: ',' %}
23+
{% endfor %}
24+
{% assign years = yearString | split: ',' | reverse %}
25+
26+
27+
28+
{% comment %} ------------------------------------------ Calculate pixel sizes for quantities of time
29+
use a float to get non-rounded output from `divided_by`: https://shopify.github.io/liquid/filters/divided_by/
30+
{% endcomment %}
31+
{% assign yearCountAsFloat = years.size | times: 1.0 %} {% comment %} {% endcomment %}
32+
{% assign yearHeight = include.timelineHeight | divided_by: yearCountAsFloat %}
33+
{% assign monthHeight = yearHeight | divided_by: 12.0 %}
34+
35+
36+
37+
<div class="jekyllTimeline">
38+
<div class="inner" style="height: {{include.timelineHeight}}px;"
39+
data-comment="These data properties are for transparency; not actually used to build the timeline."
40+
data-site-time="{{ site.time | date: '%Y-%-m' }}"
41+
data-years-size="{{include.startYear}}-{{endYear}}: {{years.size}}"
42+
data-year-height="{{yearHeight}}"
43+
data-month-height="{{monthHeight}}">
44+
45+
46+
47+
{% comment %} --- Print out lines that represent each year -- {% endcomment %}
48+
49+
{% for year in years %}
50+
<b class="y{{ year }}" style="height: {{yearHeight}}px; top: {{ yearHeight | times: forloop.index0 }}px;">
51+
<label>{{ year }}</label>
52+
{% for i in (0..11) %}
53+
{% assign mo = 12 | minus: i %}
54+
{% case mo %}
55+
{% when 1 %}{% assign month = "January" %}
56+
{% when 2 %}{% assign month = "February" %}
57+
{% when 3 %}{% assign month = "March" %}
58+
{% when 4 %}{% assign month = "April" %}
59+
{% when 5 %}{% assign month = "May" %}
60+
{% when 6 %}{% assign month = "June" %}
61+
{% when 7 %}{% assign month = "July" %}
62+
{% when 8 %}{% assign month = "August" %}
63+
{% when 9 %}{% assign month = "September" %}
64+
{% when 10 %}{% assign month = "October" %}
65+
{% when 11 %}{% assign month = "November" %}
66+
{% when 12 %}{% assign month = "December" %}
67+
{% endcase %}
68+
<i style="height: {{monthHeight}}px" title="{{month}} {{year}}"></i>
69+
{% endfor %}
70+
</b>
71+
{% endfor %}
72+
73+
74+
75+
{% comment %} --- Print timeline event columns --- {% endcomment %}
76+
{% if include.col1Events %}
77+
<ol class="col col1" {% if include.col1Width %} style="flex-basis:{{include.col1Width}}" {% endif %} >
78+
<li class="colTitle"><span>{{ include.col1Title }}</span></li>
79+
{% for event in include.col1Events %}
80+
{% include jekyll-timeline-li-event.html pxPerMonth=monthHeight %}
81+
{% endfor %}
82+
</ol>
83+
{% endif %}
84+
85+
{% if include.col2Events %}
86+
<ol class="col col2" {% if include.col2Width %} style="flex-basis:{{include.col2Width}}" {% endif %} >
87+
<li class="colTitle"><span>{{ include.col2Title }}</span></li>
88+
{% for event in include.col2Events %}
89+
{% include jekyll-timeline-li-event.html pxPerMonth=monthHeight %}
90+
{% endfor %}
91+
</ol>
92+
{% endif %}
93+
94+
{% if include.col3Events %}
95+
<ol class="col col3" {% if include.col3Width %} style="flex-basis:{{include.col3Width}}" {% endif %} >
96+
<li class="colTitle"><span>{{ include.col3Title }}</span></li>
97+
{% for event in include.col3Events %}
98+
{% include jekyll-timeline-li-event.html pxPerMonth=monthHeight %}
99+
{% endfor %}
100+
</ol>
101+
{% endif %}
102+
103+
{% if include.col4Events %}
104+
<ol class="col col4" {% if include.col4Width %} style="flex-basis:{{include.col4Width}}" {% endif %} >
105+
<li class="colTitle"><span>{{ include.col4Title }}</span></li>
106+
{% for event in include.col4Events %}
107+
{% include jekyll-timeline-li-event.html pxPerMonth=monthHeight %}
108+
{% endfor %}
109+
</ol>
110+
{% endif %}
111+
112+
{% if include.col5Events %}
113+
<ol class="col col5" {% if include.col5Width %} style="flex-basis:{{include.col5Width}}" {% endif %} >
114+
<li class="colTitle"><span>{{ include.col5Title }}</span></li>
115+
{% for event in include.col5Events %}
116+
{% include jekyll-timeline-li-event.html pxPerMonth=monthHeight %}
117+
{% endfor %}
118+
</ol>
119+
{% endif %}
120+
121+
</div>
122+
</div>

Diff for: _layouts/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)