34 lines
733 B
Plaintext
34 lines
733 B
Plaintext
:source-highlighter: highlight.js
|
|
|
|
= Gitea Asciidoc
|
|
|
|
include::.doc_vars.adoc[]
|
|
|
|
Un script python pour permettre le rendu de fichier Asciidoc dans gitea avec le support pour les commandes `+include::+`.
|
|
|
|
= Utilisation
|
|
|
|
Récuperation du script :
|
|
|
|
[subs="attributes"]
|
|
----
|
|
git clone {repo-url}
|
|
----
|
|
|
|
Exemple :
|
|
|
|
----
|
|
python3 clone_for_markdown.py <repo name (/username/repo)> <repo prefix (can be an URL)> <cache path>
|
|
----
|
|
|
|
Configuration Gitea :
|
|
|
|
.app.ini
|
|
[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 /var/lib/gitea/git/repositories /var/lib/gitea/markdown_cache"
|
|
IS_INPUT_FILE = false
|
|
---- |