From 3533d630d8bdabf2ca01e8207115d829b3bc5f02 Mon Sep 17 00:00:00 2001 From: dyzulk <66510723+dyzulk@users.noreply.github.com> Date: Thu, 8 Jan 2026 19:51:23 +0700 Subject: [PATCH] fix: restore guide structure and add redirects --- next.config.js | 9 +++++++++ pages/_meta.json | 6 +----- pages/guide/index.mdx | 31 ++++++++++++++++++++++++++----- pages/index.mdx | 7 ------- public/_redirects | 1 + 5 files changed, 37 insertions(+), 17 deletions(-) delete mode 100644 pages/index.mdx create mode 100644 public/_redirects diff --git a/next.config.js b/next.config.js index f84b98c..27ca1f9 100644 --- a/next.config.js +++ b/next.config.js @@ -8,4 +8,13 @@ module.exports = withNextra({ images: { unoptimized: true, }, + async redirects() { + return [ + { + source: '/', + destination: '/guide', + permanent: true, + }, + ] + }, }) diff --git a/pages/_meta.json b/pages/_meta.json index 3b7a0cd..5b22f03 100644 --- a/pages/_meta.json +++ b/pages/_meta.json @@ -1,10 +1,6 @@ { - "index": { - "title": "Introduction", - "type": "page" - }, "guide": { - "title": "User Guide", + "title": "Documentation", "type": "page" } } \ No newline at end of file diff --git a/pages/guide/index.mdx b/pages/guide/index.mdx index 6545b1b..dde0c3f 100644 --- a/pages/guide/index.mdx +++ b/pages/guide/index.mdx @@ -1,8 +1,29 @@ -# User Guide +import { Cards, Card } from 'nextra/components' +import { BookOpen, ShieldCheck, Server, Mail, AlertTriangle, HardDriveDownload, Rocket } from 'lucide-react' -Welcome to the TrustLab User Guide. Here you will find step-by-step instructions on how to use our services. +# TrustLab Documentation -## Getting Started +Welcome to the **TrustLab User Guide**. +TrustLab is a private Certificate Authority (CA) designed to secure your internal infrastructure (Intranet, APIs, IoT, Databases) with SSL/TLS certificates. -- [Install Root CA](/guide/getting-started/install-root-ca) -- [Access Dashboard](/guide/getting-started/access-dashboard) +## Quick Start + + + } title="Install Root CA" href="/guide/getting-started/install-root-ca" arrow /> + } title="Generate Certificate" href="/guide/certificates/request-new" arrow /> + } title="Core Concepts (PKI)" href="/guide/concepts" arrow /> + + +## Guide Structure + +This documentation is organized as follows: + +* [**Getting Started**](/guide/getting-started/install-root-ca): Setup Root CA and access the dashboard. +* [**Core Concepts**](/guide/concepts): Understand the "Two Lanes of Trust" (Public vs Private PKI). +* [**Certificate Operations**](/guide/certificates/request-new): Request, Download, Renew, and Revoke certificates. +* [**Integrations**](/guide/integrations/web-servers): Configure Nginx, IIS, and S/MIME. +* [**Troubleshooting**](/guide/troubleshooting/browser-errors): Resolve common browser errors like `NET::ERR_CERT_AUTHORITY_INVALID`. + +## Why TrustLab? + +TrustLab solves the "Not Secure" warnings on internal networks by providing a centralized, managed PKI that acts just like a Public CA (Let's Encrypt), but for your **Private Network**. diff --git a/pages/index.mdx b/pages/index.mdx deleted file mode 100644 index 6326230..0000000 --- a/pages/index.mdx +++ /dev/null @@ -1,7 +0,0 @@ -# Welcome to TrustLab Docs - -Welcome to the official documentation for **TrustLab**, a private SSL/TLS certificate management system. - -## Getting Started - -TrustLab helps you manage your internal PKI infrastructure with ease. diff --git a/public/_redirects b/public/_redirects new file mode 100644 index 0000000..6f1a4f2 --- /dev/null +++ b/public/_redirects @@ -0,0 +1 @@ +/ /guide 301