From 2c62272aae410cc693c0cc4f931a239673dace8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Thu, 25 Apr 2024 21:48:35 +0200 Subject: [PATCH] docs(website): Custom home page --- docs/website/docs/index.md | 6 +++- docs/website/mkdocs.yml | 1 + docs/website/overrides/home.html | 61 ++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 docs/website/overrides/home.html diff --git a/docs/website/docs/index.md b/docs/website/docs/index.md index ceea72a..4f5ca0b 100644 --- a/docs/website/docs/index.md +++ b/docs/website/docs/index.md @@ -1,3 +1,7 @@ -# Home +--- +template: home.html +--- + +# Welcome! The OpenSavvy Playground is a project template with pre-configured CI/CD, documentation generator, etc. diff --git a/docs/website/mkdocs.yml b/docs/website/mkdocs.yml index 98813dd..112d0f9 100644 --- a/docs/website/mkdocs.yml +++ b/docs/website/mkdocs.yml @@ -5,6 +5,7 @@ site_description: > theme: name: material + custom_dir: overrides features: - announce.dismiss - content.action.edit diff --git a/docs/website/overrides/home.html b/docs/website/overrides/home.html new file mode 100644 index 0000000..29eaa5e --- /dev/null +++ b/docs/website/overrides/home.html @@ -0,0 +1,61 @@ +{% extends "main.html" %} +{% block tabs %} +{{ super() }} + + +
+
+
+
+

{{ config.site_name }}

+ +

{{ config.site_description }}

+ +
+ + +
+ + + Quick start + + + Visit repository + +
+
+
+
+{% endblock %} + +{% block content %} +
+ {{ super() }} +
+{% endblock %} -- 2.51.2