Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use sh for docs shell snippets

Manav Rathifd234ed5bfe2
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index 46d4028991..2cda065263 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -4,7 +4,7 @@ Documentation for Ente's products published at [ente.com/help](https://ente.com/
## Development commands
-```bash
+```sh
npm ci # Install dependencies
npm run dev # Start local dev server
npm run build # Build for production
@@ -35,7 +35,7 @@ Platform instructions use bold headers: `**On mobile:**`, `**On desktop:**`, `**
FAQ questions need unique anchor IDs: `### Question? {#descriptive-anchor-id}`. Use descriptive IDs (`{#enable-face-recognition-ml}`, not `{#faq1}`), and keep them unique across all FAQ files. Check for duplicates with:
-```bash
+```sh
grep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d
```
diff --git a/docs/docs/auth/faq/android-apk-signature.md b/docs/docs/auth/faq/android-apk-signature.md
index 1e4005cfe1..4df1736fe0 100644
--- a/docs/docs/auth/faq/android-apk-signature.md
+++ b/docs/docs/auth/faq/android-apk-signature.md
@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa
## Verify the APK
-```bash
+```sh
apksigner verify --print-certs <path_to_apk>
```
diff --git a/docs/docs/auth/migration/steam/index.md b/docs/docs/auth/migration/steam/index.md
index 1c3591386c..b4bd76474d 100644
--- a/docs/docs/auth/migration/steam/index.md
+++ b/docs/docs/auth/migration/steam/index.md
@@ -28,7 +28,7 @@ One way to migrate is to [use this tool by dyc3][releases] to simplify the proce
1. Download the `.deb` from the [releases page][releases].
2. Open a terminal and run this to install it:
-```bash
+```sh
sudo dpkg -i ./steamguard-cli_<version>_amd64.deb
```
@@ -37,7 +37,7 @@ sudo dpkg -i ./steamguard-cli_<version>_amd64.deb
1. Download `steamguard` from the [releases page][releases]
2. Make it executable, and move `steamguard` to `/usr/local/bin` or any other directory in your `$PATH`.
-```bash
+```sh
chmod +x ./steamguard
sudo mv ./steamguard /usr/local/bin
```
@@ -48,7 +48,7 @@ sudo mv ./steamguard /usr/local/bin
Set up a new account with steamguard-cli
-```bash
+```sh
steamguard setup # set up a new account with steamguard-cli
```
@@ -56,7 +56,7 @@ steamguard setup # set up a new account with steamguard-cli
steamguard-cli can then generate a QR code for your 2FA secret.
-```bash
+```sh
steamguard qr # print QR code for the first account in your maFiles
steamguard -u <account name> qr # print QR code for a specific account
```
diff --git a/docs/docs/ensu/faq/android-apk-signature.md b/docs/docs/ensu/faq/android-apk-signature.md
index 16921a58af..e74224418c 100644
--- a/docs/docs/ensu/faq/android-apk-signature.md
+++ b/docs/docs/ensu/faq/android-apk-signature.md
@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store packages may use
## Verify the APK
-```bash
+```sh
apksigner verify --print-certs <path_to_apk>
```
diff --git a/docs/docs/locker/getting-started/android-apk-signature.md b/docs/docs/locker/getting-started/android-apk-signature.md
index 1173bd3813..44a342e147 100644
--- a/docs/docs/locker/getting-started/android-apk-signature.md
+++ b/docs/docs/locker/getting-started/android-apk-signature.md
@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa
## Verify the APK
-```bash
+```sh
apksigner verify --print-certs <path_to_apk>
```
diff --git a/docs/docs/photos/STYLE_GUIDE.md b/docs/docs/photos/STYLE_GUIDE.md
index b153c73f1e..960d9be12e 100644
--- a/docs/docs/photos/STYLE_GUIDE.md
+++ b/docs/docs/photos/STYLE_GUIDE.md
@@ -111,7 +111,7 @@ Use consistent format with `>` separator:
Always specify language:
````markdown
-```bash
+```sh
command here
```
````
@@ -136,7 +136,7 @@ Always use H3 with mandatory anchor for deep linking:
**Testing for duplicates:**
-```bash
+```sh
# Run this command to check for duplicate anchor IDs:
grep -rh "{#[a-z0-9-]*}" docs/photos/faq/*.md | sed 's/.*{#\([^}]*\)}.*/\1/' | sort | uniq -d
```
diff --git a/docs/docs/photos/faq/advanced-features.md b/docs/docs/photos/faq/advanced-features.md
index 8f9da269c0..01d68209b2 100644
--- a/docs/docs/photos/faq/advanced-features.md
+++ b/docs/docs/photos/faq/advanced-features.md
@@ -36,7 +36,7 @@ Learn more in the [CLI installation guide](/photos/features/utilities/cli#instal
The CLI supports incremental exports, which means it will only download new or changed files. Configure the export directory for the account once, then run exports whenever you need:
-```bash
+```sh
# Configure where this account should export files
ente account update --app photos --email [email protected] --dir /path/to/backup
@@ -61,7 +61,7 @@ The recommended approach is to use the CLI to pull data from Ente to your NAS:
Example cron job for daily sync:
-```bash
+```sh
# Run once to set up the export directory
/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup
diff --git a/docs/docs/photos/features/utilities/cli.md b/docs/docs/photos/features/utilities/cli.md
index 91b283d0af..5f43793812 100644
--- a/docs/docs/photos/features/utilities/cli.md
+++ b/docs/docs/photos/features/utilities/cli.md
@@ -45,7 +45,7 @@ Ente's CLI is distributed directly over [GitHub](https://github.com/ente-io/ente
Before using the CLI, you need to authenticate:
-```bash
+```sh
ente account login
```
@@ -55,7 +55,7 @@ This will prompt for your email and password, then store your session securely.
The CLI supports **incremental exports**, downloading only new or changed files. Set or change the destination directory per account, then run the export:
-```bash
+```sh
# Configure the export directory for your account (run once)
ente account update --app photos --email [email protected] --dir /path/to/backup
@@ -83,7 +83,7 @@ You can automate exports using cron (Linux/macOS) or Task Scheduler (Windows).
Set the export directory for the account once (outside cron) and then schedule `ente export`:
-```bash
+```sh
# Run once to set the directory the export job should use
/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup
@@ -111,7 +111,7 @@ The recommended approach for keeping NAS and Ente synced is to use the CLI to **
**Example for daily NAS sync:**
-```bash
+```sh
/usr/local/bin/ente account update --app photos --email [email protected] --dir /nas/ente-backup
0 2 * * * /usr/local/bin/ente export
```
diff --git a/docs/docs/photos/getting-started/android-apk-signature.md b/docs/docs/photos/getting-started/android-apk-signature.md
index ac243a8219..04e0fd0846 100644
--- a/docs/docs/photos/getting-started/android-apk-signature.md
+++ b/docs/docs/photos/getting-started/android-apk-signature.md
@@ -16,7 +16,7 @@ These fingerprints are for the direct APK download. Play Store and F-Droid packa
## Verify the APK
-```bash
+```sh
apksigner verify --print-certs <path_to_apk>
```
diff --git a/docs/docs/self-hosting/administration/cli.md b/docs/docs/self-hosting/administration/cli.md
index 9ec82d620b..4404db4edc 100644
--- a/docs/docs/self-hosting/administration/cli.md
+++ b/docs/docs/self-hosting/administration/cli.md
@@ -41,7 +41,7 @@ To create a new account, use Ente Photos (or Ente Auth) web application, desktop
You can add your existing account using Ente CLI.
-```shell
+```sh
ente account add
```
@@ -55,7 +55,7 @@ You can use `ente admin update-subscription` to increase storage quota and accou
For infinite storage and validity, use the following command:
-```shell
+```sh
ente admin update-subscription -a <admin-user-mail> -u <user-email-to-update> --no-limit
# Set a limit
diff --git a/docs/docs/self-hosting/administration/object-storage.md b/docs/docs/self-hosting/administration/object-storage.md
index 6b573e53a2..b1568f66ba 100644
--- a/docs/docs/self-hosting/administration/object-storage.md
+++ b/docs/docs/self-hosting/administration/object-storage.md
@@ -136,7 +136,7 @@ You may have to change the `AllowedOrigins` to allow only certain origins (your
Assuming you have AWS CLI on your system and that you have configured it with your access key and secret, you can execute the below command to set bucket CORS. Make sure to enter the right path for the `cors.json` file.
-```shell
+```sh
aws s3api put-bucket-cors --bucket YOUR_S3_BUCKET --cors-configuration /path/to/cors.json
```
@@ -144,7 +144,7 @@ aws s3api put-bucket-cors --bucket YOUR_S3_BUCKET --cors-configuration /path/to/
Assuming you have configured an alias for MinIO account using the command:
-```shell
+```sh
mc alias set storage-account-alias minio-endpoint minio-key minio-secret
```
@@ -157,7 +157,7 @@ where,
To set the `AllowedOrigins` Header, you can use the following command:.
-```shell
+```sh
mc admin config set storage-account-alias api cors_allow_origin="*"
```
diff --git a/docs/docs/self-hosting/administration/reverse-proxy.md b/docs/docs/self-hosting/administration/reverse-proxy.md
index 2520cea985..e01d7106b8 100644
--- a/docs/docs/self-hosting/administration/reverse-proxy.md
+++ b/docs/docs/self-hosting/administration/reverse-proxy.md
@@ -97,7 +97,7 @@ memories.ente.yourdomain.tld {
Reload Caddy for changes to take effect.
-```shell
+```sh
sudo systemctl reload caddy
```
diff --git a/docs/docs/self-hosting/administration/users.md b/docs/docs/self-hosting/administration/users.md
index 5592a7d7e7..d8bb6682c3 100644
--- a/docs/docs/self-hosting/administration/users.md
+++ b/docs/docs/self-hosting/administration/users.md
@@ -56,7 +56,7 @@ If you have edited the Compose file or configuration file (`museum.yaml`), make
You can do this by the following command:
-```shell
+```sh
docker compose down && docker compose up -d
```
diff --git a/docs/docs/self-hosting/installation/compose.md b/docs/docs/self-hosting/installation/compose.md
index f3d947b955..f7373c94b3 100644
--- a/docs/docs/self-hosting/installation/compose.md
+++ b/docs/docs/self-hosting/installation/compose.md
@@ -30,7 +30,7 @@ Copy the configuration files for modification by the following command inside `s
This allows you to modify configuration without having to face hassle while pulling in latest changes.
-```shell
+```sh
# Inside the cloned repository's directory (usually `ente`)
cd server/config
cp example.env .env
@@ -47,7 +47,7 @@ You should consider generating values for JWT and encryption keys for emails if
You can do by running the following command inside `ente/server`, assuming you cloned the repository to `ente`:
-```shell
+```sh
# Change into the ente/server
cd ente/server
# Generate secrets
diff --git a/docs/docs/self-hosting/installation/config.md b/docs/docs/self-hosting/installation/config.md
index abe5deab41..b1f94089e8 100644
--- a/docs/docs/self-hosting/installation/config.md
+++ b/docs/docs/self-hosting/installation/config.md
@@ -110,7 +110,7 @@ They are generated by random in quickstart script, so no intervention is necessa
However, if you are using Ente for long-term needs and you have not installed Ente via quickstart, consider generating values for these along with [JWT](#jwt) by following the steps described below:
-```shell
+```sh
# If you have not cloned already
git clone https://github.com/ente-io/ente
diff --git a/docs/docs/self-hosting/installation/manual.md b/docs/docs/self-hosting/installation/manual.md
index a772ace709..54a927eae9 100644
--- a/docs/docs/self-hosting/installation/manual.md
+++ b/docs/docs/self-hosting/installation/manual.md
@@ -64,7 +64,7 @@ If you wish to run Ente from source without using Docker, follow the steps descr
Start by cloning Ente's repository from GitHub to your local machine.
-```shell
+```sh
git clone https://github.com/ente-io/ente
```
diff --git a/docs/docs/self-hosting/installation/post-install/index.md b/docs/docs/self-hosting/installation/post-install/index.md
index db4dc8b890..75f46fe78a 100644
--- a/docs/docs/self-hosting/installation/post-install/index.md
+++ b/docs/docs/self-hosting/installation/post-install/index.md
@@ -26,7 +26,7 @@ This code can be found in the server logs, which should be shown in your termina
If not, access the server logs inside the folder where Compose file resides.
-```shell
+```sh
sudo docker compose logs
```
@@ -79,7 +79,7 @@ If you have edited the Compose file or configuration file (`museum.yaml`), make
You can do this by the following command:
-```shell
+```sh
docker compose down && docker compose up -d
```
diff --git a/docs/docs/self-hosting/installation/upgrade.md b/docs/docs/self-hosting/installation/upgrade.md
index 6abefc038b..0afb33c0db 100644
--- a/docs/docs/self-hosting/installation/upgrade.md
+++ b/docs/docs/self-hosting/installation/upgrade.md
@@ -13,7 +13,7 @@ Upgrading Ente depends on the method of installation you have chosen.
You can free up some disk space by deleting older images that were used by obsolete containers.
-```shell
+```sh
docker image prune
```
@@ -23,7 +23,7 @@ Pull in the latest images in the directory where the Compose file resides. Resta
Run the following command inside `my-ente` directory (default name used in quickstart):
-```shell
+```sh
docker compose pull && docker compose up -d
```
diff --git a/docs/docs/self-hosting/troubleshooting/cli.md b/docs/docs/self-hosting/troubleshooting/cli.md
index b11b7c9d4d..fe69fdf6e8 100644
--- a/docs/docs/self-hosting/troubleshooting/cli.md
+++ b/docs/docs/self-hosting/troubleshooting/cli.md
@@ -19,7 +19,7 @@ If you are using Linux for accessing Ente CLI with, you can install a system key
For Ubuntu/Debian based distributions, you can install `gnome-keyring` via `apt`
-```shell
+```sh
sudo apt install gnome-keyring
```
@@ -31,7 +31,7 @@ In case of using Ente CLI on server environment, you may not be able to install
Set `ENTE_CLI_SECRETS_PATH` environment variable in your shell's configuration file (`~/.bashrc`, `~/.zshrc`, or other corresponding file)
-```shell
+```sh
# Replace ./secrets.txt with the path to secrets file
# that you are using for saving.
# IMPORTANT: Make sure it is stored in a secure place.
diff --git a/docs/docs/self-hosting/troubleshooting/docker.md b/docs/docs/self-hosting/troubleshooting/docker.md
index 3f32eabb23..98a982386c 100644
--- a/docs/docs/self-hosting/troubleshooting/docker.md
+++ b/docs/docs/self-hosting/troubleshooting/docker.md
@@ -9,7 +9,7 @@ description: Fixing Docker-related errors when trying to self-host Ente
>
> Remember to restart your cluster to ensure changes that you make in the `compose.yaml` and `museum.yaml` get picked up.
>
-> ```shell
+> ```sh
> docker compose down
> docker compose up
> ```