These are a collection of random facts and things I know about and/or took notes.
Hosted over at https://chrisdoescoding.com/kb.
- Use the latest
mdbook
binary to render the docs in development. - This book has overridden the normal
index.hbs
file that comes withmdbook
to add a Back to Blog button at the top of the documentation.- If changes to
mdbook
library occur in later versions, you may need to re-work the files index.hbs and custom.css. - I'd recommend just copying the newest
index.hbs
from mdBook and implementing the button from scratch.
- If changes to
Use the publish.sh
script to scp
the static files to your remote server.
- Make sure
mdbook
is accessible on yourPATH
. - Make sure
scp
is accessible on yourPATH
. - Make sure your
ssh
is set up to reach your remote server. - Run the following command:
./publish.sh --scp-loc /path/to/destination/on/remote --hostname /hostname/configured/through/ssh
- The hostname should either be the exact IP address of your remote server or a hostname configured in
~/.ssh/config
. - MathJax Cheatsheet