diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2016-07-24 19:13:40 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2016-07-24 19:13:40 -0400 |
| commit | b1900d6ebcc39738885f90fa9f18b28206a74947 (patch) | |
| tree | 2d4975fe0a347af7101200c48e4a8df82ca780ae /mkdocs-material/src/drawer.html | |
| parent | 754ea372c66afad144988fcab2d7cf1fdbb3f2fc (diff) | |
very early checkin of template for user-docs, only a few pages filled out
Diffstat (limited to 'mkdocs-material/src/drawer.html')
| -rw-r--r-- | mkdocs-material/src/drawer.html | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/mkdocs-material/src/drawer.html b/mkdocs-material/src/drawer.html new file mode 100644 index 00000000..ac7f7933 --- /dev/null +++ b/mkdocs-material/src/drawer.html @@ -0,0 +1,109 @@ +<!-- Navigation --> +<nav aria-label="Navigation"> + {% set home = repo_url | default("/", true) %} + + <!-- Project information --> + <a href="{{ home }}" class="project"> + + <!-- Name and logo --> + <div class="banner"> + + <!-- Version --> + {% if config.extra.logo %} + <div class="logo"> + <img src="{{ base_url }}/{{ config.extra.logo }}" /> + </div> + {% endif %} + + <!-- Project name and verison --> + <div class="name"> + <strong> + {{ site_name }} + <span class="version"> + {{ config.extra.version }} + </span> + </strong> + + <!-- Project repository name --> + {% if repo_id %} + <br /> + {{ repo_id }} + {% endif %} + </div> + </div> + </a> + + <!-- Repository and table of contents --> + <div class="scrollable"> + <div class="wrapper"> + + <!-- Repository --> + {% if repo_name == "GitHub" and repo_url %} + <ul class="repo"> + <li class="repo-download"> + {% if config.extra.github and config.extra.github.download_release %} + {% set version = config.extra.version | default("../latest") %} + <a href="{{ repo_url }}/releases/tag/{{ version }}" target="_blank" + title="Download" data-action="download"> + <i class="icon icon-download"></i> Download + </a> + {% else %} + {% set version = config.extra.version | default("master") %} + <a href="{{ repo_url }}/archive/{{ version }}.zip" target="_blank" + title="Download" data-action="download"> + <i class="icon icon-download"></i> Download + </a> + {% endif %} + </li> + <li class="repo-stars"> + <a href="{{ repo_url }}/stargazers" target="_blank" + title="Stargazers" data-action="star"> + <i class="icon icon-star"></i> Stars + <span class="count">–</span> + </a> + </li> + </ul> + <hr /> + {% endif %} + + <!-- Table of contents --> + <div class="toc"> + <ul> + {% for nav_item in nav %} + {% include "nav.html" %} + {% endfor %} + </ul> + + <!-- Author-related links --> + {% if config.extra.author %} + <hr /> + <span class="section">The author</span> + <ul> + + <!-- Twitter --> + {% if config.extra.author.twitter %} + {% set author = config.extra.author.twitter %} + <li> + <a href="https://twitter.com/{{ author }}" target="_blank" + title="@{{ author }} on Twitter"> + @{{ author }} on Twitter + </a> + </li> + {% endif %} + + <!-- GitHub --> + {% if config.extra.author.github %} + {% set author = config.extra.author.github %} + <li> + <a href="https://github.com/{{ author }}" target="_blank" + title="@{{ author }} on GitHub"> + @{{ author }} on GitHub + </a> + </li> + {% endif %} + </ul> + {% endif %} + </div> + </div> + </div> +</nav>
\ No newline at end of file |
