Skip to content

Commit e68c2b5

Browse files
authored
Merge pull request #5 from LKedward/tutorials
Start tutorials
2 parents 6181a23 + d33b6eb commit e68c2b5

File tree

11 files changed

+721
-72
lines changed

11 files changed

+721
-72
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Copyright (c) 2014 Cameron Eagans and Josh Branchaud
2-
Copyright (c) 2020 Milan Curcic
2+
Copyright (c) 2020 fortran-lang.org Contributors
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of
55
this software and associated documentation files (the "Software"), to deal in

_data/nav.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
- title: Tutorial
2-
url: /tutorial/
1+
- title: Learn
2+
url: /learn/
33
- title: Compilers
44
url: /compilers/
55
- title: Development

_includes/important.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="aside-important">
2+
{% capture mdcontent %}__{{include.title | default: "Important:"}}__ {{include.content}}{% endcapture %}
3+
{{ mdcontent | markdownify}}
4+
</div>

_includes/note.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="aside-note">
2+
{% capture mdcontent %}__{{include.title | default: "Note:"}}__ {{include.content}}{% endcapture %}
3+
{{ mdcontent | markdownify}}
4+
</div>

_includes/tip.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="aside-tip">
2+
{% capture mdcontent %}__{{include.title | default: "Tip:"}}__ {{include.content}}{% endcapture %}
3+
{{ mdcontent | markdownify}}
4+
</div>

_layouts/default.html

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.0/normalize.min.css" rel="stylesheet">
1111
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
1212
<link href="/assets/css/main.css" rel="stylesheet">
13+
<link href="/assets/css/syntax.css" rel="stylesheet">
1314
<link rel="canonical" href="{{ site.url }}{% if page.canonical_url %}{{ page.canonical_url }}{% else %}{{ page.url }}{% endif %}" />
1415
<!--[if lt IE 9]>
1516
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>

assets/css/main.css

+24
Original file line numberDiff line numberDiff line change
@@ -269,3 +269,27 @@ footer a {
269269
.newsletter h1 {
270270
margin-bottom: 0px;
271271
}
272+
273+
.aside-note {
274+
color: gray;
275+
/* border-left: 5px solid #734f96; */
276+
border-left: 5px solid gray;
277+
font-size: 16px;
278+
padding-left: 10px;
279+
margin: 20px 0;
280+
}
281+
282+
.aside-tip {
283+
border-left: 5px solid #3c92d1;
284+
font-size: 16px;
285+
padding-left: 10px;
286+
margin: 20px 0;
287+
}
288+
289+
.aside-important {
290+
border-left: 5px solid #c7254e;
291+
font-size: 16px;
292+
padding-left: 10px;
293+
margin: 20px 0;
294+
background-color: #f9f2f4;
295+
}

assets/css/syntax.css

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
/*
2+
friendly.css
3+
source: https://github.com/richleland/pygments-css (Unlicense/PD)
4+
*/
5+
.highlight .hll { background-color: #ffffcc }
6+
.highlight { background: #f0f0f0; }
7+
.highlight .c { color: #60a0b0; font-style: italic } /* Comment */
8+
.highlight .err { border: 1px solid #FF0000 } /* Error */
9+
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
10+
.highlight .o { color: #666666 } /* Operator */
11+
.highlight .ch { color: #60a0b0; font-style: italic } /* Comment.Hashbang */
12+
.highlight .cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
13+
.highlight .cp { color: #007020 } /* Comment.Preproc */
14+
.highlight .cpf { color: #60a0b0; font-style: italic } /* Comment.PreprocFile */
15+
.highlight .c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
16+
.highlight .cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
17+
.highlight .gd { color: #A00000 } /* Generic.Deleted */
18+
.highlight .ge { font-style: italic } /* Generic.Emph */
19+
.highlight .gr { color: #FF0000 } /* Generic.Error */
20+
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
21+
.highlight .gi { color: #00A000 } /* Generic.Inserted */
22+
.highlight .go { color: #888888 } /* Generic.Output */
23+
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
24+
.highlight .gs { font-weight: bold } /* Generic.Strong */
25+
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
26+
.highlight .gt { color: #0044DD } /* Generic.Traceback */
27+
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
28+
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
29+
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
30+
.highlight .kp { color: #007020 } /* Keyword.Pseudo */
31+
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
32+
.highlight .kt { color: #902000 } /* Keyword.Type */
33+
.highlight .m { color: #40a070 } /* Literal.Number */
34+
.highlight .s { color: #4070a0 } /* Literal.String */
35+
.highlight .na { color: #4070a0 } /* Name.Attribute */
36+
.highlight .nb { color: #007020 } /* Name.Builtin */
37+
.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
38+
.highlight .no { color: #60add5 } /* Name.Constant */
39+
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
40+
.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
41+
.highlight .ne { color: #007020 } /* Name.Exception */
42+
.highlight .nf { color: #06287e } /* Name.Function */
43+
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
44+
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
45+
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
46+
.highlight .nv { color: #bb60d5 } /* Name.Variable */
47+
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
48+
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
49+
.highlight .mb { color: #40a070 } /* Literal.Number.Bin */
50+
.highlight .mf { color: #40a070 } /* Literal.Number.Float */
51+
.highlight .mh { color: #40a070 } /* Literal.Number.Hex */
52+
.highlight .mi { color: #40a070 } /* Literal.Number.Integer */
53+
.highlight .mo { color: #40a070 } /* Literal.Number.Oct */
54+
.highlight .sa { color: #4070a0 } /* Literal.String.Affix */
55+
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
56+
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
57+
.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */
58+
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
59+
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
60+
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
61+
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
62+
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
63+
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
64+
.highlight .sr { color: #235388 } /* Literal.String.Regex */
65+
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
66+
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
67+
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
68+
.highlight .fm { color: #06287e } /* Name.Function.Magic */
69+
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
70+
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
71+
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
72+
.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */
73+
.highlight .il { color: #40a070 } /* Literal.Number.Integer.Long */

learn/best_practices.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: page
3+
title: Fortran best practices
4+
permalink: /learn/best_practices
5+
---

0 commit comments

Comments
 (0)