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}
|
git clone {repo-url}
|
||||||
----
|
----
|
||||||
|
|
||||||
Modification des dossier de récuperation et d'enregistrement :
|
Exemple :
|
||||||
|
|
||||||
.clone_for_markdown.py
|
|
||||||
[source,python]
|
[source,python]
|
||||||
----
|
----
|
||||||
# Prefix for the path where repository are saved, can be an url
|
python3 clone_for_markdown.py <repo name (/username/repo)> <repo prefix (can be an URL)> <cache path>
|
||||||
PATH_PREFIX = "/var/lib/gitea/git/repositories"
|
|
||||||
# Prefix for where we will clone the repos
|
|
||||||
CACHE_FOLDER_PATH = "/var/lib/gitea/markdown_cache"
|
|
||||||
----
|
----
|
||||||
|
|
||||||
Mise à jour de la configuration Gitea :
|
Mise à jour de la configuration Gitea :
|
||||||
|
|
||||||
.app.ini
|
.app.ini
|
||||||
[source,diff]
|
[source,ini]
|
||||||
----
|
----
|
||||||
[markup.asciidoc]
|
[markup.asciidoc]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
FILE_EXTENSIONS = .adoc,.asciidoc
|
FILE_EXTENSIONS = .adoc,.asciidoc
|
||||||
+ RENDER_COMMAND = "python3 /var/lib/gitea/gitea-asciidoc-script/clone_for_markdown.py $GITEA_PREFIX_SRC"
|
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"
|
||||||
- RENDER_COMMAND = "asciidoctor -a showtitle --out-file=- -"
|
|
||||||
; Input is not a standard input but a file
|
|
||||||
IS_INPUT_FILE = false
|
IS_INPUT_FILE = false
|
||||||
----
|
----
|
Loading…
x
Reference in New Issue
Block a user