README
This commit is contained in:
parent
46c656a964
commit
bca8d71490
14
README.adoc
14
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 <repo name (/username/repo)> <repo prefix (can be an URL)> <cache path>
|
||||
----
|
||||
|
||||
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
|
||||
----
|
Loading…
x
Reference in New Issue
Block a user