Skip to content
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

Add HA like version label to sidebar #4503

Draft
wants to merge 11 commits into
base: current
Choose a base branch
from
Draft
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
13 changes: 13 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ div.body p, div.body dd, div.body li, div.body blockquote {
line-height: 20px;
}

.release-date {
font-size: 12px;
padding: 0 5px 0 5px;
background: #e8edf0;
color: #007fa8 !important;
border-radius: 5px;
}

/* New branding changes */

div.body h1, div.body h2, div.body h3, div.body h4, div.body h5, div.body h6, div.sphinxsidebar h3, div.sphinxsidebar h4, div.admonition p.admonition-title {
Expand Down Expand Up @@ -464,6 +472,11 @@ img.logo {
.pagefind-ui__form, .pagefind-modular-input, .search-results {
color: #ececec !important;
}

.release-date {
background: #393939;
color: #3fc3ff !important;
}

:root {
--pagefind-ui-primary: #eeeeee;
Expand Down
2 changes: 1 addition & 1 deletion _templates/contact.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<hr />
<ul>
<li><a href="https://discord.gg/KhAMKrd" target="_blank">Join the community</a></li>
<li><a href="https://discord.gg/KhAMKrd" target="_blank">Join our Discord</a></li>
<li><a href="https://twitter.com/esphome_" target="_blank">Follow us on Twitter</a></li>
<li><a href="https://github.com/esphome/esphome" target="_blank">Source Code</a></li>
<li><a href="mailto:[email protected]">Contact</a> (no support!)</li>
Expand Down
4 changes: 4 additions & 0 deletions _templates/version.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div style="text-align: center">
<a class="release-date" href="/changelog/" title="Latest version 2024.12.0 released December 18, 2024">2024.12.0</a>
<br>
</div>
1 change: 1 addition & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
html_sidebars = {
"**": [
# 'about.html',
"version.html",
"searchbox.html",
"localtoc.html",
"contact.html",
Expand Down
Loading