Skip to content

Commit dfa04b8

Browse files
committed
switch template to have molssi branding
1 parent a402c4f commit dfa04b8

14 files changed

+80
-102
lines changed

_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# dc: Data Carpentry
88
# lc: Library Carpentry
99
# cp: Carpentries (to use for instructor traning for instance)
10-
carpentry: "swc"
10+
carpentry: "molssi"
1111

1212
# Overall title for pages.
1313
title: "Python Scripting for Computational Molecular Science"

_extras/about.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ title: About
1010
</div>
1111
</div>
1212
<br/>
13-
{% include carpentries.html %}
13+
{% include molssi.html %}
1414
{% include links.md %}

_includes/carpentries.html

-70
This file was deleted.

_includes/favicons.html

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% assign favicon_url = relative_root_path | append: '/assets/favicons/' | append: site.carpentry %}
1+
{% assign favicon_url = site.baseurl | append: '/assets/favicons/' | append: site.carpentry | prepend: site.url %}
22

33
{% if site.carpentry == 'swc' %}
44
{% assign carpentry = 'Software Carpentry' %}
@@ -8,26 +8,15 @@
88
{% assign carpentry = 'Library Carpentry' %}
99
{% elsif site.carpentry == 'cp' %}
1010
{% assign carpentry = 'The Carpentries' %}
11+
{% elsif site.carpentry == 'molssi' %}
12+
{% assign carpentry = 'The Molecular Sciences Software Institute' %}
1113
{% endif %}
1214

1315
<!-- Favicons for everyone -->
14-
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ favicon_url }}/apple-touch-icon-57x57.png" />
15-
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ favicon_url }}/apple-touch-icon-114x114.png" />
16-
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ favicon_url }}/apple-touch-icon-72x72.png" />
17-
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ favicon_url }}/apple-touch-icon-144x144.png" />
18-
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{ favicon_url }}/apple-touch-icon-60x60.png" />
19-
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ favicon_url }}/apple-touch-icon-120x120.png" />
20-
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{ favicon_url }}/apple-touch-icon-76x76.png" />
21-
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ favicon_url }}/apple-touch-icon-152x152.png" />
2216
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-196x196.png" sizes="196x196" />
2317
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-96x96.png" sizes="96x96" />
2418
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-32x32.png" sizes="32x32" />
2519
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-16x16.png" sizes="16x16" />
2620
<link rel="icon" type="image/png" href="{{ favicon_url }}/favicon-128.png" sizes="128x128" />
2721
<meta name="application-name" content="{{ carpentry }} - {{ site.title }}"/>
28-
<meta name="msapplication-TileColor" content="#FFFFFF" />
29-
<meta name="msapplication-TileImage" content="{{ favicon_url }}/mstile-144x144.png" />
30-
<meta name="msapplication-square70x70logo" content="{{ favicon_url }}/mstile-70x70.png" />
31-
<meta name="msapplication-square150x150logo" content="{{ favicon_url }}/mstile-150x150.png" />
32-
<meta name="msapplication-wide310x150logo" content="{{ favicon_url }}/mstile-310x150.png" />
33-
<meta name="msapplication-square310x310logo" content="{{ favicon_url }}/mstile-310x310.png" />
22+
<meta name="msapplication-TileColor" content="#FFFFFF" />

_includes/lesson_footer.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@
1010
<div class="col-md-6 help-links" align="right">
1111
{% if page.source %}
1212
{% if page.source == "Rmd" %}
13-
<a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Edit on GitHub</a>
13+
<a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Edit on GitHub</a>
1414
{% endif %}
1515
{% else %}
16-
<a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path}}" data-checker-ignore>Edit on GitHub</a>
16+
<a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Edit on GitHub</a>
1717
{% endif %}
1818
/
19-
<a href="{{ repo_url }}/blob/{{ source_branch }}/CONTRIBUTING.md" data-checker-ignore>Contributing</a>
19+
<a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
2020
/
2121
<a href="{{ site.github.repository_url }}/">Source</a>
2222
/
23-
<a href="{{ repo_url }}/blob/{{ source_branch }}/CITATION" data-checker-ignore>Cite</a>
23+
<a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cite</a>
2424
/
2525
<a href="mailto:{{ site.email }}">Contact</a>
2626
</div>
2727
</div>
2828
<div class="row">
2929
<div class="col-md-12" align="center">
30-
Using <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
30+
Using a MolSSI modification of <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
3131
version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.0">9.5.0</a>.
3232
</div>
3333
</div>
34-
</footer>
34+
</footer>

_includes/molssi.html

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{% comment %}
2+
General description of The Molecular Sciences Software Institute.
3+
{% endcomment %}
4+
<div class="row">
5+
<div class="col-md-2" align="center">
6+
<a href="https://molssi.org/"><img src="{{ page.root }}/assets/img/molssi_main_logo.png" alt="MolSSI logo" width="100%" /></a>
7+
</div>
8+
<div class="col-md-8">
9+
Since its launch in 2016, <a href="https://molssi.org/">The Molecular Sciences Software Institute</a>, has served as a nexus for the
10+
broad computational molecular sciences community by providing software expertise, community engagement and leadership, and education
11+
and training. Through a broad array of software infrastructure projects, teaching workshops, and community outreach, the MolSSI is
12+
catalyzing the scientific advances needed to solve emerging scientific computing Grand Challenges.
13+
</div>
14+
</div>
15+
16+
<div class="row">
17+
<div class="col-md-10">
18+
<p>Education of students, post-docs, and faculty on programming and Best Practices in Software Development is a large part of MolSSI's mission.
19+
Our education program consists of our cohorts of <a href="https://molssi.org/molssi-software-fellows/">Software Fellows</a>,
20+
<a href="https://molssi-education.github.io/resources.html">online training materials</a>,
21+
and <a href="https://molssi-education.github.io/request.html">multiple workshops online or in-person at various locations each year</a>.
22+
</p>
23+
<p>MolSSI’s education techniques and practices are modeled after <a href="https://software-carpentry.org/">The Software Carpentries</a>
24+
style to teaching novice software best practices. This approach teaches subjects that not only increase a student’s scientific
25+
capability and efficiency, but also his/her future marketability in both scientific and non-scientific fields.
26+
</p>
27+
</div>
28+
</div>
29+

