1
0
mirror of https://github.com/minio/docs.git synced 2025-07-30 07:03:26 +03:00

Fix anchor links, bump to Sphinx 3.5

Make anchor link float on the left side

Fixing extension issue related to whitespaces (hack)
This commit is contained in:
ravindk89
2021-02-22 10:36:20 -05:00
parent cf00b0ca1a
commit 4bfececb2d
7 changed files with 47 additions and 7 deletions

View File

@ -202,11 +202,24 @@ a {
a:hover {
color: #0036b9;
text-decoration: none; }
a > img.anchor {
-webkit-box-shadow: none;
box-shadow: none;
height: 1rem; }
h1, h2, h3, h4, h5 {
color: #1C1C1C; }
h1 > a.toc-backref, h2 > a.toc-backref, h3 > a.toc-backref, h4 > a.toc-backref, h5 > a.toc-backref {
h1, h2, h3, h4, h5, h6 {
color: #1C1C1C;
position: relative; }
h1 > .toc-backref, h2 > .toc-backref, h3 > .toc-backref, h4 > .toc-backref, h5 > .toc-backref, h6 > .toc-backref {
color: #1C1C1C; }
h1 > .headerlink, h2 > .headerlink, h3 > .headerlink, h4 > .headerlink, h5 > .headerlink, h6 > .headerlink {
position: absolute;
left: -1.5rem;
top: 0;
opacity: 0.5; }
h1 > .headerlink:hover, h2 > .headerlink:hover, h3 > .headerlink:hover, h4 > .headerlink:hover, h5 > .headerlink:hover, h6 > .headerlink:hover {
background-color: transparent;
opacity: 1; }
div.admonition {
margin-top: 0; }

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.24 20"><defs><style>.cls-1{fill:#686868;}</style></defs><title>Add link_icon</title><path class="cls-1" d="M748,355.08a1.93,1.93,0,0,1-.33-.31,4.33,4.33,0,0,1-1.26-2.89,3.89,3.89,0,0,1,1.13-2.91l4.75-4.75a4.25,4.25,0,0,1,6,6L755.53,353l-1.19-1.2,2.75-2.75a2.55,2.55,0,0,0-3.59-3.6l-4.75,4.75a2.21,2.21,0,0,0-.63,1.65,2.61,2.61,0,0,0,.79,1.78Z" transform="translate(-740.18 -343.09)"/><path class="cls-1" d="M744.53,363.09a4.38,4.38,0,0,1-4.34-4.2,3.87,3.87,0,0,1,1.13-2.92l2.75-2.75,1.2,1.19-2.75,2.76a2.18,2.18,0,0,0-.64,1.66,2.67,2.67,0,0,0,.79,1.78,2.44,2.44,0,0,0,3.44.15l4.75-4.74a2.21,2.21,0,0,0,.63-1.66,2.67,2.67,0,0,0-.79-1.78l.9-1.47a1.93,1.93,0,0,1,.33.31,4.25,4.25,0,0,1,1.25,2.88,3.87,3.87,0,0,1-1.13,2.92L747.31,362A3.89,3.89,0,0,1,744.53,363.09Z" transform="translate(-740.18 -343.09)"/></svg>

After

Width:  |  Height:  |  Size: 897 B

View File

@ -33,13 +33,32 @@ a {
color: $link-hover-color;
text-decoration: none;
}
& > img.anchor {
box-shadow: none;
height: 1rem;
}
}
h1, h2, h3, h4, h5 {
h1, h2, h3, h4, h5, h6 {
color: $docs-item-main-color;
& > a.toc-backref {
position: relative;
& > .toc-backref {
color: $docs-item-main-color;
}
& > .headerlink {
position: absolute;
left: -1.5rem;
top: 0;
opacity: 0.5;
&:hover {
background-color: transparent;
opacity: 1;
}
}
}
div.admonition {

View File

@ -110,6 +110,8 @@ html_css_files = ['css/main.min.css']
html_js_files = ['js/main.js']
html_permalinks_icon = "<img class='anchor' src=https://docs.min.io/minio/baremetal/_static/img/anchor-link.svg />"
html_title = 'MinIO Documentation'
# rst_epilog contains common replacements for all pages