mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
Fix links format + other tests issues
This commit is contained in:
parent
f2f14bf4ca
commit
a070d6305d
7 changed files with 15 additions and 15 deletions
|
@ -15,15 +15,15 @@
|
|||
* [Manifest](packaging_apps_manifest)
|
||||
* [Scripts](packaging_apps_scripts)
|
||||
* [Arguments management](packaging_apps_arguments_management)
|
||||
* [Arguments format](#/packaging_apps_arguments_format)
|
||||
* [Arguments format](packaging_apps_arguments_format)
|
||||
* [Nginx configuration](packaging_apps_nginx_conf)
|
||||
* [Multi-instance](packaging_apps_multiinstance)
|
||||
* [Helpers](packaging_apps_helpers)
|
||||
* [Trap usage](/packaging_apps_trap)
|
||||
* [Adding your app to the apps list](https://github.com/YunoHost/Apps/#contributing)
|
||||
* [Advanced packaging features](#/packaging_apps_advanced)
|
||||
* [Application actions](#/packaging_apps_actions)
|
||||
* [Application configuration panel](#/packaging_apps_config_panel)
|
||||
* [Advanced packaging features](/packaging_apps_advanced)
|
||||
* [Application actions](/packaging_apps_actions)
|
||||
* [Application configuration panel](/packaging_apps_config_panel)
|
||||
* Quality tests
|
||||
* [Package linter](https://github.com/YunoHost/package_linter)
|
||||
* [Package check](https://github.com/YunoHost/package_check)
|
||||
|
|
|
@ -15,15 +15,15 @@
|
|||
* [Manifest](/packaging_apps_manifest)
|
||||
* [Scripts](/packaging_apps_scripts)
|
||||
* [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)
|
||||
* [Multi-instance](/packaging_apps_multiinstance)
|
||||
* [Fonctions utiles](/packaging_apps_helpers)
|
||||
* [Utilisation de 'trap'](/packaging_apps_trap)
|
||||
* [Ajouter son application à la liste des apps](https://github.com/YunoHost/Apps/#contributing)
|
||||
* [Feature de packaging avancées](#/packaging_apps_advanced)
|
||||
* [Actions pour une application](#/packaging_apps_actions)
|
||||
* [Panneau de configuration pour une application](#/packaging_apps_config_panel)
|
||||
* [Feature de packaging avancées](/packaging_apps_advanced)
|
||||
* [Actions pour une application](/packaging_apps_actions)
|
||||
* [Panneau de configuration pour une application](/packaging_apps_config_panel)
|
||||
* Tests de qualité
|
||||
* [Package linter](https://github.com/YunoHost/package_linter)
|
||||
* [Package check](https://github.com/YunoHost/package_check)
|
||||
|
|
|
@ -47,7 +47,7 @@ like the `manifest.toml`/`manifest.json`.
|
|||
|
||||
<div class="alert alert-info">
|
||||
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>
|
||||
|
||||
The general pattern looks like this:
|
||||
|
|
|
@ -16,7 +16,7 @@ application, for example that could be:
|
|||
* start a procedure
|
||||
* regenerate a local cache
|
||||
|
||||
[Full documentation](#/packaging_apps_actions)
|
||||
[Full documentation](packaging_apps_actions)
|
||||
|
||||
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
|
||||
application public or not.
|
||||
|
||||
[Full documentation](#/packaging_apps_config_panel)
|
||||
[Full documentation](packaging_apps_config_panel)
|
||||
|
||||
Example in the admin:
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ application, next to the manifest.json/toml. It looks like this:
|
|||
|
||||
<div class="alert alert-info">
|
||||
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>
|
||||
|
||||
```toml
|
||||
|
|
|
@ -6,10 +6,10 @@ do
|
|||
sed -i -E 's@\(https://yunohost.org/#/(\w+)\)@(/\1)@g' $FILE
|
||||
|
||||
# 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"
|
||||
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
|
||||
|
||||
git checkout project_organization.md project_organization_fr.md
|
||||
|
|
|
@ -5,7 +5,7 @@ HTML_TARGETS=$(grep -nr -o -E 'href="\/?(\w|-)+\"' ./*.md | sed -E 's@href="/?@@
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue