diff --git a/doc.zih.tu-dresden.de/mkdocs.yml b/doc.zih.tu-dresden.de/mkdocs.yml index cf62658a7ce3dddbc7731805670683ada89bffe4..781fb30f99b523fb325bff32b4b0b543edf93647 100644 --- a/doc.zih.tu-dresden.de/mkdocs.yml +++ b/doc.zih.tu-dresden.de/mkdocs.yml @@ -146,7 +146,7 @@ site_dir: public site_url: https://gitlab.hrz.tu-chemnitz.de/hpcsupport/hpc-compendium # uncomment next 3 lines if link to repo should not be displayed in the navbar repo_name: GitLab hpcsupport/hpc-compendium -repo_url: https://gitlab.hrz.tu-chemnitz.de/hpcsupport/hpc-compend ium +repo_url: https://gitlab.hrz.tu-chemnitz.de/hpcsupport/hpc-compendium edit_uri: blob/master/docs/ # Configuration @@ -163,6 +163,7 @@ theme: favicon: assets/images/Logo_klein.png # logo in header and footer logo: assets/images/TUD_Logo_weiss_57.png + second_logo: assets/images/zih.png # extends base css extra_css: @@ -173,6 +174,8 @@ markdown_extensions: permalink: True extra: + homepage: https://tu-dresden.de + zih_homepage: https://tu-dresden.de/zih # links in footer footer: - link: https://doc.zih.tu-dresden.de/hpc-wiki/bin/view/Compendium/Impressum diff --git a/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png b/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png new file mode 100644 index 0000000000000000000000000000000000000000..85689088505099e90954c2ee93961e73d10d1ad2 Binary files /dev/null and b/doc.zih.tu-dresden.de/tud_theme/assets/images/zih.png differ diff --git a/doc.zih.tu-dresden.de/tud_theme/partials/header.html b/doc.zih.tu-dresden.de/tud_theme/partials/header.html index d9cf2bd2a9cd7d83f614cc4a3d6dbb2d48af1484..f3d15010cfe402b4c180c3dbb25f7ed90bafc268 100644 --- a/doc.zih.tu-dresden.de/tud_theme/partials/header.html +++ b/doc.zih.tu-dresden.de/tud_theme/partials/header.html @@ -67,5 +67,11 @@ {% include "partials/search.html" %} {% endif %} + <!-- Repository information --> + {% if config.repo_url %} + <div class="md-header__source"> + {% include "partials/source.html" %} + </div> + {% endif %} </nav> </header> \ No newline at end of file diff --git a/doc.zih.tu-dresden.de/tud_theme/partials/nav.html b/doc.zih.tu-dresden.de/tud_theme/partials/nav.html index 8c5910da645436dba1f98957d7c9eb9e9fc496cc..c52b5ac51a6139465fff77a8ed77eefe7ec96494 100644 --- a/doc.zih.tu-dresden.de/tud_theme/partials/nav.html +++ b/doc.zih.tu-dresden.de/tud_theme/partials/nav.html @@ -26,6 +26,16 @@ {% set class = class ~ " md-nav--integrated" %} {% endif %} + <a + href="{{ config.extra.zih_homepage | url }}" + title="{{ config.zih_name | e }}" + class="md-logo zih-logo" + aria-label="{{ config.zih_name }}" + data-md-component="logo" + > + <img src="{{ config.theme.second_logo | url }}" alt="logo" /> + </a> + <!-- Main navigation --> <nav class="{{ class }}" diff --git a/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css b/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css index f2a3f99ae689184ad730521ffae93bc9bfe3b4d9..1ef8355d6f54930555b223b5c9d6ebb20c6e3ffc 100644 --- a/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css +++ b/doc.zih.tu-dresden.de/tud_theme/stylesheets/extra.css @@ -63,11 +63,6 @@ strong { color: var(--tud-red-90); } -.md-nav__link:hover, -a:hover { - text-decoration: underline; - color: var(--tud-grey-100); -} .md-grid { max-width: 1600px; } @@ -84,17 +79,21 @@ a:hover { .md-header__button, .md-header__button.md-logo, .md-logo { - padding: 0; + padding: 0 0.6rem; margin: 0; } + .md-header__button.md-logo { width: 12.1rem; } -/* center top Logo */ -/* .md-header__button img { - display: block; - margin: 0 auto; -} */ + +.zih-logo img { + display: inline-block; + width: 70%; + height: auto; + margin: auto; + padding: 0 .6rem 1rem; +} .md-header__topic{ padding: 0 30px; @@ -136,6 +135,7 @@ a:hover { display: none; } } + @media screen and (min-width: 60rem) { .md-header__button.md-icon { display: none;