diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..f14794e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2017 Manan Shah, SNAP Group + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..72a62be --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +TEMPDIR := $(shell mktemp -d -t tmp.XXX) + +publish: + echo 'publishing site!' + cp -r ./_site/* $(TEMPDIR) + cd $(TEMPDIR) && \ + ls -a && \ + git init && \ + git add . && \ + git commit -m 'publish site' && \ + git remote add origin https://https://github.com/snap-stanford/cs224w-notes.git && \ + git push origin master:refs/heads/gh-pages --force diff --git a/README.md b/README.md index 74332e4..5cff449 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,21 @@ # cs224w-notes -CS224W Course Notes + +CS224W course notes. + +## Contributing + +The notes are written in Markdown and are compiled into HTML using Jekyll. Please add your changes directly to the Markdown source code. This repo is configured without any extra Jekyll plugins so it can be compiled directly by GitHub Pages. Thus, any changes to the Markdown files will be automatically reflected in the live website. + +To make any changes to this repo, first fork this repo. Make the changes you want and push them to your own forked copy of this repo. Finally, go back to the GitHub website to create a pull request to bring your changes into the `snap-stanford/cs224w-notes` repo. + +If you want to test your changes locally before pushing your changes to the `master` branch, you can run Jekyll locally on your own machine. In order to install Jekyll, you can follow the instructions posted on their website (https://jekyllrb.com/docs/installation/). Then, do the following from the root of your cloned version of this repo: +1) Make whatever changes you want to the Markdown `.md` files. +2) `rm -r _site/` # remove the existing compiled site +3) `jekyll serve` # this creates a running server +4) Open your web browser to where the server is running and check the changes you made. + +### Notes about writing math equations + +- Start and end math equations with `$$` **for both inline and display equations**! To make a display equation, put one newline before the starting `$$` a newline after the ending `$$`. + +- Avoid vertical bars `|` in any inline math equations (ie. within a paragraph of text). Otherwise, the GitHub Markdown compiler interprets it as a table cell element (see GitHub Markdown spec [here](https://github.github.com/gfm/)). Instead, use one of `\mid`, `\vert`, `\lvert`, or `\rvert` instead. For double bar lines, write `\|` instead of `||`. \ No newline at end of file diff --git a/_config.yml b/_config.yml new file mode 100755 index 0000000..d3362f0 --- /dev/null +++ b/_config.yml @@ -0,0 +1,25 @@ +baseurl: /cs228-notes +title: Probabilistic graphical modeling course +subtitle: Lecture notes for Stanford cs228. +author: Volodymyr Kuleshov +simple_search: http://google.com/search +description: Lecture notes for Stanford cs228. +name: cs228-notes +markdown_ext: "markdown,mkdown,mkdn,mkd,md" +permalink: /articles/:short_year/:title +timezone: America/New_York +excerpt_separator: # you can specify your own separator, of course. +exclude: ['Gemfile', 'Gemfile.lock', 'Rakefile', 'README.md'] +post: + template: _post.txt + extension: md +page: + template: _page.txt + extension: md +editor: gvim +git: + branch: master +transfer: + command: rsync + settings: -av + source: _site/ diff --git a/_data/options.yml b/_data/options.yml new file mode 100755 index 0000000..c69f4b3 --- /dev/null +++ b/_data/options.yml @@ -0,0 +1,2 @@ +mathjax: true +lato_font_load: true \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100755 index 0000000..0aff788 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,6 @@ + diff --git a/_includes/fullwidth.html b/_includes/fullwidth.html new file mode 100755 index 0000000..e04d005 --- /dev/null +++ b/_includes/fullwidth.html @@ -0,0 +1,11 @@ +
+ {%- assign prefix2 = include.url | slice: 0, 2 -%} + {%- assign prefix7 = include.url | slice: 0, 7 -%} + {%- assign prefix8 = include.url | slice: 0, 8 -%} + {%- if prefix2 == '//' or prefix7 == 'http://' or prefix8 == 'https://' -%} + {{ include.caption }} + {%- else -%} + {{ include.caption }} + {%- endif -%} +
{{ include.caption }}
+
\ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100755 index 0000000..1222aec --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,33 @@ + + + + + + {% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %} + + + + + + {%- if site.data.options.lato_font_load -%} + + {%- endif -%} + + + {%- if site.data.options.mathjax -%} + + {%- endif -%} + + + + + + diff --git a/_includes/header.html b/_includes/header.html new file mode 100755 index 0000000..1eadc72 --- /dev/null +++ b/_includes/header.html @@ -0,0 +1,8 @@ + +
+ +
diff --git a/_includes/maincolumn_img.html b/_includes/maincolumn_img.html new file mode 100755 index 0000000..f27e4fc --- /dev/null +++ b/_includes/maincolumn_img.html @@ -0,0 +1,11 @@ +
+
{{ include.caption }}
+ {%- assign prefix2 = include.url | slice: 0, 2 -%} + {%- assign prefix7 = include.url | slice: 0, 7 -%} + {%- assign prefix8 = include.url | slice: 0, 8 -%} + {%- if prefix2 == '//' or prefix7 == 'http://' or prefix8 == 'https://' -%} + {{ include.caption }} + {%- else -%} + {{ include.caption }} + {%- endif -%} +
\ No newline at end of file diff --git a/_includes/marginfigure.html b/_includes/marginfigure.html new file mode 100755 index 0000000..c7f7776 --- /dev/null +++ b/_includes/marginfigure.html @@ -0,0 +1,14 @@ + + + + {%- assign prefix2 = include.url | slice: 0, 2 -%} + {%- assign prefix7 = include.url | slice: 0, 7 -%} + {%- assign prefix8 = include.url | slice: 0, 8 -%} + {%- if prefix2 == '//' or prefix7 == 'http://' or prefix8 == 'https://' -%} + {{ include.description }} + {%- else -%} + {{ include.description }} + {%- endif -%} +
+ {{ include.description }} +
\ No newline at end of file diff --git a/_includes/marginnote.html b/_includes/marginnote.html new file mode 100755 index 0000000..52e51e6 --- /dev/null +++ b/_includes/marginnote.html @@ -0,0 +1 @@ +{{ include.note }} \ No newline at end of file diff --git a/_includes/print-footer.html b/_includes/print-footer.html new file mode 100755 index 0000000..79805a9 --- /dev/null +++ b/_includes/print-footer.html @@ -0,0 +1 @@ +{% if page.date %}{{ page.title }} - {{ page.date | date: "%B %-d, %Y" }} - {{site.author}}{% else %}{{ page.title }} - {{site.author}}{% endif %} \ No newline at end of file diff --git a/_includes/sidenote.html b/_includes/sidenote.html new file mode 100755 index 0000000..dae76e5 --- /dev/null +++ b/_includes/sidenote.html @@ -0,0 +1 @@ +{{ include.note }} \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100755 index 0000000..a95ca6c --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,11 @@ + + + {% include head.html %} + + {% include header.html %} +
+ {{ content }} +
+ {% include footer.html %} + + diff --git a/_layouts/full-width.html b/_layouts/full-width.html new file mode 100755 index 0000000..73d685d --- /dev/null +++ b/_layouts/full-width.html @@ -0,0 +1,12 @@ + + + {% include head.html %} + + {% include header.html %} +
+ {{ content }} +
+ {% include print-footer.html %} + {% include footer.html %} + + diff --git a/_layouts/page.html b/_layouts/page.html new file mode 100755 index 0000000..aff31da --- /dev/null +++ b/_layouts/page.html @@ -0,0 +1,8 @@ +--- +layout: default +--- +

{{ page.title | capitalize }}

+

{{ page.date | date: "%B %-d, %Y" }}

+ + +{{ content }} diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100755 index 0000000..7e6f33a --- /dev/null +++ b/_layouts/post.html @@ -0,0 +1,35 @@ +--- +layout: default +--- +

{{ page.title | capitalize }}

+

{{ page.date | date: "%B %-d, %Y" }}

+ + + + + +{{ content }} diff --git a/_sass/_fonts.scss b/_sass/_fonts.scss new file mode 100755 index 0000000..469cf86 --- /dev/null +++ b/_sass/_fonts.scss @@ -0,0 +1,36 @@ +// Font imports file. If you don't want these fonts, comment out these and add your own into the fonts directory +// and point the src attribute to the file. + +@charset "UTF-8"; + +@font-face { + font-family: "et-book"; + src: url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot"); + src: url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg"); + font-weight: normal; + font-style: normal +} + +@font-face { + font-family: "et-book"; + src: url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot"); + src: url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg#etbookromanosf") format("svg"); + font-weight: normal; + font-style: italic +} + +@font-face { + font-family: "et-book"; + src: url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot"); + src: url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg#etbookromanosf") format("svg"); + font-weight: bold; + font-style: normal +} + +@font-face { + font-family: "et-book-roman-old-style"; + src: url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot"); + src: url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot?#iefix") format("embedded-opentype"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype"), url("../fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg#etbookromanosf") format("svg"); + font-weight: normal; + font-style: normal; +} diff --git a/_sass/_settings.scss b/_sass/_settings.scss new file mode 100755 index 0000000..168343a --- /dev/null +++ b/_sass/_settings.scss @@ -0,0 +1,14 @@ +/* This file contains all the constants for colors and font styles */ + +$body-font: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; +// Note that Gill Sans is the top of the stack and corresponds to what is used in Tufte's books +// However, it is not a free font, so if it is not present on the computer that is viewing the webpage +// The free Google 'Lato' font is used instead. It is similar. +$sans-font: "Gill Sans", "Gill Sans MT", "Lato", Calibri, sans-serif; +$code-font: Consolas, "Liberation Mono", Menlo, Courier, monospace; +$url-font: "Lucida Console", "Lucida Sans Typewriter", Monaco, "Bitstream Vera Sans Mono", monospace; +$text-color: #111; +$bg-color: #fffff8; +$contrast-color: #a00000; +$border-color: #333333; +$link-style: underline; // choices are 'color' or 'underline'. Default is color using $contrast-color set above diff --git a/_sass/_syntax-highlighting.scss b/_sass/_syntax-highlighting.scss new file mode 100755 index 0000000..f9f1484 --- /dev/null +++ b/_sass/_syntax-highlighting.scss @@ -0,0 +1,72 @@ +/** + * Syntax highlighting styles + */ +$spacing-unit: 30px; +%vertical-rhythm { + margin-bottom: $spacing-unit / 2; +} + +.highlight { + background: #fffff8; + @extend %vertical-rhythm; + + .c { color: #998; font-style: italic } // Comment + .err { color: #a61717; background-color: #e3d2d2 } // Error + .k { font-weight: bold } // Keyword + .o { font-weight: bold } // Operator + .cm { color: #998; font-style: italic } // Comment.Multiline + .cp { color: #999; font-weight: bold } // Comment.Preproc + .c1 { color: #998; font-style: italic } // Comment.Single + .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special + .gd { color: #000; background-color: #fdd } // Generic.Deleted + .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific + .ge { font-style: italic } // Generic.Emph + .gr { color: #a00 } // Generic.Error + .gh { color: #999 } // Generic.Heading + .gi { color: #000; background-color: #dfd } // Generic.Inserted + .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific + .go { color: #888 } // Generic.Output + .gp { color: #555 } // Generic.Prompt + .gs { font-weight: bold } // Generic.Strong + .gu { color: #aaa } // Generic.Subheading + .gt { color: #a00 } // Generic.Traceback + .kc { font-weight: bold } // Keyword.Constant + .kd { font-weight: bold } // Keyword.Declaration + .kp { font-weight: bold } // Keyword.Pseudo + .kr { font-weight: bold } // Keyword.Reserved + .kt { color: #458; font-weight: bold } // Keyword.Type + .m { color: #099 } // Literal.Number + .s { color: #d14 } // Literal.String + .na { color: #008080 } // Name.Attribute + .nb { color: #0086B3 } // Name.Builtin + .nc { color: #458; font-weight: bold } // Name.Class + .no { color: #008080 } // Name.Constant + .ni { color: #800080 } // Name.Entity + .ne { color: #900; font-weight: bold } // Name.Exception + .nf { color: #900; font-weight: bold } // Name.Function + .nn { color: #555 } // Name.Namespace + .nt { color: #000080 } // Name.Tag + .nv { color: #008080 } // Name.Variable + .ow { font-weight: bold } // Operator.Word + .w { color: #bbb } // Text.Whitespace + .mf { color: #099 } // Literal.Number.Float + .mh { color: #099 } // Literal.Number.Hex + .mi { color: #099 } // Literal.Number.Integer + .mo { color: #099 } // Literal.Number.Oct + .sb { color: #d14 } // Literal.String.Backtick + .sc { color: #d14 } // Literal.String.Char + .sd { color: #d14 } // Literal.String.Doc + .s2 { color: #d14 } // Literal.String.Double + .se { color: #d14 } // Literal.String.Escape + .sh { color: #d14 } // Literal.String.Heredoc + .si { color: #d14 } // Literal.String.Interpol + .sx { color: #d14 } // Literal.String.Other + .sr { color: #009926 } // Literal.String.Regex + .s1 { color: #d14 } // Literal.String.Single + .ss { color: #990073 } // Literal.String.Symbol + .bp { color: #999 } // Name.Builtin.Pseudo + .vc { color: #008080 } // Name.Variable.Class + .vg { color: #008080 } // Name.Variable.Global + .vi { color: #008080 } // Name.Variable.Instance + .il { color: #099 } // Literal.Number.Integer.Long +} diff --git a/assets/img/.DS_Store b/assets/img/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/assets/img/.DS_Store differ diff --git a/css/tufte.scss b/css/tufte.scss new file mode 100755 index 0000000..b06fd9c --- /dev/null +++ b/css/tufte.scss @@ -0,0 +1,585 @@ +--- +# this ensures Jekyll reads the file to be transformed into CSS later +# only Main files contain this front matter, not partials. +nav_exclude: true +--- +/*****************************************************************************/ +/* Tufte Jekyll blog theme +/* - source: https://github.com/clayh53/tufte-jekyll +/* - based on Tufte CSS by Dave Liepmann ( https://github.com/edwardtufte/tufte-css ) +/*****************************************************************************/ + +// Imports to create final + +@import "../_sass/fonts"; +@import "../_sass/settings"; +@import "../_sass/syntax-highlighting"; + +/* Changes from original tufte.css + +- use border-box instead of content-box for box-sizing +- change font size as browser width expands or contracts +- add MathJax styling +- removes underline from links and sets their color to $constrast-color, except for links that are inside

