Tweak docs styling, add serve-docs script

This commit is contained in:
Max Brunsfeld 2018-06-12 17:58:38 -07:00
parent 5b18fe672b
commit 10dcf050d6
3 changed files with 7 additions and 3 deletions

View file

@ -113,7 +113,7 @@
);
});
if (document.body.scrollHeight > window.innerHeight) {
if (document.body.scrollHeight > window.innerHeight + 500) {
$(document.body).scrollspy({
target: '#current-page-table-of-contents',
offset: 40

View file

@ -9,8 +9,7 @@ $sidebar-transition: left 0.25s;
$container-width: 1024px;
body {
overflow-y: scroll;
overflow-x: hidden;
overflow: scroll;
}
#container {
@ -25,6 +24,7 @@ body {
#sidebar {
position: fixed;
background: white;
top: 0;
bottom: 0;
width: $sidebar-width;

4
script/serve-docs Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cd docs
bundle exec jekyll serve