Skip to content

Commit a95936e

Browse files
add proto-website
1 parent 54fdfbc commit a95936e

339 files changed

Lines changed: 3612 additions & 0 deletions

File tree

Some content is hidden

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

‎.github/workflows/Deploy.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- master
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
persist-credentials: false
17+
# NOTE: Python is necessary for the pre-rendering (minification) step
18+
- name: Install python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.8'
22+
# NOTE: Here you can install dependencies such as matplotlib if you use
23+
# packages such as PyPlot.
24+
# - run: pip install matplotlib
25+
- name: Install Julia
26+
uses: julia-actions/setup-julia@v1
27+
with:
28+
version: '1' # Latest stable Julia release.
29+
# NOTE
30+
# The steps below ensure that NodeJS and Franklin are loaded then it
31+
# installs highlight.js which is needed for the prerendering step
32+
# (code highlighting + katex prerendering).
33+
# Then the environment is activated and instantiated to install all
34+
# Julia packages which may be required to successfully build your site.
35+
# The last line should be `optimize()` though you may want to give it
36+
# specific arguments, see the documentation or ?optimize in the REPL.
37+
- run: julia -e '
38+
using Pkg; Pkg.activate("."); Pkg.instantiate();
39+
using NodeJS; run(`$(npm_cmd()) install highlight.js`);
40+
using Franklin;
41+
optimize()'
42+
- name: Build and Deploy
43+
uses: JamesIves/github-pages-deploy-action@releases/v3
44+
with:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
BRANCH: gh-pages
47+
FOLDER: __site

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
__site/
2+
.DS_Store
3+
node_modules/
4+
package-lock.json

‎404.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@def title = "404"
2+
3+
~~~
4+
<div style="margin-top: 40px; font-size: 40px; text-align: center;">
5+
6+
<br>
7+
8+
<div style="font-weight: bold;">
9+
404
10+
</div>
11+
12+
<br>
13+
<br>
14+
15+
The requested page was not found
16+
17+
<br>
18+
<br>
19+
<br>
20+
<br>
21+
22+
<div style="margin-bottom: 300px; font-size: 24px">
23+
<a href="/">Click here</a> to go back to the homepage.
24+
</div>
25+
26+
</div>
27+
~~~

‎Project.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[deps]
2+
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
3+
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"

‎_assets/favicon.png‎

1.26 KB
Loading

‎_assets/hamburger.svg‎

Lines changed: 1 addition & 0 deletions
Loading

‎_css/basic.css‎

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
/* ==================================================================
2+
Header and Nav
3+
================================================================== */
4+
5+
nav {
6+
width: 64%;
7+
display: inline-block;
8+
}
9+
10+
nav ul {
11+
padding-left: 0;
12+
margin-top: 0;
13+
margin-bottom: 0;
14+
}
15+
16+
nav li {
17+
display: inline-block;
18+
}
19+
20+
nav li a {
21+
color: black; /* #004de6; */
22+
text-decoration: none;
23+
font-size: 18px;
24+
font-weight: bold;
25+
display: inline-block;
26+
float: center;
27+
padding-top: 10px;
28+
padding-right: 2px;
29+
padding-left: 2px;
30+
padding-bottom: 5px;
31+
margin-left: 7px;
32+
margin-right: 7px;
33+
/* border-bottom: 2px solid #4c9cf1; */
34+
transition: color 0.3s ease;
35+
}
36+
37+
header {
38+
text-align: right;
39+
margin-top: 50px;
40+
margin-bottom: 50px;
41+
display: flex;
42+
align-items: center;
43+
}
44+
45+
header .blog-name {
46+
width: 35%;
47+
display: inline-block;
48+
text-align: left;
49+
font-size: 18px; /* 18px; */
50+
font-weight: bold;
51+
font-family: "Lucida Console", Helvetica, monospace;
52+
padding-top: 10px;
53+
}
54+
55+
header .blog-name a {
56+
color: red; /* #a6a2a0; */
57+
text-decoration: none;
58+
}
59+
60+
header li a:hover {
61+
color: gray; /* black; */
62+
/* border-bottom: 2px solid black; */
63+
}
64+
65+
#menu-icon {
66+
display: none;
67+
}
68+
69+
@media (max-width: 480px) {
70+
header {
71+
padding-left: 6%;
72+
padding-right: 6%;
73+
}
74+
}
75+
76+
@media (min-width: 481px) {
77+
header {
78+
padding-left: 12.5%;
79+
padding-right: 12.5%;
80+
}
81+
}
82+
83+
/* wide display: enforce maximum width of header to match content */
84+
@media (min-width: 940px) {
85+
header {
86+
width: 1000px; /* 705px; */
87+
margin-left: auto;
88+
margin-right: auto;
89+
}
90+
}
91+
92+
/*
93+
medium display: nav goes under name
94+
*/
95+
@media (max-width: 760px) {
96+
header { display: block; }
97+
98+
header .blog-name {
99+
display: block;
100+
width: 100%;
101+
padding-bottom: 10px;
102+
}
103+
104+
nav {
105+
width: 100%;
106+
}
107+
}
108+
109+
/*
110+
narrow display: collapse the header (don't show the menu items)
111+
instead, display a burger menu.
112+
*/
113+
@media (max-width: 500px) {
114+
header {
115+
height: 35px;
116+
display: flex;
117+
align-items: center;
118+
}
119+
120+
header .blog-name {
121+
display: inline-block;
122+
width: 70%;
123+
}
124+
125+
nav {
126+
display: inline-block;
127+
width: 27%;
128+
}
129+
130+
nav ul,
131+
nav:active ul {
132+
display: none;
133+
position: absolute;
134+
135+
/* padding: 20px; */
136+
background: #fff;
137+
border: 1px solid #444;
138+
right: 50px;
139+
top: 60px;
140+
width: 30%;
141+
border-radius: 4px 0 4px 4px;
142+
z-index: 1;
143+
}
144+
145+
nav li {
146+
text-align: left;
147+
display: block;
148+
padding: 0;
149+
margin: 0;
150+
}
151+
header li a { border-bottom: none; }
152+
header li a:hover { border-bottom: none; }
153+
154+
nav:hover ul {
155+
display: block;
156+
}
157+
158+
#menu-icon {
159+
display: inline-block;
160+
margin-right: 10px;
161+
margin-top: 5px;
162+
}
163+
}
164+
165+
table {
166+
line-height: 1em;
167+
margin-left: auto;
168+
margin-right: auto;
169+
border-collapse: collapse;
170+
text-align: center;
171+
margin-bottom: 1.5em;
172+
}
173+
174+
tr:first-of-type {
175+
background: #eae9f4;
176+
}
177+
178+
tr:first-of-type > th {
179+
text-align: center;
180+
}
181+
182+
tr,
183+
th,
184+
td {
185+
padding: 10px;
186+
border: 1px solid lightgray;
187+
}
188+
189+
table tbody tr td {
190+
border: 1px solid lightgray;
191+
}

0 commit comments

Comments
 (0)