+- uses marginnote for maincolumn figure caption + +*/ + +// global resets +*, *:before, *:after { + margin: 0; + box-sizing: border-box; +} + +html, body { height: 100%; } + +/* clearfix hack after Cederholm (group class name) */ +.group:after { + content: ""; + display: table; + clear: both; +} + +// MathJax styling +.mathblock, .MJXc-display { + font-size: 1.5rem !important; + clear: left; +} + +// variable font size +html { + font-size: 11px; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +@media screen and (min-width: 800px){ html{ font-size: 12px; } } +@media screen and (min-width: 900px){ html{ font-size: 13px; } } +@media screen and (min-width: 1000px){ html{ font-size: 14px; } } +@media screen and (min-width: 1100px){ html{ font-size: 15px; } } + +body { + width: 100%; + padding-left: 12.5%; + max-width: calc(12.5% + 1400px); // max-width of content box = 1400px + margin: 0 auto; + font-family: $body-font; + background-color: $bg-color; + color: $text-color; + counter-reset: sidenote-counter; +} + +// changed +h1 { + font-weight: 400; + margin-top: 1.568rem; + margin-bottom: 1.568rem; + font-size: 2.5rem; + line-height: 0.784; +} + +h2 { + font-style: italic; + font-weight: 400; + margin-top: 4rem; /* 2.1rem */ + margin-bottom: 1.4rem; + font-size: 2.2rem; + line-height: 1; +} + +h3 { + font-style: italic; + font-weight: 400; + font-size: 1.7rem; + margin-top: 2rem; + margin-bottom: 1.4rem; + line-height: 1; +} + +p.subtitle { + font-style: italic; + margin-top: 1rem; + margin-bottom: 1rem; + font-size: 1.8rem; + display: block; + line-height: 1; +} + +article { + width: 55%; + padding: 5rem 0; +} + +/* ============================== + * Main Body Text + * ============================== */ + +p, ol, ul { + font-size: 1.4rem; + line-height: 2rem; + margin: 1.4rem 0; +} + +p { + padding-right: 0; + vertical-align: baseline; +} + +li { margin-bottom: 0.5em; } + +blockquote p, pre { padding-right: 0 10%; } + +blockquote * { font-size: 1.1rem; } +blockquote p { line-height: 1.75rem; } +blockquote footer { text-align: right; } + +/* ============================== + * Figures and Margins + * ============================== */ + +// the caption of a figure.maincolumn is never hidden +figure.maincolumn { margin-bottom: 3em; } +figure.maincolumn > figcaption { display: block !important; } + +figure.fullwidth figcaption { + float: left; + margin-right: 0%; + margin-left: 36%; +} + +img { max-width: 100%; } + +.sidenote, .marginnote { + // goal: width = 50% of

