From f4c1e26aaf7847bbf1e4cb69aef47c37dc6d7f92 Mon Sep 17 00:00:00 2001 From: Sherin Date: Sun, 16 Feb 2025 18:41:31 +0200 Subject: [PATCH 1/3] Updated css --- docs/images/NVIDIA_Logo_MKdocs.svg | 12 ++++++++++++ docs/stylesheets/extra.css | 22 ++++++++++++++++++---- mkdocs.yml | 3 +-- overrides/main.html | 13 ++++++++----- 4 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 docs/images/NVIDIA_Logo_MKdocs.svg diff --git a/docs/images/NVIDIA_Logo_MKdocs.svg b/docs/images/NVIDIA_Logo_MKdocs.svg new file mode 100644 index 0000000000..856fdbabea --- /dev/null +++ b/docs/images/NVIDIA_Logo_MKdocs.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 99be34c55f..2714f1bc71 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -4,13 +4,14 @@ } */ .md-header { - background-color: rgb(0, 76, 117) !important; + background-color: #232837 !important; } .md-tabs { /* background-image: url(../assets/images/second-nav-blue.png); */ - background-color: rgb(0, 155, 223) !important; + background-color: #FAFAFA !important; font-weight: bold; + color: #000000 } /* Footer */ @@ -26,8 +27,21 @@ background-color: rgb(0, 76, 117) !important; border-top: 1px solid #1b2532 !important; } -.md-header-nav__button.md-logo img, .md-header-nav__button.md-logo svg { - width: 50px +.custom-logo-container { + display: flex; + align-items: center; + margin-right: auto; + padding-left: 10px; +} +.custom-logo { + height: 40px; /* Adjust size as needed */ + width: auto; +} +.logo-separator { + margin: 0 10px; + font-size: 20px; + font-weight: bold; + color: #ffffff; /* Adjust separator color */ } /* for the mobile nav bar */ diff --git a/mkdocs.yml b/mkdocs.yml index 0852877c71..0b4ac50ac0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,4 +1,4 @@ -site_name: Run:ai Documentation Library +site_name: Documentation site_url: https://docs.run.ai/ copyright: Copyright © 2020 - 2024 Run:ai repo_url: https://github.com/run-ai/docs/ @@ -9,7 +9,6 @@ theme: custom_dir: overrides language: en favicon: images/favicon.ico - logo: images/RUNAI-LOGO-DIGITAL-2C_WP.svg features: - navigation.indexes - navigation.tabs diff --git a/overrides/main.html b/overrides/main.html index 99d6792a58..4dc38d60d3 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -32,14 +32,17 @@ {% endblock %} -{% block extrahead %} - - - - +{% block site_nav %} +
+ + | + +
+ {{ super() }} {% endblock %} + {% block footer %} {% endblock %} From b0f6e6d4f00a68dbb6f4789ccb874d04c97cc357 Mon Sep 17 00:00:00 2001 From: Sherin Date: Sun, 16 Feb 2025 19:02:34 +0200 Subject: [PATCH 2/3] updates --- docs/stylesheets/extra.css | 7 ++++++- overrides/main.html | 17 ++++++++++------- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 2714f1bc71..cfcb28f77d 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -27,10 +27,15 @@ background-color: rgb(0, 76, 117) !important; border-top: 1px solid #1b2532 !important; } + +.md-header__button.md-logo { + display: none !important; +} + .custom-logo-container { display: flex; align-items: center; - margin-right: auto; + grid-column: 1; padding-left: 10px; } .custom-logo { diff --git a/overrides/main.html b/overrides/main.html index 4dc38d60d3..028a83ab06 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -32,17 +32,20 @@ {% endblock %} -{% block site_nav %} -
- - | - +{% block site_nav %} +
+ +
+ + | + +
+ + {{ super() }}
- {{ super() }} {% endblock %} - {% block footer %} {% endblock %} From 113c796518b2dc17a4bed5f3038da30af4cb5403 Mon Sep 17 00:00:00 2001 From: Sherin Date: Sun, 16 Feb 2025 19:10:28 +0200 Subject: [PATCH 3/3] Revert "updates" This reverts commit b0f6e6d4f00a68dbb6f4789ccb874d04c97cc357. --- docs/stylesheets/extra.css | 7 +------ overrides/main.html | 17 +++++++---------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index cfcb28f77d..2714f1bc71 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -27,15 +27,10 @@ background-color: rgb(0, 76, 117) !important; border-top: 1px solid #1b2532 !important; } - -.md-header__button.md-logo { - display: none !important; -} - .custom-logo-container { display: flex; align-items: center; - grid-column: 1; + margin-right: auto; padding-left: 10px; } .custom-logo { diff --git a/overrides/main.html b/overrides/main.html index 028a83ab06..4dc38d60d3 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -32,20 +32,17 @@ {% endblock %} - {% block site_nav %} -
- -
- - | - -
- - {{ super() }} + +
+ + | +
+ {{ super() }} {% endblock %} + {% block footer %} {% endblock %}