diff --git a/docs/css/extra.css b/docs/css/extra.css index 0553b3b97..51162d66c 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -7,4 +7,19 @@ .md-nav__item--active > .md-nav__link, /* Active top-level items */ .md-nav__item--nested > .md-nav__link { /* Nested top-level items */ font-weight: bold; -} \ No newline at end of file +} + +.tags-list { + list-style: none; + padding: 0; + } + + .tag { + display: inline-block; + background-color: #e0e0e0; + border-radius: 3px; + padding: 2px 8px; + margin: 2px; + font-size: 0.9em; + color: aqua; + } diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 000000000..7b992205a --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,14 @@ +{% extends "base.html" %} + +{% block content %} +
+ {% if page.meta.tags %} + + {% endif %} +
+{{ super() }} +{% endblock %} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 70bda6d35..f5906bf95 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,6 +4,7 @@ site_name: Operator Lifecycle Manager theme: logo: assets/logo.svg name: "material" + # custom_dir: overrides palette: primary: black features: @@ -14,6 +15,9 @@ theme: repo_url: https://github.com/operator-framework/operator-controller +plugins: + - awesome-pages + extra_css: - css/extra.css diff --git a/requirements.txt b/requirements.txt index 499f7e8b0..b84ca4c54 100644 --- a/requirements.txt +++ b/requirements.txt @@ -33,3 +33,5 @@ six==1.16.0 soupsieve==2.6 urllib3==2.2.3 watchdog==4.0.2 +mkdocs-awesome-pages-plugin==2.9.3 +