2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 04:00:57 +00:00

Datamatrix (#8853)

* Implement datamatrix barcode generation

* Update documentation

* Update package requirements

* Add unit test

* Raise error on empty barcode data

* Update docs/hooks.py
This commit is contained in:
Oliver
2025-01-08 12:06:00 +11:00
committed by GitHub
parent 9138e31e58
commit c815455461
9 changed files with 251 additions and 34 deletions

View File

@ -152,12 +152,13 @@ def on_config(config, *args, **kwargs):
"""
rtd = os.environ.get('READTHEDOCS', False)
# Note: version selection is handled by RTD internally
# Check for 'versions.json' file
# If it does not exist, we need to fetch it from the RTD API
if os.path.exists(os.path.join(os.path.dirname(__file__), 'versions.json')):
print("Found 'versions.json' file")
else:
fetch_rtd_versions()
# if os.path.exists(os.path.join(os.path.dirname(__file__), 'versions.json')):
# print("Found 'versions.json' file")
# else:
# fetch_rtd_versions()
if rtd:
rtd_version = os.environ['READTHEDOCS_VERSION']