From bca8d714904843f08fee77c0f8268c59c9557068 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 6 Mar 2023 12:07:35 +0100 Subject: [PATCH] README --- README.adoc | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/README.adoc b/README.adoc index 0fd85ed..89bb294 100644 --- a/README.adoc +++ b/README.adoc @@ -15,27 +15,21 @@ Récuperation du script : git clone {repo-url} ---- -Modification des dossier de récuperation et d'enregistrement : +Exemple : -.clone_for_markdown.py [source,python] ---- -# Prefix for the path where repository are saved, can be an url -PATH_PREFIX = "/var/lib/gitea/git/repositories" -# Prefix for where we will clone the repos -CACHE_FOLDER_PATH = "/var/lib/gitea/markdown_cache" +python3 clone_for_markdown.py ---- Mise à jour de la configuration Gitea : .app.ini -[source,diff] +[source,ini] ---- [markup.asciidoc] ENABLED = true FILE_EXTENSIONS = .adoc,.asciidoc -+ RENDER_COMMAND = "python3 /var/lib/gitea/gitea-asciidoc-script/clone_for_markdown.py $GITEA_PREFIX_SRC" -- RENDER_COMMAND = "asciidoctor -a showtitle --out-file=- -" -; Input is not a standard input but a file +RENDER_COMMAND = "python3 /var/lib/gitea/gitea-asciidoc-script/clone_for_markdown.py $GITEA_PREFIX_SRC /var/lib/gitea/git/repositories /var/lib/gitea/markdown_cache" IS_INPUT_FILE = false ---- \ No newline at end of file