Skip to content

Commit 88c3820

Browse files
authored
Enable version number to be set for non-modules (#155)
1 parent 76c1228 commit 88c3820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc_builder/commands/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def build_command(args):
6262
"the doc-builder package installed, so you need to run the command from inside the doc-builder repo."
6363
)
6464

65-
if args.not_python_module:
65+
if args.not_python_module and args.version is None:
6666
version = get_default_branch_name(args.path_to_docs)
6767
elif args.version is None:
6868
module = importlib.import_module(args.library_name)

0 commit comments

Comments
 (0)