Skip to content

Updated css #1401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/images/NVIDIA_Logo_MKdocs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 18 additions & 4 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand All @@ -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 */
Expand Down
3 changes: 1 addition & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -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/
Expand All @@ -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
Expand Down
13 changes: 8 additions & 5 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@
<!-- End of Swagger custom style -->
{% endblock %}

{% block extrahead %}

<meta property="og:title" content="{{page.title}}" />
<meta property="og:description" content="{% for toc_item in page.toc %} | {{ toc_item.title }} | {% for toc_item in toc_item.children %} {{ toc_item.title }}. {% endfor %} {% endfor %}" />
<meta property="og:image" content="https://docs.run.ai/home/img/RUNAI-LOGO-DIGITAL-2C_BP.png"/>
{% block site_nav %}

<div class="custom-logo-container">
<img src="../docs/images/NVIDIA_Logo_MKdocs.svg class="custom-logo">
<span class="logo-separator">|</span>
<img src="../docs/images/RUNAI-LOGO-DIGITAL-2C_WP.svg" class="custom-logo">
</div>
{{ super() }}
{% endblock %}


{% block footer %}

{% endblock %}
Expand Down