Fix links format + other tests issues

This commit is contained in:
Alexandre Aubin 2020-09-05 19:49:02 +02:00
parent f2f14bf4ca
commit a070d6305d
7 changed files with 15 additions and 15 deletions

View file

@ -15,15 +15,15 @@
* [Manifest](packaging_apps_manifest) * [Manifest](packaging_apps_manifest)
* [Scripts](packaging_apps_scripts) * [Scripts](packaging_apps_scripts)
* [Arguments management](packaging_apps_arguments_management) * [Arguments management](packaging_apps_arguments_management)
* [Arguments format](#/packaging_apps_arguments_format) * [Arguments format](packaging_apps_arguments_format)
* [Nginx configuration](packaging_apps_nginx_conf) * [Nginx configuration](packaging_apps_nginx_conf)
* [Multi-instance](packaging_apps_multiinstance) * [Multi-instance](packaging_apps_multiinstance)
* [Helpers](packaging_apps_helpers) * [Helpers](packaging_apps_helpers)
* [Trap usage](/packaging_apps_trap) * [Trap usage](/packaging_apps_trap)
* [Adding your app to the apps list](https://github.com/YunoHost/Apps/#contributing) * [Adding your app to the apps list](https://github.com/YunoHost/Apps/#contributing)
* [Advanced packaging features](#/packaging_apps_advanced) * [Advanced packaging features](/packaging_apps_advanced)
* [Application actions](#/packaging_apps_actions) * [Application actions](/packaging_apps_actions)
* [Application configuration panel](#/packaging_apps_config_panel) * [Application configuration panel](/packaging_apps_config_panel)
* Quality tests * Quality tests
* [Package linter](https://github.com/YunoHost/package_linter) * [Package linter](https://github.com/YunoHost/package_linter)
* [Package check](https://github.com/YunoHost/package_check) * [Package check](https://github.com/YunoHost/package_check)

View file

@ -15,15 +15,15 @@
* [Manifest](/packaging_apps_manifest) * [Manifest](/packaging_apps_manifest)
* [Scripts](/packaging_apps_scripts) * [Scripts](/packaging_apps_scripts)
* [Gestion des arguments](/packaging_apps_arguments_management) * [Gestion des arguments](/packaging_apps_arguments_management)
* [Format des arguments](#/packaging_apps_arguments_format) * [Format des arguments](/packaging_apps_arguments_format)
* [Configuration nginx](/packaging_apps_nginx_conf) * [Configuration nginx](/packaging_apps_nginx_conf)
* [Multi-instance](/packaging_apps_multiinstance) * [Multi-instance](/packaging_apps_multiinstance)
* [Fonctions utiles](/packaging_apps_helpers) * [Fonctions utiles](/packaging_apps_helpers)
* [Utilisation de 'trap'](/packaging_apps_trap) * [Utilisation de 'trap'](/packaging_apps_trap)
* [Ajouter son application à la liste des apps](https://github.com/YunoHost/Apps/#contributing) * [Ajouter son application à la liste des apps](https://github.com/YunoHost/Apps/#contributing)
* [Feature de packaging avancées](#/packaging_apps_advanced) * [Feature de packaging avancées](/packaging_apps_advanced)
* [Actions pour une application](#/packaging_apps_actions) * [Actions pour une application](/packaging_apps_actions)
* [Panneau de configuration pour une application](#/packaging_apps_config_panel) * [Panneau de configuration pour une application](/packaging_apps_config_panel)
* Tests de qualité * Tests de qualité
* [Package linter](https://github.com/YunoHost/package_linter) * [Package linter](https://github.com/YunoHost/package_linter)
* [Package check](https://github.com/YunoHost/package_check) * [Package check](https://github.com/YunoHost/package_check)

View file

@ -47,7 +47,7 @@ like the `manifest.toml`/`manifest.json`.
<div class="alert alert-info"> <div class="alert alert-info">
The arguments are written in **[YunoHost Arguments The arguments are written in **[YunoHost Arguments
Format](#/packaging_apps_arguments_format)** like in `manifest.toml/json` Format](/packaging_apps_arguments_format)** like in `manifest.toml/json`
</div> </div>
The general pattern looks like this: The general pattern looks like this:

View file

@ -16,7 +16,7 @@ application, for example that could be:
* start a procedure * start a procedure
* regenerate a local cache * regenerate a local cache
[Full documentation](#/packaging_apps_actions) [Full documentation](packaging_apps_actions)
Example in the admin: Example in the admin:
@ -33,7 +33,7 @@ possible inside the application itself.
This is generally also the place where you want to add the option to make an This is generally also the place where you want to add the option to make an
application public or not. application public or not.
[Full documentation](#/packaging_apps_config_panel) [Full documentation](packaging_apps_config_panel)
Example in the admin: Example in the admin:

View file

@ -62,7 +62,7 @@ application, next to the manifest.json/toml. It looks like this:
<div class="alert alert-info"> <div class="alert alert-info">
The options are written in **[YunoHost Arguments The options are written in **[YunoHost Arguments
Format](#/packaging_apps_arguments_format)** like in `manifest.toml/json` Format](/packaging_apps_arguments_format)** like in `manifest.toml/json`
</div> </div>
```toml ```toml

View file

@ -6,10 +6,10 @@ do
sed -i -E 's@\(https://yunohost.org/#/(\w+)\)@(/\1)@g' $FILE sed -i -E 's@\(https://yunohost.org/#/(\w+)\)@(/\1)@g' $FILE
# Replace (/foo_fr) to (foo) # Replace (/foo_fr) to (foo)
sed -i -E 's@\(\/?((\w|-)+)_(en|fr|es|it|ar|de|oc)\)@(/\1)@g' $FILE sed -i -E 's@\(\/?((\w|-)+)_(en|fr|es|it|ar|de|oc|ca)\)@(/\1)@g' $FILE
# Replace href="/foo_fr" to href="foo" # Replace href="/foo_fr" to href="foo"
sed -i -E 's@href="/?((\w|-)+)_(en|fr|es|it|ar|de|oc)"@href="/\1"@g' $FILE; sed -i -E 's@href="/?((\w|-)+)_(en|fr|es|it|ar|de|oc|ca)"@href="/\1"@g' $FILE;
done done
git checkout project_organization.md project_organization_fr.md git checkout project_organization.md project_organization_fr.md

View file

@ -5,7 +5,7 @@ HTML_TARGETS=$(grep -nr -o -E 'href="\/?(\w|-)+\"' ./*.md | sed -E 's@href="/?@@
ALL_TARGETS=$(echo $MARKDOWN_TARGETS $HTML_TARGETS) ALL_TARGETS=$(echo $MARKDOWN_TARGETS $HTML_TARGETS)
PAGES=$(ls *.md | sed -E 's/(_(fr|it|de|ar|oc|es|ru))?.md//g' | sort | uniq) PAGES=$(ls *.md | sed -E 's/(_(fr|it|de|ar|oc|es|ru|ca))?.md//g' | sort | uniq)
returncode=0 returncode=0