Add docs switch menu (#881)
Fixes https://github.com/minio/docs/issues/842 Also made some changes to the dark-mode/read-mode icons to maintain the consistency with KES docs UI. **Preview:** <img width="627" alt="Screenshot 2023-06-15 at 14 19 32" src="https://github.com/minio/docs/assets/13393018/708d8991-c6af-406f-a474-65449c38c06c"> <img width="627" alt="Screenshot 2023-06-15 at 14 19 36" src="https://github.com/minio/docs/assets/13393018/63f9db43-1408-4e96-81ad-9ecb7c39b9f0"> **Updating the list:** Edit the `docs` array in `default.conf.py@268`.
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" xmlns:v="https://vecta.io/nano"><path d="M8.5 2.898c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415V.58c0-.167.055-.306.164-.415S8.333 0 8.5 0s.306.055.415.164.164.248.164.415v1.739c0 .167-.055.306-.164.415s-.248.164-.415.164zm3.96 1.642c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406l1.217-1.236c.116-.116.254-.174.415-.174s.299.058.415.174.174.251.174.406-.058.29-.174.406L13.272 4.54c-.116.116-.251.174-.406.174s-.29-.058-.406-.174zm2.222 4.54c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415.055-.306.164-.415.248-.164.415-.164h1.739c.167 0 .306.055.415.164S17 8.333 17 8.5s-.055.306-.164.415-.248.164-.415.164h-1.739zM8.5 17c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415v-1.739c0-.167.055-.306.164-.415s.248-.164.415-.164.306.055.415.164.164.248.164.415v1.739c0 .167-.055.306-.164.415S8.667 17 8.5 17zM3.728 4.54L2.492 3.323c-.116-.116-.174-.254-.174-.415s.058-.299.174-.415.251-.174.406-.174.29.058.406.174L4.54 3.728c.116.116.174.251.174.406s-.058.29-.174.406c-.116.103-.254.155-.415.155s-.293-.052-.396-.155zm9.968 9.968l-1.236-1.236c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406c.103-.103.235-.155.396-.155s.299.052.415.155l1.256 1.217c.116.116.171.254.164.415s-.061.299-.164.415c-.116.116-.254.174-.415.174s-.299-.058-.415-.174h0zM.58 9.08c-.167 0-.306-.055-.415-.164S0 8.667 0 8.5s.055-.306.164-.415.248-.164.415-.164h1.739c.167 0 .306.055.415.164s.164.248.164.415-.055.306-.164.415-.248.164-.415.164H.58zm1.912 5.428c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406l1.236-1.236c.103-.103.235-.155.396-.155s.299.052.415.155c.116.116.174.254.174.415s-.058.299-.174.415l-1.217 1.217c-.116.116-.254.174-.415.174s-.299-.058-.415-.174h0zM8.5 13.136a4.47 4.47 0 0 1-3.284-1.352A4.47 4.47 0 0 1 3.864 8.5a4.47 4.47 0 0 1 1.352-3.284A4.47 4.47 0 0 1 8.5 3.864a4.47 4.47 0 0 1 3.284 1.352A4.47 4.47 0 0 1 13.136 8.5a4.47 4.47 0 0 1-1.352 3.284A4.47 4.47 0 0 1 8.5 13.136zm0-1.159a3.35 3.35 0 0 0 2.463-1.014A3.35 3.35 0 0 0 11.977 8.5a3.35 3.35 0 0 0-1.014-2.463A3.35 3.35 0 0 0 8.5 5.023a3.35 3.35 0 0 0-2.463 1.014A3.35 3.35 0 0 0 5.023 8.5a3.35 3.35 0 0 0 1.014 2.463A3.35 3.35 0 0 0 8.5 11.977z" fill="#8a93a4"/></svg>
|
Before Width: | Height: | Size: 2.1 KiB |
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" xmlns:v="https://vecta.io/nano"><path d="M15 11.37c-2.675 1.035-5.709.395-7.737-1.633S4.594 4.675 5.629 2C2.532 3.199.648 6.349 1.055 9.644s3.003 5.891 6.298 6.3 6.446-1.474 7.647-4.57v-.005z" stroke="#101d32" stroke-width="2" fill="none"/></svg>
|
Before Width: | Height: | Size: 309 B |
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="16" stroke="#101d32" fill="none" xmlns:v="https://vecta.io/nano"><path d="M3.5 4.5h2m-2 2h3m-3 2h1m-1 2h3" stroke-linecap="round"/><g stroke-width="1.75"><path d="M9 1.842v11.789"/><path d="M9 2.167C5.608.151 2.486 1.18 1.177 2.044 1.063 2.119 1 2.25 1 2.389v11.516c0 .371.434.58.738.379 2.625-1.733 5.701-.89 7.126.043a.22.22 0 0 0 .262-.016c2.455-2.06 5.484-.918 7.194.1a.45.45 0 0 0 .679-.385V2.404c0-.147-.073-.286-.196-.362C13.659.103 10.306 1.304 9 2.167z"/></g></svg>
|
Before Width: | Height: | Size: 533 B |
@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="16" stroke="#101d32" fill="none" stroke-width="1.75" xmlns:v="https://vecta.io/nano"><path d="M9 1.842v11.789"/><path d="M9 2.167C5.608.151 2.486 1.18 1.177 2.044 1.063 2.119 1 2.25 1 2.389v11.516c0 .371.434.58.738.379 2.625-1.733 5.701-.89 7.126.043a.22.22 0 0 0 .262-.016c2.455-2.06 5.484-.918 7.194.1a.45.45 0 0 0 .679-.385V2.404c0-.147-.073-.286-.196-.362C13.659.103 10.306 1.304 9 2.167z"/></svg>
|
Before Width: | Height: | Size: 460 B |
@ -34,4 +34,5 @@ body {
|
||||
background-color: var(--body-bg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
word-break: break-word;
|
||||
}
|
@ -29,19 +29,130 @@
|
||||
}
|
||||
|
||||
.header__logo {
|
||||
display: flex;
|
||||
|
||||
& > svg {
|
||||
width: 6.25rem;
|
||||
fill: var(--logo-fill-color);
|
||||
}
|
||||
}
|
||||
|
||||
.header__top__title {
|
||||
line-height: 100%;
|
||||
font-weight: 500;
|
||||
color: var(--header-headings-color);
|
||||
margin-left: 0.5rem;
|
||||
font-size: $font-size-sm;
|
||||
padding-bottom: 0.1rem;
|
||||
.header__docs {
|
||||
position: relative;
|
||||
font-size: $font-size-xs;
|
||||
margin-left: 1rem;
|
||||
|
||||
@include breakpoint-min(breakpoints(lg)) {
|
||||
position: absolute;
|
||||
bottom: -2.425rem;
|
||||
right: 1.75rem;
|
||||
z-index: 1;
|
||||
|
||||
&:before {
|
||||
content: "Go to:";
|
||||
position: absolute;
|
||||
left: -2.75rem;
|
||||
top: 0.35rem;
|
||||
font-weight: $font-weight-medium;
|
||||
color: var(--headings-color);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.header__docs__menu {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.header__docs__current {
|
||||
border-radius: $border-radius $border-radius 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
&.read-mode {
|
||||
.header__docs {
|
||||
@include breakpoint-min(breakpoints(lg)) {
|
||||
right: 4.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.dark-mode) {
|
||||
.header__docs {
|
||||
@include breakpoint-max(breakpoints(lg)) {
|
||||
.header__docs__current {
|
||||
--docs-menu-border-color: #{rgba($white, 0.25)};
|
||||
--docs-menu-bg: transparent;
|
||||
--headings-color: #{$white};
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.header__docs__current {
|
||||
--docs-menu-bg: #{$white};
|
||||
--headings-color: $headings-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.header__docs__current {
|
||||
color: var(--headings-color);
|
||||
font-weight: $font-weight-medium;
|
||||
border: 1px solid var(--docs-menu-border-color);
|
||||
border-radius: $border-radius;
|
||||
display: flex;
|
||||
white-space: nowrap;
|
||||
align-items: center;
|
||||
height: 2rem;
|
||||
padding: 0.075rem 0.75rem 0;
|
||||
background-color: var(--docs-menu-bg);
|
||||
|
||||
& > svg {
|
||||
margin-top: 1px;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.header__docs__menu {
|
||||
position: absolute;
|
||||
margin-top: -1px;
|
||||
left: 0;
|
||||
top: 100%;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
display: none;
|
||||
background-color: var(--nav-dropdown-bg);
|
||||
padding: 0.25rem;
|
||||
z-index: 10;
|
||||
border-radius: 0 0 $border-radius $border-radius;
|
||||
border: 1px solid var(--docs-menu-border-color);
|
||||
|
||||
& > a {
|
||||
padding: 0.35rem 1.6rem 0.35rem 0.6rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: $border-radius;
|
||||
white-space: nowrap;
|
||||
color: var(--text-muted-color);
|
||||
border: 1px solid transparent;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--theme-light-bg);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
&.current {
|
||||
background-color: var(--theme-light-hover-bg);
|
||||
pointer-events: none;
|
||||
color: var(--text-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.header__actions {
|
||||
@ -65,26 +176,13 @@
|
||||
}
|
||||
|
||||
.icon--switch {
|
||||
transition: background-color 500ms, border-color 500ms;
|
||||
background-color: var(--header-actions-icon-bg);
|
||||
border-color: var(--header-actions-icon-border-color);
|
||||
color: var(--text-color);
|
||||
|
||||
&:hover {
|
||||
background-color: var(--header-actions-icon-hover-bg);
|
||||
}
|
||||
|
||||
& > svg {
|
||||
stroke: var(--header-actions-icon-stroke);
|
||||
stroke-width: var(--header-actions-icon-stroke-width);
|
||||
|
||||
&:last-child {
|
||||
& > path {
|
||||
&:last-child {
|
||||
fill: var(--header-actions-icon-path-fill);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -49,8 +49,8 @@
|
||||
// Buttons icons
|
||||
// ----------------------
|
||||
.icon {
|
||||
width: 1.75rem;
|
||||
height: 1.75rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
border: 1px solid transparent;
|
||||
border-radius: $border-radius;
|
||||
background-color: transparent;
|
||||
@ -79,11 +79,9 @@
|
||||
& > svg {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
transition: transform 300ms, opacity 300ms;
|
||||
position: absolute;
|
||||
|
||||
&:last-child:not(:only-child) {
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
@ -92,12 +90,10 @@
|
||||
& > svg,
|
||||
& > img {
|
||||
&:first-child {
|
||||
transform: scale(0);
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
@ -12,14 +12,14 @@ $theme-properties: (
|
||||
--headings-color: $black #E3EEEF,
|
||||
|
||||
// Theme
|
||||
--theme-light-bg: $light-300 $dark-200,
|
||||
--theme-light-hover-bg: $light-500 $dark-300,
|
||||
--theme-light-bg: $light-200 $dark-200,
|
||||
--theme-light-hover-bg: $light-300 $dark-300,
|
||||
|
||||
// Header
|
||||
--header-bg: $header-light-bg $dark-0,
|
||||
--logo-fill-color: $theme-red $white,
|
||||
--header-actions-icon-bg: $white $dark-0,
|
||||
--header-actions-icon-border-color: transparent $dark-500,
|
||||
--header-actions-icon-border-color: transparent $dark-300,
|
||||
--header-actions-icon-stroke: $black $dark-500,
|
||||
--header-actions-icon-stroke-width: 1.5 1.25,
|
||||
--header-actions-icon-path-fill: $header-light-bg $dark-500,
|
||||
@ -129,6 +129,10 @@ $theme-properties: (
|
||||
--is-meta-key-border-color: #c5cad0 $dark-400,
|
||||
--is-search-border-color: $light-500 $dark-300,
|
||||
--is-search-focus-box-shadow: rgba($light-500, 0.35) rgba($dark-100, 0.75),
|
||||
|
||||
// Docs menu
|
||||
--docs-menu-border-color: $light-300 $dark-300,
|
||||
--docs-menu-bg: $white transparent,
|
||||
);
|
||||
|
||||
// Activate dark/light themes
|
||||
|
@ -74,6 +74,8 @@ div.topic {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0.25rem 0;
|
||||
|
||||
.topic-title {
|
||||
@include breakpoint-max(breakpoints(lg)) {
|
||||
|
@ -6,7 +6,22 @@
|
||||
<path d="M52.751.414h9.108v23.63h-9.108zM41.711.74l-18.488 9.92a.919.919 0 0 1-.856 0L3.879.74A2.808 2.808 0 0 0 2.558.414h-.023A2.4 2.4 0 0 0 0 2.641v21.376h9.1V13.842a.918.918 0 0 1 1.385-.682l10.361 5.568a3.634 3.634 0 0 0 3.336.028l10.933-5.634a.917.917 0 0 1 1.371.69v10.205h9.1V2.641A2.4 2.4 0 0 0 43.055.414h-.023a2.808 2.808 0 0 0-1.321.326zm65.564-.326h-9.237v10.755a.913.913 0 0 1-1.338.706L72.762.675a2.824 2.824 0 0 0-1.191-.261h-.016a2.4 2.4 0 0 0-2.535 2.227v21.377h9.163V13.275a.914.914 0 0 1 1.337-.707l24.032 11.2a2.813 2.813 0 0 0 1.188.26 2.4 2.4 0 0 0 2.535-2.227zm7.161 23.63V.414h4.191v23.63zm28.856.421c-11.274 0-19.272-4.7-19.272-12.232C124.02 4.741 132.066 0 143.292 0s19.32 4.7 19.32 12.233-7.902 12.232-19.32 12.232zm0-21.333c-8.383 0-14.84 3.217-14.84 9.1 0 5.926 6.457 9.1 14.84 9.1s14.887-3.174 14.887-9.1c0-5.883-6.504-9.1-14.887-9.1z" />
|
||||
</svg>
|
||||
</a>
|
||||
<div class="header__top__title visible-rm">Documentation</div>
|
||||
|
||||
<div class="header__docs">
|
||||
<div class="header__docs__current">
|
||||
{{ docs[0].name }}
|
||||
|
||||
{%- include "icons/chevron-down.html" %}
|
||||
</div>
|
||||
<nav class="header__docs__menu">
|
||||
{% for doc in docs %}
|
||||
{% set current_name = doc.name if doc.current == True %}
|
||||
<a target="{% if doc.external == True %}_blank{% endif %}" class="{% if doc.current == True %}current{% endif %}" href="{{ doc.url }}">
|
||||
{{ doc.name }}
|
||||
</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<nav class="nav hidden-rm">
|
||||
<a target="_blank" rel="noreferrer" href="https://subnet.min.io/" class="nav__link">
|
||||
@ -21,24 +36,15 @@
|
||||
</button>
|
||||
|
||||
<button id="dark-mode-toggle" type="button" class="icon icon--switch">
|
||||
<img src="{{ pathto('_static/img/icons/dark-mode.svg',1) }}" alt="Dark Mode" />
|
||||
<img src="{{ pathto('_static/img/icons/dark-mode-active.svg',1) }}" alt="Dark Mode" />
|
||||
Dark Mode
|
||||
{%- include "icons/moon.html" %}
|
||||
{%- include "icons/sun.html" %}
|
||||
Dark Mode
|
||||
</button>
|
||||
|
||||
<button id="read-mode-toggle" type="button" class="icon icon--switch">
|
||||
<svg width="18" height="16" fill="none">
|
||||
<path d="M9 1.842v11.789"/>
|
||||
<path d="M9 2.167C5.608.151 2.486 1.18 1.177 2.044 1.063 2.119 1 2.25 1 2.389v11.516c0 .371.434.58.738.379 2.625-1.733 5.701-.89 7.126.043a.22.22 0 0 0 .262-.016c2.455-2.06 5.484-.918 7.194.1a.45.45 0 0 0 .679-.385V2.404c0-.147-.073-.286-.196-.362C13.659.103 10.306 1.304 9 2.167z"/>
|
||||
</svg>
|
||||
|
||||
<svg width="18" height="16" fill="none" fill-rule="evenodd">
|
||||
<path d="M9 1.842v11.789"/>
|
||||
<path d="M9 2.167C5.608.151 2.486 1.18 1.177 2.044 1.063 2.119 1 2.25 1 2.389v11.516c0 .371.434.58.738.379 2.625-1.733 5.701-.89 7.126.043a.22.22 0 0 0 .262-.016c2.455-2.06 5.484-.918 7.194.1a.45.45 0 0 0 .679-.385V2.404c0-.147-.073-.286-.196-.362C13.659.103 10.306 1.304 9 2.167z"/>
|
||||
<path d="M1.178 2.038C3.557.609 6.203.65 9.117 2.161l.001 11.835c-2.633-1.367-5.279-1.367-7.94 0-.08.041-.08-3.944 0-11.957z"/>
|
||||
</svg>
|
||||
|
||||
Reading Mode
|
||||
{%- include "icons/book.html" %}
|
||||
{%- include "icons/book-active.html" %}
|
||||
Reading Mode
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
4
source/_templates/icons/book-active.html
Normal file
@ -0,0 +1,4 @@
|
||||
<svg width="17" height="15" viewBox="0 0 18 16">
|
||||
<path d="M4.09286 12.7785C4.87857 12.7785 5.63929 12.8949 6.375 13.1275C7.11071 13.3602 7.83571 13.7181 8.55 14.2013V2.97987C7.90714 2.40716 7.2 1.97315 6.42857 1.67785C5.65714 1.38255 4.87857 1.2349 4.09286 1.2349C3.55 1.2349 3.05357 1.29754 2.60357 1.42282C2.15357 1.5481 1.67143 1.72707 1.15714 1.95973C1.08571 1.99553 1.03571 2.04027 1.00714 2.09396C0.978571 2.14765 0.964286 2.20134 0.964286 2.25503V13.1544C0.964286 13.2438 0.992857 13.311 1.05 13.3557C1.10714 13.4004 1.17143 13.4139 1.24286 13.396C1.6 13.1812 2.02857 13.0246 2.52857 12.9262C3.02857 12.8277 3.55 12.7785 4.09286 12.7785ZM9.51429 14.2013C10.2429 13.7181 10.9607 13.3602 11.6679 13.1275C12.375 12.8949 13.1214 12.7785 13.9071 12.7785C14.45 12.7785 14.975 12.8277 15.4821 12.9262C15.9893 13.0246 16.4143 13.1454 16.7571 13.2886C16.8286 13.3244 16.8929 13.3199 16.95 13.2752C17.0071 13.2304 17.0357 13.1544 17.0357 13.047V2.25503C17.0357 2.20134 17.0214 2.14765 16.9929 2.09396C16.9643 2.04027 16.9143 1.99553 16.8429 1.95973C16.3714 1.70917 15.9 1.52573 15.4286 1.4094C14.9571 1.29306 14.45 1.2349 13.9071 1.2349C13.1214 1.2349 12.3536 1.38255 11.6036 1.67785C10.8536 1.97315 10.1571 2.40716 9.51429 2.97987V14.2013ZM9.70386 15.4635C9.29873 15.7533 8.74672 15.7502 8.34198 15.4599C7.82063 15.0859 7.26854 14.7782 6.68571 14.5369C5.84286 14.1879 4.97857 14.0134 4.09286 14.0134C3.63571 14.0134 3.18214 14.0761 2.73214 14.2013C2.28214 14.3266 1.82857 14.4787 1.37143 14.6577C1.04286 14.8546 0.732143 14.8233 0.439286 14.5638C0.146429 14.3043 0 13.9418 0 13.4765V2.1745C0 1.88814 0.0571429 1.62864 0.171429 1.39597C0.285714 1.16331 0.442857 0.98434 0.642857 0.859061C1.18571 0.572707 1.74643 0.357942 2.325 0.214765C2.90357 0.0715887 3.49286 0 4.09286 0C4.97857 0 5.83929 0.1566 6.675 0.469799C7.51071 0.782998 8.3 1.2528 9.04286 1.87919C9.75714 1.2528 10.5286 0.782998 11.3571 0.469799C12.1857 0.1566 13.0357 0 13.9071 0C14.5071 0 15.0929 0.0715887 15.6643 0.214765C16.2357 0.357942 16.7929 0.572707 17.3357 0.859061C17.55 0.98434 17.7143 1.16331 17.8286 1.39597C17.9429 1.62864 18 1.88814 18 2.1745V13.4765C18 13.9597 17.8393 14.3311 17.5179 14.5906C17.1964 14.8501 16.8786 14.8725 16.5643 14.6577C16.1214 14.4609 15.6786 14.3043 15.2357 14.1879C14.7929 14.0716 14.35 14.0134 13.9071 14.0134C13.0214 14.0134 12.1679 14.1879 11.3464 14.5369C10.7766 14.779 10.229 15.0879 9.70386 15.4635Z" fill="currentColor" />
|
||||
<path d="M9 3C6.2 -0.599997 2.16667 0.833336 0.5 2L1 14L5 13L9 15V3Z" fill="currentColor" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
3
source/_templates/icons/book.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="17" height="15" viewBox="0 0 18 16" fill="none">
|
||||
<path d="M4.09286 12.7785C4.87857 12.7785 5.63929 12.8949 6.375 13.1275C7.11071 13.3602 7.83571 13.7181 8.55 14.2013V2.97987C7.90714 2.40716 7.2 1.97315 6.42857 1.67785C5.65714 1.38255 4.87857 1.2349 4.09286 1.2349C3.55 1.2349 3.05357 1.29754 2.60357 1.42282C2.15357 1.5481 1.67143 1.72707 1.15714 1.95973C1.08571 1.99553 1.03571 2.04027 1.00714 2.09396C0.978571 2.14765 0.964286 2.20134 0.964286 2.25503V13.1544C0.964286 13.2438 0.992857 13.311 1.05 13.3557C1.10714 13.4004 1.17143 13.4139 1.24286 13.396C1.6 13.1812 2.02857 13.0246 2.52857 12.9262C3.02857 12.8277 3.55 12.7785 4.09286 12.7785ZM9.51429 14.2013C10.2429 13.7181 10.9607 13.3602 11.6679 13.1275C12.375 12.8949 13.1214 12.7785 13.9071 12.7785C14.45 12.7785 14.975 12.8277 15.4821 12.9262C15.9893 13.0246 16.4143 13.1454 16.7571 13.2886C16.8286 13.3244 16.8929 13.3199 16.95 13.2752C17.0071 13.2304 17.0357 13.1544 17.0357 13.047V2.25503C17.0357 2.20134 17.0214 2.14765 16.9929 2.09396C16.9643 2.04027 16.9143 1.99553 16.8429 1.95973C16.3714 1.70917 15.9 1.52573 15.4286 1.4094C14.9571 1.29306 14.45 1.2349 13.9071 1.2349C13.1214 1.2349 12.3536 1.38255 11.6036 1.67785C10.8536 1.97315 10.1571 2.40716 9.51429 2.97987V14.2013ZM9.70386 15.4635C9.29873 15.7533 8.74672 15.7502 8.34198 15.4599C7.82063 15.0859 7.26854 14.7782 6.68571 14.5369C5.84286 14.1879 4.97857 14.0134 4.09286 14.0134C3.63571 14.0134 3.18214 14.0761 2.73214 14.2013C2.28214 14.3266 1.82857 14.4787 1.37143 14.6577C1.04286 14.8546 0.732143 14.8233 0.439286 14.5638C0.146429 14.3043 0 13.9418 0 13.4765V2.1745C0 1.88814 0.0571429 1.62864 0.171429 1.39597C0.285714 1.16331 0.442857 0.98434 0.642857 0.859061C1.18571 0.572707 1.74643 0.357942 2.325 0.214765C2.90357 0.0715887 3.49286 0 4.09286 0C4.97857 0 5.83929 0.1566 6.675 0.469799C7.51071 0.782998 8.3 1.2528 9.04286 1.87919C9.75714 1.2528 10.5286 0.782998 11.3571 0.469799C12.1857 0.1566 13.0357 0 13.9071 0C14.5071 0 15.0929 0.0715887 15.6643 0.214765C16.2357 0.357942 16.7929 0.572707 17.3357 0.859061C17.55 0.98434 17.7143 1.16331 17.8286 1.39597C17.9429 1.62864 18 1.88814 18 2.1745V13.4765C18 13.9597 17.8393 14.3311 17.5179 14.5906C17.1964 14.8501 16.8786 14.8725 16.5643 14.6577C16.1214 14.4609 15.6786 14.3043 15.2357 14.1879C14.7929 14.0716 14.35 14.0134 13.9071 14.0134C13.0214 14.0134 12.1679 14.1879 11.3464 14.5369C10.7766 14.779 10.229 15.0879 9.70386 15.4635Z" fill="currentColor" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
3
source/_templates/icons/chevron-down.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg viewBox="0 0 9 5" width="9" height="5">
|
||||
<path d="M8.071.135a.562.562 0 1 1 .733.855L4.866 4.365a.562.562 0 0 1-.732 0L.196.99A.562.562 0 1 1 .93.135L4.5 3.197 8.071.135z" fill="currentColor" fill-rule="evenodd" />
|
||||
</svg>
|
After Width: | Height: | Size: 229 B |
3
source/_templates/icons/external-link.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="10" height="10" viewBox="0 0 10 10" fill="none">
|
||||
<path d="M1.058 10c-.289 0-.538-.104-.746-.312S0 9.232 0 8.942V1.065A1.03 1.03 0 0 1 .312.314C.52.105.768 0 1.058 0h2.667c.294 0 .533.239.533.533h0c0 .294-.239.533-.533.533H1.058v7.877h7.877l-.002-2.579c0-.295.239-.534.534-.534h0c.295 0 .534.239.534.534v2.579c0 .289-.105.538-.314.746a1.03 1.03 0 0 1-.751.312H1.058zm3.177-3.487c-.206.206-.54.204-.744-.003h0c-.202-.205-.2-.534.003-.738L8.2 1.065H6.05c-.294 0-.533-.239-.533-.533h0c0-.294.239-.533.533-.533H9a1 1 0 0 1 1 1v2.95c0 .294-.239.533-.533.533h0c-.294 0-.533-.239-.533-.533V1.813L4.235 6.513z" fill="currentColor" />
|
||||
</svg>
|
After Width: | Height: | Size: 647 B |
@ -1,3 +1,3 @@
|
||||
<svg viewbox="0 0 17 13">
|
||||
<svg width="17" height="13" viewbox="0 0 17 13">
|
||||
<path d="M16.034 0H.966C.433 0 0 .346 0 .773s.433.773.966.773h15.068c.533 0 .966-.346.966-.773S16.567 0 16.034 0zm0 5.409H.966c-.533 0-.966.346-.966.773s.433.773.966.773h15.068c.533 0 .966-.346.966-.773s-.433-.773-.966-.773zm0 5.409H.966c-.533 0-.966.346-.966.773s.433.773.966.773h15.068c.533 0 .966-.346.966-.773s-.433-.773-.966-.773z" />
|
||||
</svg>
|
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 399 B |
3
source/_templates/icons/moon.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="21" height="21" viewBox="0 0 48 48" fill="currentColor">
|
||||
<path d="M24 42q-7.5 0-12.75-5.25T6 24q0-6.75 3.975-11.45Q13.95 7.85 20.4 6.5q2.05-.4 2.8.7t-.05 3q-.45 1.15-.7 2.35-.25 1.2-.25 2.45 0 4.5 3.15 7.65Q28.5 25.8 33 25.8q1.25 0 2.425-.225 1.175-.225 2.275-.625 2.15-.8 3.2.075 1.05.875.55 2.975-1.35 6.05-6.05 10.025Q30.7 42 24 42Zm0-3q5.45 0 9.5-3.375t5.05-7.925q-1.25.55-2.675.825Q34.45 28.8 33 28.8q-5.75 0-9.775-4.025T19.2 15q0-1.2.25-2.575.25-1.375.9-3.125-4.9 1.35-8.125 5.475Q9 18.9 9 24q0 6.25 4.375 10.625T24 39Zm-.2-14.85Z" />
|
||||
</svg>
|
After Width: | Height: | Size: 563 B |
3
source/_templates/icons/sun.html
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="17" height="17" viewBox="0 0 17 17">
|
||||
<path d="M8.5 2.898c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415V.58c0-.167.055-.306.164-.415S8.333 0 8.5 0s.306.055.415.164.164.248.164.415v1.739c0 .167-.055.306-.164.415s-.248.164-.415.164zm3.96 1.642c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406l1.217-1.236c.116-.116.254-.174.415-.174s.299.058.415.174.174.251.174.406-.058.29-.174.406L13.272 4.54c-.116.116-.251.174-.406.174s-.29-.058-.406-.174zm2.222 4.54c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415.055-.306.164-.415.248-.164.415-.164h1.739c.167 0 .306.055.415.164S17 8.333 17 8.5s-.055.306-.164.415-.248.164-.415.164h-1.739zM8.5 17c-.167 0-.306-.055-.415-.164s-.164-.248-.164-.415v-1.739c0-.167.055-.306.164-.415s.248-.164.415-.164.306.055.415.164.164.248.164.415v1.739c0 .167-.055.306-.164.415S8.667 17 8.5 17zM3.728 4.54L2.492 3.323c-.116-.116-.174-.254-.174-.415s.058-.299.174-.415.251-.174.406-.174.29.058.406.174L4.54 3.728c.116.116.174.251.174.406s-.058.29-.174.406c-.116.103-.254.155-.415.155s-.293-.052-.396-.155zm9.968 9.968l-1.236-1.236c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406c.103-.103.235-.155.396-.155s.299.052.415.155l1.256 1.217c.116.116.171.254.164.415s-.061.299-.164.415c-.116.116-.254.174-.415.174s-.299-.058-.415-.174h0zM.58 9.08c-.167 0-.306-.055-.415-.164S0 8.667 0 8.5s.055-.306.164-.415.248-.164.415-.164h1.739c.167 0 .306.055.415.164s.164.248.164.415-.055.306-.164.415-.248.164-.415.164H.58zm1.912 5.428c-.116-.116-.174-.251-.174-.406s.058-.29.174-.406l1.236-1.236c.103-.103.235-.155.396-.155s.299.052.415.155c.116.116.174.254.174.415s-.058.299-.174.415l-1.217 1.217c-.116.116-.254.174-.415.174s-.299-.058-.415-.174h0zM8.5 13.136a4.47 4.47 0 0 1-3.284-1.352A4.47 4.47 0 0 1 3.864 8.5a4.47 4.47 0 0 1 1.352-3.284A4.47 4.47 0 0 1 8.5 3.864a4.47 4.47 0 0 1 3.284 1.352A4.47 4.47 0 0 1 13.136 8.5a4.47 4.47 0 0 1-1.352 3.284A4.47 4.47 0 0 1 8.5 13.136zm0-1.159a3.35 3.35 0 0 0 2.463-1.014A3.35 3.35 0 0 0 11.977 8.5a3.35 3.35 0 0 0-1.014-2.463A3.35 3.35 0 0 0 8.5 5.023a3.35 3.35 0 0 0-2.463 1.014A3.35 3.35 0 0 0 5.023 8.5a3.35 3.35 0 0 0 1.014 2.463A3.35 3.35 0 0 0 8.5 11.977z" fill="currentColor" />
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
@ -264,7 +264,24 @@ html_short_title = 'MinIO Object Storage for ' + platform_fmt
|
||||
html_permalinks_icon = ''
|
||||
|
||||
html_context = {
|
||||
'doc_platform': platform.lower()
|
||||
'doc_platform': platform.lower(),
|
||||
'docs': [
|
||||
# The first item has to be the current docs site #
|
||||
{
|
||||
'name': 'MinIO Documentation',
|
||||
'current': True
|
||||
},
|
||||
{
|
||||
'name': 'KES Documentation',
|
||||
'url': 'https://min.io/docs/kes',
|
||||
'external': True
|
||||
},
|
||||
#{
|
||||
#'name': 'DirectPV Documentation',
|
||||
#'url': '',
|
||||
#'external': True
|
||||
#}
|
||||
]
|
||||
}
|
||||
|
||||
# -- Options for Sphinx Tabs -------------------------------------------------
|
||||
|