Skip to content

Commit ca569ec

Browse files
committed
Fix v1.0.0 automated issues - part of #40
1 parent 345c06c commit ca569ec

File tree

7 files changed

+25
-18
lines changed

7 files changed

+25
-18
lines changed

blog/2024-11-07-release-1.0.0.mdx

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,18 @@ This is a Freemium application. Version 1.0.0 is 100% free.
2929
It is possible that in future versions, some (new future) functions will be paid.
3030

3131
Finally, here are some technical details and conditions of use.
32+
3233
The interactions between the application and the outside are as follows:
3334
- depending on the configuration of the robot(s), exchanges with the Minecraft server(s) to control their connection/actions,
34-
- sending anonymized statistics of the application’s use to a Umami Cloud instance.
35+
- sending anonymized statistics of the application’s use to a [Umami Cloud](https://umami.is/docs/cloud) instance.
3536

3637
Using the ChickenBot application means accepting these conditions of use and therefore the sending of anonymized statistics.
3738
In transparency, the installation guide shows how to activate the debug and trace these calls.
3839
The anonymized statistics are used to better understand the uses of the application, and to improve future versions.
3940

4041
### Download
41-
[Download Binary](https://github.com/chickarmy/chickenbot-web/releases/download/1.0.0/package.readme.txt)
42+
[Download Binary](https://github.com/chickarmy/chickenbot-web/releases/download/v1.0.0/chicken-bot.1.0.0.exe)
4243

4344
:::tip[Info]
4445

45-
[Release Notes](https://github.com/chickarmy/chickenbot-web/releases/tag/1.0.0)
46+
[Release Notes](https://github.com/chickarmy/chickenbot-web/releases/tag/v1.0.0)

data/versions.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"label_fr": "publication 1.0.0",
66
"description": "Version 1.0.0 is the very first public version of ChickenBot!\\n\\nChickenBot is a standalone Windows Desktop application that allows you to start an automated Minecraft player:\\nWe are talking about a ’bot’ here, or ’robot’ in French.\\n\\nThe main goal of this application is to allow a wide audience to easily create fun Minecraft bots.\\n",
77
"description_fr": "La version 1.0.0 est la toute première version publique de ChickenBot !\\n\\nChickenBot est une application de Bureau Windows autonome qui permet de démarrer un joueur Minecraft automatisé : \\nOn parle ici de ’robot’, ou ’bot’ en anglais.\\n\\nLe principal objectif de cette application est de permettre à un large public de créer simplement des robots Minecraft amusants.\\n",
8-
"note": "https://github.com/chickarmy/chickenbot-web/releases/tag/1.0.0",
9-
"download": "https://github.com/chickarmy/chickenbot-web/releases/download/1.0.0/package.readme.txt"
8+
"note": "https://github.com/chickarmy/chickenbot-web/releases/tag/v1.0.0",
9+
"download": "https://github.com/chickarmy/chickenbot-web/releases/download/v1.0.0/chicken-bot.1.0.0.exe"
1010
}
1111
]

docs/intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ sidebar_position: 1
66

77
Start by reading **[bot setup](./setup)**.
88

9-
Then continue by reading **[bot user guide](/docs/userguide)**.
9+
Then continue by reading **[bot user guide](/docs/category/user-guide)**.

docs/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ Once the executable file is located on your workstation, start it !
2424

2525
A desktop application popup must appears. You're in !
2626

27-
Continue by reading **[bot user guide](/docs/category/userguide)**.
27+
Continue by reading **[bot user guide](/docs/category/user-guide)**.
2828

2929
To get more advanced tips about setup, cf. [this page](./setup-advanced.md).

i18n/fr/docusaurus-plugin-content-blog/2024-11-07-release-1.0.0.mdx

+6-5
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,19 @@ C’est une application Freemium. La version 1.0.0 est 100% gratuite.
3030
Il est possible que dans de futures versions, certaines (nouvelles futures) fonctions soient payantes.
3131

3232
Voici enfin quelques précisions techniques et conditions d’utilisation.
33-
Les interactions entre l’application et l’extérieur sont les suivantes:
33+
34+
Les interactions entre l’application et l’extérieur sont les suivantes :
3435
- suivant la configuration du(des) robot(s), échanges avec le(s) serveur(s) Minecraft pour piloter leur connexion/actions,
35-
- envoi de statistiques anonymisées d’utilisation de l’application vers une instance Cloud de Umami.
36+
- envoi de statistiques anonymisées d’utilisation de l’application vers une [instance Cloud Umami](https://umami.is/docs/cloud).
3637

3738
Utiliser l’application ChickenBot revient à accepter ces conditions d’utilisation et donc l’envoi de statistiques anonymisés.
3839
En transparence, le guide installation montre comment activer le debug et tracer ces appels.
3940
Les statistiques anonymisées servent à mieux connaître les usages de l’application, et à améliorer les futures versions.
4041

4142

42-
### Download
43-
[Download Binary](https://github.com/chickarmy/chickenbot-web/releases/download/1.0.0/package.readme.txt)
43+
### Télécharger
44+
[Télécharger le binaire](https://github.com/chickarmy/chickenbot-web/releases/download/v1.0.0/chicken-bot.1.0.0.exe)
4445

4546
:::tip[Info]
4647

47-
[Release Notes](https://github.com/chickarmy/chickenbot-web/releases/tag/1.0.0)
48+
[Note de version](https://github.com/chickarmy/chickenbot-web/releases/tag/v1.0.0)

src/components/HomepageVersions/index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ import versions from "../../../data/versions.json";
33
import clsx from "clsx";
44
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
55

6-
function VersionEntry({locale, version, label,
6+
function VersionEntry({locale, version, label, label_fr,
77
description, description_fr,download, note}) {
88
if (version === undefined) {
99
return null;
1010
}
11+
let versionDescription = locale === 'fr' ? description_fr : description;
12+
versionDescription = versionDescription?.replace(/\\n/g, ' ');
13+
let versionLabel = locale === 'fr' ? label_fr : label;
1114
return (
1215
<div className={clsx('col col--4')}>
1316
<div className={styles.botVersion}>
14-
<a href={download}>🐔 {version} - {label} 🤖</a> <a href={note}>📝</a><br/><br/>
15-
{locale === 'fr' ? description_fr : description}
17+
<a href={download}>🐔 {version} - {versionLabel} 🤖</a> <a href={note}>📝</a><br/><br/>
18+
{versionDescription}
1619
</div>
1720
</div>
1821
)

src/pages/index.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ function compareVersions(v1, v2) {
2828
}
2929

3030
function HomepageHeader() {
31-
const {siteConfig} = useDocusaurusContext();
31+
const {siteConfig,i18n} = useDocusaurusContext();
32+
const locale = i18n.currentLocale;
3233
const lastVersion = maxVersion(versions);
33-
34+
let downloadLabel = locale === 'fr' ? "Télécharger " : "Download ";
35+
let versionLabel = locale === 'fr' ? lastVersion?.label_fr : lastVersion?.label;
3436
return (
3537
<header className={clsx('hero hero--primary', styles.heroBanner)}>
3638
<div className="container">
@@ -43,7 +45,7 @@ function HomepageHeader() {
4345
<Link
4446
className="button button--secondary button--lg"
4547
to={lastVersion.download}>
46-
Download Chickenbot {lastVersion.label}
48+
{downloadLabel} Chickenbot {versionLabel}
4749
</Link>
4850
</div>
4951
)}

0 commit comments

Comments
 (0)