Skip to content

Commit

Permalink
Merge pull request #973 from matt-graham/clarify-sphinx-usage
Browse files Browse the repository at this point in the history
Make Sphinx usage example clearer
  • Loading branch information
RonnyPfannschmidt authored Nov 10, 2023
2 parents 1936572 + 8eb822d commit 26d5d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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])
```
Expand Down

0 comments on commit 26d5d43

Please sign in to comment.