(= 27.5% of 87.5% ) + // - vw for constant width regardless of container + // - 336.875px = 24.0625% of 1400px (max-width of ) + width: 24.0625vw; + max-width: 336.875px; + + // goal: 5.5vw of spacing between main column and sidebar + // - assuming container has width of

, then + // 10% (spacing) + 50% (width) = 60% + margin-right: -60%; + + float: right; + clear: right; + font-size: 1rem; + + margin-top: 0; + margin-bottom: 1.4rem; + line-height: 1.4; + vertical-align: baseline; + position: relative; +} + +.sidenote-number { counter-increment: sidenote-counter; } +.sidenote-number:after, .sidenote:before { + font-family: et-book-roman-old-style; + color: $contrast-color; // added + position: relative; + vertical-align: baseline; +} +.sidenote-number:after { + content: counter(sidenote-counter); + font-size: 1rem; + top: -0.5rem; // use top instead of vertical-align to avoid affecting line-height + left: 0.1rem; +} +.sidenote:before { + // unicode for a non-breaking space + content: counter(sidenote-counter) ".\000a0"; +} + +// account for indentation of list items and blockquotes +blockquote .sidenote, blockquote .marginnote { + margin-right: -82.35%; // =70%/85% +} +li .sidenote, li .marginnote { + margin-right: -63.29%; // not quite right yet +} + +// margin toggle +// - hide if screen is wide enough +input.margin-toggle, +label.margin-toggle:not(.sidenote-number) { + display: none; +} + +/* ============================== + * Links + * ============================== */ + +// new link behavior +a { + color: $contrast-color; + text-decoration: none; +} + +/* Links: replicate underline that clears descenders */ +p > a:link, p > a:visited { color: inherit; } + +p > a:link { + background: -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(#fffff8, #fffff8), -webkit-linear-gradient(currentColor, currentColor); + background: linear-gradient(#fffff8, #fffff8), linear-gradient(#fffff8, #fffff8), linear-gradient(currentColor, currentColor); + -webkit-background-size: 0.05em 1px, 0.05em 1px, 1px 1px; + -moz-background-size: 0.05em 1px, 0.05em 1px, 1px 1px; + background-size: 0.05em 1px, 0.05em 1px, 1px 1px; + background-repeat: no-repeat, no-repeat, repeat-x; + text-shadow: 0.03em 0 #fffff8, -0.03em 0 #fffff8, 0 0.03em #fffff8, 0 -0.03em #fffff8, 0.06em 0 #fffff8, -0.06em 0 #fffff8, 0.09em 0 #fffff8, -0.09em 0 #fffff8, 0.12em 0 #fffff8, -0.12em 0 #fffff8, 0.15em 0 #fffff8, -0.15em 0 #fffff8; + background-position: 0% 93%, 100% 93%, 0% 93%; +} + +@media screen and (-webkit-min-device-pixel-ratio: 0) { + p > a:link { + background-position-y: 87%, 87%, 87%; + } +} + +p > a:link::selection, +p > a:link::-moz-selection { + text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe; + background: #b4d5fe; +} + +/* ============================== + * Code + * ============================== */ + +// Markdown code blocks (```, ~~~, or indented blocks) are always
+// Markdown code spans (`, ``) are always

