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
mdbookbinary to render the docs in development. - This book has overridden the normal
index.hbsfile that comes withmdbookto add a Back to Blog button at the top of the documentation.- If changes to
mdbooklibrary 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.hbsfrom 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
mdbookis accessible on yourPATH. - Make sure
scpis accessible on yourPATH. - Make sure your
sshis 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