diff --git a/clone_for_markdown.py b/clone_for_markdown.py index 6a3de5c..fb114df 100644 --- a/clone_for_markdown.py +++ b/clone_for_markdown.py @@ -12,7 +12,6 @@ return : The name of the folder containing the cloned repo PATH_PREFIX = "/var/lib/gitea/git/repositories" CACHE_FOLDER_PATH = "/var/lib/gitea/markdown_cache" -#PATH_PREFIX = ".." import sys import subprocess @@ -34,5 +33,5 @@ if not os.path.isdir(CACHE_FOLDER_PATH): 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(["asciidoctor", "-s", "-a", "showtitle", "--out-file=-", f"--base-dir={repo_name}"], stdin=sys.stdin, stdout=sys.stdout) + subprocess.run(["asciidoctor", "-s", "-a", "showtitle", "--out-file=-", f"--base-dir={repo_name}", "-"])