Skip to content

Commit 7835e2e

Browse files
committed
Add mike versioning
1 parent 4eb355b commit 7835e2e

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

docs/overrides/main.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{% extends "base.html" %}
2+
3+
{% block announce %}
4+
{#- Add your announcement content here, including arbitrary HTML -#}
5+
<div class="announcement-bar">
6+
<p>🎉 Superglue 2.0 Alpha has been released with Super Turbo Streams! Check out the new docs <a href="../2.0.alpha">here</a>
7+
</p>
8+
</div>
9+
{% endblock %}

docs/stylesheets/extra.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,13 @@
1010
.md-header__button.md-logo img{
1111
height: 2.3rem;
1212
}
13+
14+
.md-banner {
15+
background-color: #201313;
16+
17+
a {
18+
color: #ffe7a3;
19+
font-weight: 700;
20+
text-decoration: underline;
21+
}
22+
}

mkdocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ copyright: Copyright &copy; 2024 thoughtbot
1212

1313
theme:
1414
name: material
15+
custom_dir: docs/overrides
1516
logo: images/s-color.svg
1617
features:
1718
- header.autohide
@@ -27,6 +28,8 @@ theme:
2728
extra_css:
2829
- stylesheets/extra.css
2930
extra:
31+
version:
32+
provider: mike
3033
social:
3134
- icon: fontawesome/brands/mastodon
3235
link: https://thoughtbot.social/public/local

0 commit comments

Comments
 (0)