Skip to content

Commit 520a2d5

Browse files
committed
Enable using PULPDOCS_DIR to specify pulp-docs checkout location
1 parent 051b3c8 commit 520a2d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/pulp_docs/cli.py

+3
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ def draft_callback(ctx: click.Context, param: click.Parameter, value: bool) -> b
5050
draft_option(sub_command)
5151
blog_option(sub_command)
5252
docstrings_option(sub_command)
53+
serve_options = sub_command.params
54+
config_file_opt = next(filter(lambda opt: opt.name == "config_file", serve_options))
55+
config_file_opt.envvar = "PULPDOCS_DIR"

0 commit comments

Comments
 (0)