safe mode server

This commit is contained in:
leo 2023-03-05 01:40:46 +01:00
parent a7991d1554
commit ba0751569e
Signed by: leo
GPG Key ID: 0DD993BFB2B307DB

View File

@ -35,4 +35,4 @@ if not os.path.isdir(CACHE_FOLDER_PATH):
if not os.path.isdir(repo_name): if not os.path.isdir(repo_name):
subprocess.run(["git", "clone", repo_path, repo_name], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) subprocess.run(["git", "clone", repo_path, repo_name], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
subprocess.run(["asciidoctor", "-s", "-a", "showtitle", "-a", "source-highlighter=rouge", "-a", "rouge-css=style", "-a", "rouge-style=base16.monokai.dark", "--out-file=-", f"--base-dir={repo_name}", "-"]) subprocess.run(["asciidoctor", "-s", "--safe-mode", "server", "-a", "showtitle", "-a", "source-highlighter=rouge", "-a", "rouge-css=style", "-a", "rouge-style=base16.monokai.dark", "--out-file=-", f"--base-dir={repo_name}", "-"])