From 2ae4796697a0cf1a94bb81630370ae2b6cc0fd58 Mon Sep 17 00:00:00 2001 From: Tiago Nobrega Date: Thu, 2 Nov 2023 13:47:00 -0300 Subject: [PATCH] chore: tweak the version string for the docs A pre-release version string like "0.0.post331+gf384f61" can confuse the spellchecker (complains that "gf" is not a word). --- docs/conf.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index be47d3195..7781f68bc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -47,6 +47,9 @@ # The full version, including alpha/beta/rc tags release = rockcraft.__version__ +if ".post" in release: + # The commit hash in the dev release version confuses the spellchecker + release = release[0 : release.find(".post")] # Update with the favicon for your product html_favicon = "_static/favicon.png"