+ +pre, code { + font-family: $code-font; + font-size: 1rem; + line-height: 1.42; + margin-top: 1.42rem; + -webkit-text-size-adjust: 100%; /* Prevent adjustments of font size after orientation changes in iOS. See https://github.com/edwardtufte/tufte-css/issues/81#issuecomment-261953409 */ } +pre { overflow-x: auto; } + +/* ============================== + * Miscellaneous + * ============================== */ + +.sans { + font-family: $sans-font; + letter-spacing: .03em; +} + +.fullwidth { max-width: 90%; } + +.full-width { + .sidenote, .sidenote-number, .marginnote { + display: none; + } +} + +span.newthought { + font-variant: small-caps; + font-size: 1.2em; + letter-spacing: 0.05rem; +} // added + +// helper classes +.contrast { color: $contrast-color; } + +.smaller { font-size: 80%; } + +hr.slender { + border: 0; + height: 1px; + margin-top: 1.4rem; + margin-bottom:1.4rem; + background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); + background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); + background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); + background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); +} + +/* ============================== + * Tables + * ============================== */ + +// Use booktabs style as default for all tables, including Markdown tables +table, table.booktabs { + width: auto; + margin: 0 auto; + border-spacing: 0px; + border-top: 2px solid $border-color; + border-bottom: 2px solid $border-color; +} + +th, .booktabs th { + border-bottom: 1px solid $border-color; + padding: 0.65ex 0.5em 0.4ex 0.5em; + font-weight: normal; + text-align: center; +} + +th, td { + font-size: 1.2rem; + line-height: 1.71428571; +} + +th, .booktabs th.cmid { + border-bottom: 1px solid lighten($border-color, 25%); +} + +.booktabs th.nocmid { + border-bottom: none; +} + +// add space between thead row and tbody +tr:first-child td, .booktabs tbody tr:first-child td { + padding-top: 0.65ex; +} + +td, .booktabs td { + padding-left: 0.5em; + padding-right: 0.5em; + text-align: left; +} + +caption, .booktabs caption { + font-size: 90%; + text-align: left; + width: auto; + margin-left: auto; + margin-right: auto; + margin-top: 1ex; + caption-side: top; +} + +.booktabs tbody tr td.l { text-align: left !important; } +.booktabs tbody tr td.c { text-align: center !important; } +.booktabs tbody tr td.r { text-align: right !important; } + +.table-caption { + float: right; + clear: right; + margin-right: -60%; + width: 50%; + margin-top: 0; + margin-bottom: 0; + font-size: 1.0rem; + line-height: 1.96; +} + +/* ============================== + * Small Screens + * ============================== */ + +@media (max-width: 760px) { + article { + width: 90%; + } + + figure { + max-width: 90%; + } + + figcaption, figure.fullwidth figcaption { + margin-right: 0%; + max-width: none; + } + + blockquote p, blockquote footer { + padding-right: 10%; + } + + label.margin-toggle:not(.sidenote-number) { + display: inline; + color: $contrast-color; + } + + blockquote .sidenote, + blockquote .marginnote, + li .sidenote, + li .marginnote, + .sidenote, + .marginnote { + // treat as-if inline + width: 100%; + max-width: 100%; + + display: none; + float: left; + padding: 0 5%; + margin: 1rem 0; + vertical-align: baseline; + } + + .margin-toggle:checked + .sidenote, + .margin-toggle:checked + .marginnote { + display: block; + } + + label { + cursor: pointer; + } + + .table-caption { + display: block; + float: right; + clear: both; + width: 98%; + margin-top: 1rem; + margin-bottom: 0.5rem; + margin-left: 1%; + margin-right: 1%; + vertical-align: baseline; + position: relative; + } + + div.table-wrapper, + table, + table.booktabs { + width: 85%; + } +} + +/* ============================== + * Nav and Footer Styling + * ============================== */ + +header > nav.group, body footer { + width: 95%; + padding-top: 2rem; +} + +// escaped unicode for the carats and then a space on active menu links +nav.group a.active:before{ + content:"\0003c\000a0"; +} +nav.group a.active:after{ + content:"\000a0\0003e"; +} + +header > nav a { + font-size: 1.2rem; + font-family: $sans-font; + letter-spacing: 0.15em; + text-transform: uppercase; + color: $contrast-color; + padding-top: 1.5rem; + display: inline-block; + float: left; + margin-top: 0; + margin-bottom: 0; + padding-right: 2rem; + vertical-align: baseline; +} + +ul.footer-links, .credits { + list-style: none; + text-align: center; + margin: 0 auto; +} +ul.footer-links li { + display: inline; + padding: 0.5rem 0.25rem; +} +.credits { + padding: 1rem 0rem; +} + +// change font color for credit links in footer +.credits{ + font-family: $sans-font; + & a { + color: $contrast-color; + } +} + +/* ============================== + * Full-width page styling + * ============================== */ + +body.full-width { + width: 90%; + padding: 0 5%; +} + +.full-width article p { + width: 90%; +} + +/* ============================== + * @media print / screen + * ============================== */ + +// do not display a print-footer for screen display +@media screen { + .print-footer{ display: none; } +} + +@media print { + *, *:before, *:after { + background: transparent !important; + color: #000 !important; // Black prints faster + box-shadow: none !important; + text-shadow: none !important; + } + + @page { + margin: 0.75in 0.5in 0.75in 0.5in; + orphans: 4; + widows: 2; + } + + body { + font-size: 12pt; + padding-left: 5%; + max-width: calc(5% + 1400px); // max-width of content box = 1400px + } + + article { + padding: 0; + } + + /* this only applies when @media width > 760px */ + .sidenote, .marginnote { + // goal: width = 50% of

