Skip to content

Commit

Permalink
Merge pull request #1979 from strictdoc-project/stanislaw/cache_sourc…
Browse files Browse the repository at this point in the history
…e_files

 tasks: server: set --output-path to a local cache folder
  • Loading branch information
stanislaw authored Nov 2, 2024
2 parents 40b99ce + 9a2decb commit 1d5f1de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions strictdoc/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@ def run_strictdoc_server(
# "tests/*", # Doesn't work.
# "tests/**", # Makes the process hang, server doesn't start.
# It looks like the regex engine does not support ** globs.
# Example:
# output/cache/server/html/_source_files/strictdoc/backend/reqif/sdoc_reqif_fields.py.html
"output/*/*.*",
"output/*/*/*.*",
"output/*/*/*/*.*",
"output/*/*/*/*/*.*",
"output/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*",
"output/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*",
"tests/*/*.*",
"tests/*/*/*.*",
"tests/*/*/*/*.*",
Expand Down
2 changes: 1 addition & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def server(context, input_path=".", config=None):
ToxEnvironment.DEVELOPMENT,
f"""
python -m strictdoc.cli.main
server {input_path} {config_argument} --reload
server {input_path} {config_argument} --output-path ./output/cache/server --reload
""",
)

Expand Down

0 comments on commit 1d5f1de

Please sign in to comment.