From 233aae73be96d74c61985bc3f2cb8443ffdc1e68 Mon Sep 17 00:00:00 2001
From: fedoraBee <9395414+fedoraBee@users.noreply.github.com>
Date: Mon, 27 Apr 2026 01:43:36 +0200
Subject: [PATCH] docs: fixed repo code block
---
docs/templates/index.html.j2 | 61 +++++++++++++++++++-----------------
1 file changed, 33 insertions(+), 28 deletions(-)
diff --git a/docs/templates/index.html.j2 b/docs/templates/index.html.j2
index bfeecf7..6a84431 100644
--- a/docs/templates/index.html.j2
+++ b/docs/templates/index.html.j2
@@ -282,21 +282,28 @@
Add the repository and install the package on Fedora or compatible
RPM-based systems:
-
- # Add the repository configuration sudo tee
- /etc/yum.repos.d/flatpak-automatic.repo <<'EOF'
- [flatpak-automatic] name=Flatpak Automatic - Stable baseurl=https://{{
- github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1]
- }}/rpms/latest/stable/ enabled=1 gpgcheck=1 gpgkey=https://{{
- github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1]
- }}/gpg.key [flatpak-automatic-testing] name=Flatpak Automatic -
- Testing baseurl=https://{{ github_repo.split('/')[0] }}.github.io/{{
- github_repo.split('/')[1] }}/rpms/latest/testing/ enabled=0 gpgcheck=1
- gpgkey=https://{{ github_repo.split('/')[0] }}.github.io/{{
- github_repo.split('/')[1] }}/gpg.key EOF # Update the package metadata
- cache sudo dnf makecache # Install the flatpak-automatic package sudo
- dnf install flatpak-automatic
-
+ # Add the repository configuration
+sudo tee /etc/yum.repos.d/flatpak-automatic.repo <<'EOF'
+[flatpak-automatic]
+name=Flatpak Automatic - Stable
+baseurl=https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/rpms/latest/stable/
+enabled=1
+gpgcheck=1
+gpgkey=https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/gpg.key
+
+[flatpak-automatic-testing]
+name=Flatpak Automatic - Testing
+baseurl=https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/rpms/latest/testing/
+enabled=0
+gpgcheck=1
+gpgkey=https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/gpg.key
+EOF
+
+# Update the package metadata cache
+sudo dnf makecache
+
+# Install the flatpak-automatic package
+sudo dnf install flatpak-automatic
@@ -305,19 +312,17 @@
Add the repository and install the package on Ubuntu, Debian, or
compatible systems:
-
- # Download the GPG key and convert it to a format APT understands curl
- -fsSL https://{{ github_repo.split('/')[0] }}.github.io/{{
- github_repo.split('/')[1] }}/gpg.key | sudo gpg --dearmor -o
- /usr/share/keyrings/flatpak-automatic-archive-keyring.gpg # Add the
- repository to your system's sources list echo "deb
- [signed-by=/usr/share/keyrings/flatpak-automatic-archive-keyring.gpg]
- https://{{ github_repo.split('/')[0] }}.github.io/{{
- github_repo.split('/')[1] }}/debs stable main" | sudo tee
- /etc/apt/sources.list.d/flatpak-automatic.list # Update your local
- package index sudo apt-get update # Install the flatpak-automatic
- package sudo apt-get install flatpak-automatic
-
+
# Download the GPG key and convert it to a format APT understands
+curl -fsSL https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/flatpak-automatic-archive-keyring.gpg
+
+# Add the repository to your system's sources list
+echo "deb [signed-by=/usr/share/keyrings/flatpak-automatic-archive-keyring.gpg] https://{{ github_repo.split('/')[0] }}.github.io/{{ github_repo.split('/')[1] }}/debs stable main" | sudo tee /etc/apt/sources.list.d/flatpak-automatic.list
+
+# Update your local package index
+sudo apt-get update
+
+# Install the flatpak-automatic package
+sudo apt-get install flatpak-automatic