(= 27.5% of 95% ) + // - vw for constant width regardless of container + // - 365.75px = 26.125% of 1400px (max-width of ) + width: 26.125vw; + max-width: 365.75px; + } + + html body span.print-footer { + font-family: $sans-font; + font-size: 9pt; + margin-top: 22.4pt; + padding-top: 4pt; + border-top: 1px solid #000; + } + + thead { + display: table-header-group; + } + + tr, + img { + break-inside: avoid; + } + + article h2, article h2 h3, article h3, article h3 h4, article h4, article h4 h5 { + break-after: avoid; + } + + body header, body footer { + display: none; + } +} + +@media print and (max-width: 760px) { + blockquote .sidenote, + blockquote .marginnote, + li .sidenote, + li .marginnote, + .sidenote, + .marginnote { + // treat as-if inline + width: 100%; + max-width: 100%; + display: block; + } +} diff --git a/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.eot b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.eot new file mode 100755 index 0000000..3610c74 Binary files /dev/null and b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.eot differ diff --git a/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.svg b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.svg new file mode 100755 index 0000000..254f4cc --- /dev/null +++ b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.ttf b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.ttf new file mode 100755 index 0000000..9798360 Binary files /dev/null and b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.ttf differ diff --git a/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.woff b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.woff new file mode 100755 index 0000000..c6685a1 Binary files /dev/null and b/fonts/et-bembo/et-bembo-bold-line-figures/et-bembo-bold-line-figures.woff differ diff --git a/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.eot b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.eot new file mode 100755 index 0000000..88a6c74 Binary files /dev/null and b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.eot differ diff --git a/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.svg b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.svg new file mode 100755 index 0000000..881a6bd --- /dev/null +++ b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.ttf b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.ttf new file mode 100755 index 0000000..9da91de Binary files /dev/null and b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.ttf differ diff --git a/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.woff b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.woff new file mode 100755 index 0000000..b0e5b68 Binary files /dev/null and b/fonts/et-bembo/et-bembo-display-italic-old-style-figures/et-bembo-display-italic-old-style-figures.woff differ diff --git a/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.eot b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.eot new file mode 100755 index 0000000..22fff5b Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.eot differ diff --git a/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.svg b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.svg new file mode 100755 index 0000000..c5013b3 --- /dev/null +++ b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.ttf b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.ttf new file mode 100755 index 0000000..daceffb Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.ttf differ diff --git a/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.woff b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.woff new file mode 100755 index 0000000..440ae04 Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-line-figures/et-bembo-roman-line-figures.woff differ diff --git a/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.eot b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.eot new file mode 100755 index 0000000..4ef9973 Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.eot differ diff --git a/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.svg b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.svg new file mode 100755 index 0000000..24cf3ef --- /dev/null +++ b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.ttf b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.ttf new file mode 100755 index 0000000..5ae5198 Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.ttf differ diff --git a/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.woff b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.woff new file mode 100755 index 0000000..10eb336 Binary files /dev/null and b/fonts/et-bembo/et-bembo-roman-old-style-figures/et-bembo-roman-old-style-figures.woff differ diff --git a/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.eot b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.eot new file mode 100755 index 0000000..bcc6f9d Binary files /dev/null and b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.eot differ diff --git a/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.svg b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.svg new file mode 100755 index 0000000..a6c168a --- /dev/null +++ b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.ttf b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.ttf new file mode 100755 index 0000000..725af42 Binary files /dev/null and b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.ttf differ diff --git a/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.woff b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.woff new file mode 100755 index 0000000..5753ca4 Binary files /dev/null and b/fonts/et-bembo/et-bembo-semi-bold-old-style-figures/et-bembo-semi-bold-old-style-figures.woff differ diff --git a/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot new file mode 100755 index 0000000..3610c74 Binary files /dev/null and b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.eot differ diff --git a/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg new file mode 100755 index 0000000..254f4cc --- /dev/null +++ b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf new file mode 100755 index 0000000..9798360 Binary files /dev/null and b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.ttf differ diff --git a/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff new file mode 100755 index 0000000..c6685a1 Binary files /dev/null and b/fonts/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff differ diff --git a/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot new file mode 100755 index 0000000..88a6c74 Binary files /dev/null and b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.eot differ diff --git a/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg new file mode 100755 index 0000000..881a6bd --- /dev/null +++ b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf new file mode 100755 index 0000000..9da91de Binary files /dev/null and b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.ttf differ diff --git a/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff new file mode 100755 index 0000000..b0e5b68 Binary files /dev/null and b/fonts/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff differ diff --git a/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot new file mode 100755 index 0000000..22fff5b Binary files /dev/null and b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot differ diff --git a/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg new file mode 100755 index 0000000..c5013b3 --- /dev/null +++ b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf new file mode 100755 index 0000000..daceffb Binary files /dev/null and b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf differ diff --git a/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff new file mode 100755 index 0000000..440ae04 Binary files /dev/null and b/fonts/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff differ diff --git a/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot new file mode 100755 index 0000000..4ef9973 Binary files /dev/null and b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.eot differ diff --git a/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg new file mode 100755 index 0000000..24cf3ef --- /dev/null +++ b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf new file mode 100755 index 0000000..5ae5198 Binary files /dev/null and b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf differ diff --git a/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff new file mode 100755 index 0000000..10eb336 Binary files /dev/null and b/fonts/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff differ diff --git a/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.eot b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.eot new file mode 100755 index 0000000..bcc6f9d Binary files /dev/null and b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.eot differ diff --git a/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg new file mode 100755 index 0000000..a6c168a --- /dev/null +++ b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.ttf b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.ttf new file mode 100755 index 0000000..725af42 Binary files /dev/null and b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.ttf differ diff --git a/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.woff b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.woff new file mode 100755 index 0000000..5753ca4 Binary files /dev/null and b/fonts/et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.woff differ diff --git a/fonts/icomoon.eot b/fonts/icomoon.eot new file mode 100755 index 0000000..d2d3d08 Binary files /dev/null and b/fonts/icomoon.eot differ diff --git a/fonts/icomoon.svg b/fonts/icomoon.svg new file mode 100755 index 0000000..1528c3f --- /dev/null +++ b/fonts/icomoon.svg @@ -0,0 +1,26 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts/icomoon.ttf b/fonts/icomoon.ttf new file mode 100755 index 0000000..dc51455 Binary files /dev/null and b/fonts/icomoon.ttf differ diff --git a/fonts/icomoon.woff b/fonts/icomoon.woff new file mode 100755 index 0000000..e6d9d95 Binary files /dev/null and b/fonts/icomoon.woff differ diff --git a/index.md b/index.md new file mode 100755 index 0000000..8cd5fa1 --- /dev/null +++ b/index.md @@ -0,0 +1,36 @@ +--- +layout: post +title: Contents +--- +These notes form a concise introductory course on machine learning with large-scale graphs. They mirror the topics topics covered by Stanford [CS224W](https://cs224w.stanford.edu), and are written by the CS 224W TAs. +{% include marginnote.html id='mn-construction' note='The notes are still under construction! They will be written up as lectures continue to progress. If you find any typos, please let us know, or submit a pull request with your fixes to our [GitHub repository](https://github.com/snap-stanford/cs224w-notes).'%} + +You too may help make these notes better by submitting your improvements to us via [GitHub](https://github.com/ermongroup/cs228-notes). Note that submitting substantial improvements will result in *bonus points* being added to your overall grade! + +Starting with the Fall 2019 offering of CS 224W, the course covers four broad topic areas for understanding and effectively learning representations from large-scale networks: preliminaries, network methods, and machine learning with networks. Subtopics within each area correspond to individual lecture topics. + +## Preliminaries + +1. [Introduction and Graph Structure](preliminaries/introduction-graph-structure): Basic background for graph structure and representation +2. [Measuring Networks and Random Graphs](): Network properties, random graphs, and small-world networks +3. [Motifs and Graphlets](): Motifs, graphlets, orbits, ESU + +## Network Methods + +1. [Structural Roles in Networks](): RolX, Granovetter, the Louvain algorithm +2. [Spectral Clustering](): Graph partitions and cuts, the Laplacian, and motif clustering +3. [Influence Maximization](): Influential sets, submodularity, hill climbing +4. [Outbreak Detection](): CELF, lazy hill climbing +5. [Link Analysis](): PageRank and SimRank +6. [Network Effects and Cascading Behavior](): Decision-based diffusion, probabilistic contagion, SEIZ +7. [Network Robustness](): Power laws, preferential attachment +8. [Network Evolution](): Densification, forest fire, temporal networks with PageRank +9. [Knowledge Graphs and Metapaths](): Metapaths, reasoning and completion of KGs + + +## Machine Learning with Networks + +1. [Message Passing and Node Classification](): Label propagation and collective classification +2. [Node Representation Learning](): Shallow, DeepWalk, TransE, node2vec, and t-SNE +3. [Graph Neural Networks](): GCN, SAGE, GAT +4. [Generative Models for Graphs](): Variational Autoencoders, GraphRNN, Molecule GAN diff --git a/preliminaries/introduction-graph-structure.md b/preliminaries/introduction-graph-structure.md new file mode 100644 index 0000000..053d889 --- /dev/null +++ b/preliminaries/introduction-graph-structure.md @@ -0,0 +1,9 @@ +--- +layout: post +title: Introduction +--- +Under construction! + +
+ +|[Index](../) | [Previous](../) | [Next](../)| \ No newline at end of file