From c1fe7922ea378424d21d1ef6bb0b09b158fbc719 Mon Sep 17 00:00:00 2001
From: Justin Clareburt <122523970+justo-mend@users.noreply.github.com>
Date: Sun, 18 Aug 2024 12:52:20 +0200
Subject: [PATCH] docs: create sidebar entries for Mend-hosted app secrets
 pages (#30718)

Co-authored-by: Rhys Arkins <rhys@arkins.net>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
---
 docs/usage/.pages                                             | 1 +
 docs/usage/getting-started/private-packages.md                | 4 ++--
 docs/usage/mend-hosted/.pages                                 | 4 ++++
 docs/usage/{getting-started => mend-hosted}/app-secrets.md    | 0
 .../{getting-started => mend-hosted}/migrating-secrets.md     | 0
 5 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 docs/usage/mend-hosted/.pages
 rename docs/usage/{getting-started => mend-hosted}/app-secrets.md (100%)
 rename docs/usage/{getting-started => mend-hosted}/migrating-secrets.md (100%)

diff --git a/docs/usage/.pages b/docs/usage/.pages
index 809fc07575..3af17586ef 100644
--- a/docs/usage/.pages
+++ b/docs/usage/.pages
@@ -9,6 +9,7 @@ nav:
       - 'Self-hosted': 'self-hosted-configuration.md'
       - 'Presets': 'config-presets.md'
       - 'Validation': 'config-validation.md'
+  - ... | mend-hosted
   - ... | key-concepts
   - ... | modules
   - Language Support:
diff --git a/docs/usage/getting-started/private-packages.md b/docs/usage/getting-started/private-packages.md
index 2e776a1e2d..5efa53b1bb 100644
--- a/docs/usage/getting-started/private-packages.md
+++ b/docs/usage/getting-started/private-packages.md
@@ -590,7 +590,7 @@ The preferred approach to secrets is that the bot administrator configures them
     Mend no longer supports putting encrypted secrets in the Renovate config file on your repository.
     Going forward, all secrets must be stored in the App settings via the web UI.
     If you have encrypted secrets in your Renovate config, you must migrate them to the web UI.
-    Read [Migrating Secrets from Repo Config to App Settings](migrating-secrets.md) to learn how.
+    Read [Migrating Secrets from Repo Config to App Settings](../mend-hosted/migrating-secrets.md) to learn how.
 
 If you need to provide credentials to the Mend Renovate App, please do this:
 
@@ -611,7 +611,7 @@ If you need to provide credentials to the Mend Renovate App, please do this:
    }
    ```
 
-For more details, see [Using Secrets with Mend Cloud Apps](app-secrets.md).
+For more details, see [Using Secrets with Mend Cloud Apps](../mend-hosted/app-secrets.md).
 
 ### Access to GitHub Actions Secrets
 
diff --git a/docs/usage/mend-hosted/.pages b/docs/usage/mend-hosted/.pages
new file mode 100644
index 0000000000..8994a56f0d
--- /dev/null
+++ b/docs/usage/mend-hosted/.pages
@@ -0,0 +1,4 @@
+title: Mend-hosted Apps
+nav:
+  - 'App Secrets': 'app-secrets.md'
+  - 'Migrating Secrets': 'migrating-secrets.md'
diff --git a/docs/usage/getting-started/app-secrets.md b/docs/usage/mend-hosted/app-secrets.md
similarity index 100%
rename from docs/usage/getting-started/app-secrets.md
rename to docs/usage/mend-hosted/app-secrets.md
diff --git a/docs/usage/getting-started/migrating-secrets.md b/docs/usage/mend-hosted/migrating-secrets.md
similarity index 100%
rename from docs/usage/getting-started/migrating-secrets.md
rename to docs/usage/mend-hosted/migrating-secrets.md
-- 
GitLab