You can now use <aside> with the classes
- warning
- success
- notice
to add little colored notes to your API docs! Examples are in
source/index.md.
Also, note that if you have a custom variables.scss, you'll have
to add
+$aside-notice-bg: #8fbcd4;
+$aside-warning-bg: #c97a7e;
+$aside-success-bg: #6ac174;
to it.
This bug occured if the final code sample extended beyond the
explanation at the bottom of the page.
To fix it, I simply made the background color of body a soft
blue.
Now, Slate will use localStorage to track the last selected
language, so if the user visits again with no language in the URL,
they will be redirected to the last language they used.
This update also fixes a bug with how the layout inserts the
language names into the javascript. Previously, they would be,
(for some inane reason) arrays within arrays. It is now just
an array. Whoever wrote that previous code was clearly a fool.
Now you can add links to the bottom of your table of contents!
Documentation has also been changed to reflect this new
feature.
Please note that if you have a custom variables.scss, you'll have
to merge in this line:
$nav-footer-border-color: #666;
Now, if no languages are specified, the language selection bar simply doesn't appear.
It has also been renamed from "languages" to "language_tabs".
Additionally, now language names default to the markdown name. They can still be overridden by the languagename:Display Name syntax.
This commit has two benefits:
- Now, copying the URL will actually copy the current language as well. You don't need to think to add a language
- If a language moves objects on the page down, the tocify header location cache will not be invalid, since it is generated on page load. Therefore, if code moves some elements down, since the page is reloaded, the cache will also be regenerated, to reflect the real locations of the headers.