assets/css/lesson.scss

+39-9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $color-brand: #2b3990 !default;
1010

1111
// code boxes
1212
$color-error: #bd2c00 !default;
13+
$color-warning: #cda01d !default;
1314
$color-output: #303030 !default;
1415
$color-source: #360084 !default;
1516

@@ -36,9 +37,10 @@ $color-testimonial: #fc8dc1 !default;
3637
border-radius: 4px 0 0 4px;
3738
}
3839

39-
.error { @include cdSetup($color-error); }
40-
.output { @include cdSetup($color-output); }
41-
.source { @include cdSetup($color-source); }
40+
.error { @include cdSetup($color-error); }
41+
.warning { @include cdSetup($color-warning); }
42+
.output { @include cdSetup($color-output); }
43+
.source { @include cdSetup($color-source); }
4244

4345
.bash, .language-bash { @include cdSetup($color-source); }
4446
.make, .language-make { @include cdSetup($color-source); }
@@ -48,6 +50,7 @@ $color-testimonial: #fc8dc1 !default;
4850
.sql, .language-sql { @include cdSetup($color-source); }
4951

5052
.error::before,
53+
.warning:before,
5154
.output::before,
5255
.source::before,
5356
.bash::before, .language-bash::before,
@@ -56,13 +59,14 @@ $color-testimonial: #fc8dc1 !default;
5659
.python::before, .language-python::before,
5760
.r::before, .language-r::before,
5861
.sql::before, .language-sql::before {
59-
background-color: #f2eff6;
60-
display: block;
61-
font-weight: bold;
62-
padding: 5px 10px;
62+
background-color: #f2eff6;
63+
display: block;
64+
font-weight: bold;
65+
padding: 5px 10px;
6366
}
6467

6568
.error::before { background-color: #ffebe6; content: "Error"; }
69+
.warning:before { background-color: #f8f4e8; content:" Warning"; }
6670
.output::before { background-color: #efefef; content: "Output"; }
6771
.source::before { content: "Code"; }
6872
.bash::before, .language-bash::before { content: "Bash"; }
@@ -72,7 +76,26 @@ $color-testimonial: #fc8dc1 !default;
7276
.r::before, .language-r::before { content: "R"; }
7377
.sql::before, .language-sql::before { content: "SQL"; }
7478

79+
// Tab panels are used on Setup pages to show instructions for different Operating Systems
80+
.tab-pane {
81+
border: solid 1px #ddd; // #ddd == @nav-tabs-active-link-hover-border-color
82+
border-top: none;
83+
padding: 20px 20px 10px 20px;
84+
border-radius: 0 0 4px 4px; // 4px == @border-radius-base
85+
}
86+
87+
// Stripe above tab panels where OS tabs are shown
88+
ul.nav.nav-tabs {
89+
background: #E1E1E1;
90+
border-radius: 4px 4px 0 0; // 4px == @border-radius-base
91+
}
7592

93+
// This color provides better contrast ratio on most backgrounds used on Carpentries websites
94+
// 9.24 on FFFFFF: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=FFFFFF&api (body)
95+
// 8.78 on F9F9F9: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=F9F9F9&api (tables)
96+
// 7.07 on E1E1E1: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=E1E1E1&api (tab panels)
97+
a { color: #ed1c24FF; }
98+
a:hover{ color: #393536ff; }
7699
//----------------------------------------
77100
// Specialized blockquote environments for learning objectives, callouts, etc.
78101
//----------------------------------------
@@ -156,13 +179,20 @@ blockquote :not(h2) + p {
156179
// Override Bootstrap settings.
157180
//----------------------------------------
158181

182+
blockquote { font-size: inherit; }
183+
159184
code {
160185
white-space: nowrap;
161186
padding: 2px 5px;
162187
color: #006cad;
163188
background-color: #e7e7e7;
164189
}
165190

191+
samp { hyphens: none; }
192+
193+
dt { margin-top: 20px; }
194+
dd { margin-left: 2em; }
195+
166196
article img {
167197
display: block;
168198
margin: 20px auto;
@@ -197,7 +227,7 @@ article pre {
197227
text-align: center;
198228
}
199229

200-
footer .copyright,
230+
footer .license,
201231
footer .help-links
202232
{
203233
font-size: inherit;
@@ -278,4 +308,4 @@ kbd {
278308
box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
279309
white-space: nowrap;
280310
font-style: normal;
281-
}
311+
}
7.42 KB
Loading
8.84 KB
Loading
934 Bytes
Loading
11 KB
Loading
928 Bytes
Loading
5.08 KB
Loading

assets/favicons/molssi/molssi.jpg

16.2 KB
Loading

0 commit comments

Comments
 (0)