From 4adbbe1b98a1877dfc9821d5a1031abfb313106e Mon Sep 17 00:00:00 2001 From: Lewis Tunstall Date: Fri, 25 Mar 2022 14:36:02 +0100 Subject: [PATCH] Enable version number to be set for non-modules --- src/doc_builder/commands/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc_builder/commands/build.py b/src/doc_builder/commands/build.py index 0ed1102d..576c5bc8 100644 --- a/src/doc_builder/commands/build.py +++ b/src/doc_builder/commands/build.py @@ -62,7 +62,7 @@ def build_command(args): "the doc-builder package installed, so you need to run the command from inside the doc-builder repo." ) - if args.not_python_module: + if args.not_python_module and args.version is None: version = get_default_branch_name(args.path_to_docs) elif args.version is None: module = importlib.import_module(args.library_name)