From 8eb822d85966fd8c9a7186bef41e9671c760322d Mon Sep 17 00:00:00 2001 From: Matt Graham Date: Tue, 7 Nov 2023 11:11:34 +0000 Subject: [PATCH] Make Sphinx usage example clearer --- docs/usage.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.md b/docs/usage.md index bf4d5476..a96ff8cf 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -122,7 +122,7 @@ except PackageNotFoundError: ``` {.python file=docs/.entangled/sphinx_conf.py} from importlib.metadata import version as get_version -release: str = get_version('setuptools_scm') +release: str = get_version("package-name") # for example take major/minor version: str = ".".join(release.split('.')[:2]) ```