Skip to content

Commit 30a97d9

Browse files
committed
mkdocs material update with katakoda and google analytics
1 parent 06aedd5 commit 30a97d9

File tree

7 files changed

+105
-6
lines changed

7 files changed

+105
-6
lines changed

docs/Syllabus/Syllabus.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,34 @@ This course does not require a coursebook. If necessary, you can use the followi
118118
[Mathematics in R Markdown](https://rpruim.github.io/s341/S19/from-class/MathinRmd.html)
119119

120120
$$
121-
a_n = \text{Homework or Exam Points}
122-
123-
121+
\operatorname{a_n} = \text{Homework or Exam Points}
124122
$$
125123

126124
$$
127-
HW_n = Homework or Project Points
125+
\operatorname{HW_n} = Homework or Project Points
128126
$$
129127

130128
$$
131129
\sum_{n=1}^{10} n^2
132130
$$
131+
132+
133+
<script src="//katacoda.com/embed.js"></script>
134+
<div id="my-element-1"
135+
style="display:inline; height:1000px"
136+
data-katacoda-env="node"
137+
data-katacoda-layout="editor-terminal"
138+
data-katacoda-port="3000"
139+
data-katacoda-filename="app.js" style="border: 2px solid #ccc;" >
140+
var http = require('http');
141+
var requestListener = function (req, res) {
142+
res.writeHead(200);
143+
res.end('Hello, World!');
144+
}
145+
146+
var server = http.createServer(requestListener);
147+
server.listen(3000, function() { console.log("Listening on port 3000")});
148+
</div>
149+
</div>
150+
151+
87.4 KB
Loading

docs/images/favicon.png

334 KB
Loading

docs/javascripts/mathjax.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.typesetPromise()
16+
})

mkdocs.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
1-
site_name: ce103 algorithms and programming I
1+
site_name: "ce103 algorithms and programming I"
22
theme:
3-
name: readthedocs
3+
name: material
4+
logo: assets/images/favicon.png
5+
favicon: images/favicon.png
6+
palette:
7+
primary: teal
8+
accent: pink
9+
language: en
10+
feature:
11+
tabs: true
12+
font:
13+
text: Roboto
14+
15+
markdown_extensions:
16+
- pymdownx.arithmatex:
17+
generic: true
18+
19+
extra_javascript:
20+
- javascripts/mathjax.js
21+
- https://polyfill.io/v3/polyfill.min.js?features=es6
22+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
23+
24+
extra:
25+
analytics:
26+
provider: google
27+
property: G-DGZ815VN23
28+
extra:
29+
analytics:
30+
feedback:
31+
title: Was this page helpful?
32+
ratings:
33+
- icon: material/emoticon-happy-outline
34+
name: This page was helpful
35+
data: 1
36+
note: >-
37+
Thanks for your feedback!
38+
- icon: material/emoticon-sad-outline
39+
name: This page could be improved
40+
data: 0
41+
note: >-
42+
Thanks for your feedback! Help us improve this page by
43+
using our <a href="..." target=_blank>feedback form</a>.
44+
extra:
45+
consent:
46+
title: Cookie consent
47+
description: >-
48+
We use cookies to recognize your repeated visits and preferences, as well
49+
as to measure the effectiveness of our documentation and whether users
50+
find what they're searching for. With your consent, you're helping us to
51+
make our documentation better.
52+
extra:
53+
consent:
54+
cookies:
55+
analytics: Google Analytics
56+
custom: Custom cookie
57+

mkdocs_plugin_lists.url

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[{000214A0-0000-0000-C000-000000000046}]
2+
Prop3=19,11
3+
[InternetShortcut]
4+
IDList=
5+
URL=https://github.com/mkdocs/mkdocs/wiki/MkDocs-Plugins

mkdocs_remote.url

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[{000214A0-0000-0000-C000-000000000046}]
2+
Prop3=19,11
3+
[InternetShortcut]
4+
IDList=
5+
URL=https://ucoruh.github.io/ce103-algorithms-and-programming-I/

0 commit comments

Comments
 (0)