From 5d1d6ea8b14750056c2eb2d80863ee5ec2181cdd Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Mon, 14 Aug 2023 01:57:57 +0200
Subject: [PATCH] docs: Display version and build time

This information is important so people know what version the
documentation they are looking at was built from.
---
 docs/conf.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index aa259b66f3..b6113bcd31 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -1,6 +1,8 @@
 import os
 import sys
 import shutil
+import subprocess
+import time
 
 # Configuration file for the Sphinx documentation builder.
 #
@@ -14,6 +16,14 @@ project = 'flow3r'
 copyright = '2023'
 author = 'ccc'
 
+# The full version, including alpha/beta/rc tags
+release = (
+    subprocess.check_output(["git", "describe", "--tags", "--long", "--always"]).decode().strip()
+)
+release += "\n"
+release += time.strftime("%F %R")
+version = release
+
 # -- General configuration ---------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
-- 
GitLab