From 45efef51a1a4737cc0be37ed12c1b1b4a47f7fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Tue, 23 Apr 2024 22:09:00 +0200 Subject: [PATCH] Add share links to blog post --- mkdocs.yml | 4 + overrides/blog-post.html | 205 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 209 insertions(+) create mode 100644 overrides/blog-post.html diff --git a/mkdocs.yml b/mkdocs.yml index c02a37097..dbff63e04 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -11,6 +11,7 @@ theme: logo: images/robolectric-stacked.png icon: repo: fontawesome/brands/github + custom_dir: overrides palette: # Palette toggle for automatic mode - media: "(prefers-color-scheme)" @@ -128,3 +129,6 @@ nav: not_in_nav: | automated-migration.md other-environments.md + +watch: + - overrides diff --git a/overrides/blog-post.html b/overrides/blog-post.html new file mode 100644 index 000000000..4f849cb34 --- /dev/null +++ b/overrides/blog-post.html @@ -0,0 +1,205 @@ + + +{% extends "main.html" %} + +{% import "partials/nav-item.html" as item with context %} + + +{% block container %} +
+ + +
+
+
+ + + + {% if "toc.integrate" in features %} + {% include "partials/toc.html" %} + {% endif %} +
+
+
+ + +
+ {% block content %} + {% include "partials/content.html" %} + {% endblock %} +
+
+{% endblock %}