c5180656cc
Steps to building docs locally: 1. Install Jekyll 2. cd docs 3. bundle exec jekyll serve --incremental 4. open local docs site at http://127.0.0.1:4000/ * basic Jekyll site * Add docs to documentation site * Update javadoc to allow for error free builds * Remove docs for rust dependencies * Better display examples, about and contributing documentation for Mentat * Version docs
21 lines
765 B
JavaScript
21 lines
765 B
JavaScript
var themes = document.getElementById("theme-choices");
|
|
var themePicker = document.getElementById("theme-picker");
|
|
themePicker.onclick = function() {
|
|
if (themes.style.display === "block") {
|
|
themes.style.display = "none";
|
|
themePicker.style.borderBottomRightRadius = "3px";
|
|
themePicker.style.borderBottomLeftRadius = "3px";
|
|
} else {
|
|
themes.style.display = "block";
|
|
themePicker.style.borderBottomRightRadius = "0";
|
|
themePicker.style.borderBottomLeftRadius = "0";
|
|
}
|
|
};
|
|
["dark","light"].forEach(function(item) {
|
|
var but = document.createElement('button');
|
|
but.innerHTML = item;
|
|
but.onclick = function(el) {
|
|
switchTheme(currentTheme, mainTheme, item);
|
|
};
|
|
themes.appendChild(but);
|
|
});
|