Tweak docs styling, add serve-docs script
This commit is contained in:
parent
5b18fe672b
commit
10dcf050d6
3 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
4
script/serve-docs
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd docs
|
||||
bundle exec jekyll serve
|
||||
Loading…
Add table
Add a link
Reference in a new issue