mirror of
https://github.com/YunoHost/doc.git
synced 2024-09-03 20:06:26 +02:00
14 lines
471 B
Bash
14 lines
471 B
Bash
|
for FILE in $(ls *.md);
|
||
|
do
|
||
|
# Replace markdown links with full url ... we only need the relative url
|
||
|
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
|
||
|
|
||
|
# Replace href="/foo_fr" to href="foo"
|
||
|
sed -i -E 's@href="/?((\w|-)+)_(en|fr|es|it|ar|de|oc)"@href="/\1"@g' $FILE;
|
||
|
done
|
||
|
|
||
|
git checkout project_organization.md project_organization_fr.md
|