diff --git a/tools/readme_generator/tests/README.md b/tools/readme_generator/tests/README.md new file mode 100644 index 0000000000..9217ea2468 --- /dev/null +++ b/tools/readme_generator/tests/README.md @@ -0,0 +1,60 @@ + + +# GoToSocial for YunoHost + +[![Integration level](https://dash.yunohost.org/integration/gotosocial.svg)](https://dash.yunohost.org/appci/app/gotosocial) ![Working status](https://ci-apps.yunohost.org/ci/badges/gotosocial.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/gotosocial.maintain.svg) + +[![Install GoToSocial with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gotosocial) + +*[Lire ce readme en français.](./README_fr.md)* + +> *This package allows you to install GoToSocial quickly and simply on a YunoHost server. +If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* + +## Overview + +GoToSocial is a fast [ActivityPub](https://activitypub.rocks/) social network server, written in Golang. + +With GoToSocial, you can keep in touch with your friends, post, read, and share images and articles. All without being tracked or advertised to! + +The official documentation is at [docs.gotosocial.org](https://docs.gotosocial.org). +The documentation for this YunoHost package [can be read here](./doc/DOCS.md) and the admin is **strongly encouraged to read it**! + +Please note that this package uses the ["i'm so tired" software license 1.0](https://github.com/YunoHost-Apps/gotosocial_ynh/blob/master/LICENSE), please read it and accept it before proceeding with installation. + +**Shipped version:** 0.13.3~ynh1 + +## Screenshots + +![Screenshot of GoToSocial](./doc/screenshots/screenshot.png) + +## :red_circle: Antifeatures + +- **Alpha software**: Early development stage. May contain changing or unstable features, bugs, and security vulnerability. +- **Not totally free package**: The YunoHost package of this app is under an overall free licence, but with clauses that restrict its use. + +## Documentation and resources + +- Official app website: +- Official user documentation: +- Official admin documentation: +- Upstream app code repository: +- YunoHost Store: +- Report a bug: + +## Developer info + +Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing). + +To try the testing branch, please proceed like that. + +``` bash +sudo yunohost app install https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing --debug +or +sudo yunohost app upgrade gotosocial -u https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing --debug +``` + +**More info regarding app packaging:** diff --git a/tools/readme_generator/tests/README_fr.md b/tools/readme_generator/tests/README_fr.md new file mode 100644 index 0000000000..10eb87a9fc --- /dev/null +++ b/tools/readme_generator/tests/README_fr.md @@ -0,0 +1,60 @@ + + +# GoToSocial pour YunoHost + +[![Niveau d’intégration](https://dash.yunohost.org/integration/gotosocial.svg)](https://dash.yunohost.org/appci/app/gotosocial) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/gotosocial.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/gotosocial.maintain.svg) + +[![Installer GoToSocial avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=gotosocial) + +*[Read this readme in english.](./README.md)* + +> *Ce package vous permet d’installer GoToSocial rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* + +## Vue d’ensemble + +Un serveur de réseau social véloce basé sur [ActivityPub](https://activitypub.rocks/) écrit en Golang. + +Avec GoToSocial, vous pouvez rester en contact avec vos amis, publier, lire et partager des images et des articles. Tout cela sans être pisté ni subir de publicité ! + +Vous pouvez consulter la documentation officielle à l'adresse : [docs.gotosocial.org](https://docs.gotosocial.org). +La documentation de ce paquet YunoHost [est lisible ici](./doc/DOCS_fr.md) et l'admin est **vivement encouragé-e à la lire** ! + +Veuillez noter que ce paquet utilise la ["i'm so tired" software license 1.0](https://github.com/YunoHost-Apps/gotosocial_ynh/blob/master/LICENSE), veuillez la lire et l'accepter avant de procéder à l'installation. + +**Version incluse :** 0.13.3~ynh1 + +## Captures d’écran + +![Capture d’écran de GoToSocial](./doc/screenshots/screenshot.png) + +## :red_circle: Anti-fonctionnalités + +- **Logiciel en version alpha** : Le logiciel est au tout début de son développement. Il pourrait contenir des fonctionnalités changeantes ou instables, des bugs, et des failles de sécurité. +- **Package sous licence libre restreinte** : Le package YunoHost de cette application est sous une licence globalement libre, mais avec des clauses qui pourraient restreindre son utilisation. + +## Documentations et ressources + +- Site officiel de l’app : +- Documentation officielle utilisateur : +- Documentation officielle de l’admin : +- Dépôt de code officiel de l’app : +- YunoHost Store : +- Signaler un bug : + +## Informations pour les développeurs + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing). + +Pour essayer la branche testing, procédez comme suit. + +``` bash +sudo yunohost app install https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing --debug +ou +sudo yunohost app upgrade gotosocial -u https://github.com/YunoHost-Apps/gotosocial_ynh/tree/testing --debug +``` + +**Plus d’infos sur le packaging d’applications :** diff --git a/tools/readme_generator/tests/test_make_readme.py b/tools/readme_generator/tests/test_make_readme.py new file mode 100644 index 0000000000..5ca706d066 --- /dev/null +++ b/tools/readme_generator/tests/test_make_readme.py @@ -0,0 +1,27 @@ +import os +import tempfile +import subprocess + +from pathlib import Path + +CWD = Path(os.path.split(os.path.realpath(__file__))[0]) +COMMIT_ID = "8f788213b363a46a5b6faa8f844d86d4adac9446" + + +def test_running_make_readme(): + with tempfile.TemporaryDirectory() as name: + name = Path(name) + DIRECTORY = name / "gotosocial_ynh" + + subprocess.check_call(["git", "clone", "https://github.com/yunohost-apps/gotosocial_ynh", DIRECTORY, "-q"]) + subprocess.check_call(["git", "checkout", COMMIT_ID, "-q"], cwd=DIRECTORY) + + print(CWD) + subprocess.check_call([CWD / "../make_readme.py", DIRECTORY]) + + assert open(CWD / "README.md").read() == open(DIRECTORY / "README.md").read() + assert open(CWD / "README_fr.md").read() == open(DIRECTORY / "README_fr.md").read() + + +if __name__ == '__main__': + test_running_make_readme()