-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates local docs theme to match live with material theme (ddev#2840)
- Loading branch information
Showing
7 changed files
with
107 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# .readthedocs.yml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Build documentation with MkDocs | ||
mkdocs: | ||
configuration: mkdocs.yml | ||
|
||
python: | ||
version: 3.7 | ||
install: | ||
- requirements: requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
document.addEventListener("DOMContentLoaded", function() { | ||
load_navpane(); | ||
}); | ||
|
||
function load_navpane() { | ||
var width = window.innerWidth; | ||
if (width <= 1200) { | ||
return; | ||
} | ||
|
||
var nav = document.getElementsByClassName("md-nav"); | ||
for(var i = 0; i < nav.length; i++) { | ||
if (typeof nav.item(i).style === "undefined") { | ||
continue; | ||
} | ||
|
||
if (nav.item(i).getAttribute("data-md-level") && nav.item(i).getAttribute("data-md-component")) { | ||
nav.item(i).style.display = 'block'; | ||
nav.item(i).style.overflow = 'visible'; | ||
} | ||
} | ||
|
||
var nav = document.getElementsByClassName("md-nav__toggle"); | ||
for(var i = 0; i < nav.length; i++) { | ||
nav.item(i).checked = true; | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# This requirements.txt file is exclusively for mkdocs docfile creation, and doesn't have anything | ||
# specifically to do with ddev. | ||
Babel==2.8.0 | ||
click==7.1.2 | ||
future==0.18.2 | ||
gitdb==4.0.5 | ||
GitPython==3.1.7 | ||
htmlmin==0.1.12 | ||
Jinja2==2.11.2 | ||
joblib==0.16.0 | ||
jsmin==2.2.2 | ||
livereload==2.6.2 | ||
lunr==0.5.8 | ||
Markdown==3.2.2 | ||
MarkupSafe==1.1.1 | ||
mdx-truly-sane-lists==1.2 | ||
mkdocs==1.1.2 | ||
mkdocs-git-revision-date-localized-plugin==0.7 | ||
mkdocs-material==5.5.7 | ||
mkdocs-material-extensions==1.0 | ||
mkdocs-minify-plugin==0.3.0 | ||
nltk==3.5 | ||
Pygments==2.6.1 | ||
pymdown-extensions==8.0 | ||
pytz==2020.1 | ||
PyYAML==5.3.1 | ||
regex==2020.7.14 | ||
six==1.15.0 | ||
smmap==3.0.4 | ||
tornado==6.0.4 | ||
tqdm==4.48.2 |