Skip to content

Repository files navigation

GitOps Demo 跨 Repository 架構文件

本專案使用 Docusaurus 建置 GitOps Demo 的跨 Repository 文件網站,集中說明各專案的整體架構、部署流程與操作方式。

相關 Repository

本文件 Repository 串連以下實作 Repository:

目錄結構

📁 gitops-demo-docs/
├── 📁 docs/
│   ├── 📁 Guides/          快速開始與服務存取指南
│   ├── 📁 cicd-workflow/   各 Repository 的 CI/CD 與執行順序
│   ├── 📄 variables.md     GitHub Secrets 與 AWS SSM Parameter contracts
│   └── 📄 *.md             架構、Cloud、IAM、DNS、Firewall、VPN 與 Repository 邊界
├── 📁 static/              網站靜態資源
└── 📁 src/                 網站樣式與元件

本機開發

需求:

  • Node.js 20 或更新版本
  • npm(使用已提交的 package-lock.json

安裝依賴:

npm install

啟動開發伺服器:

npm run start

預設會啟動支援 hot reload 的本機 Docusaurus server。

需要清除 Docusaurus cache 與產出檔案時:

npm run clear

驗證

提交文件或網站設定前,至少執行:

npm run typecheck
npm run build

npm run build 會產生 production site,並依 docusaurus.config.ts 將 broken links 與 broken anchors 視為失敗。Build output 位於 build/,不應提交至 Git。

新增或修改文件

  • 文件位置:Markdown/MDX 放在 docs/
  • 內容分類:操作指南放在 docs/Guides/;CI/CD 文件放在 docs/cicd-workflow/
  • 圖片與連結:圖片放在章節的 images/static/;站內頁面使用相對連結。
  • 文件語言:使用繁體中文,產品名稱、命令、路徑與識別字可保留英文。
  • 契約變更:同步核對 owner Repository 與直接 consumers。
  • 提交前驗證:執行 npm run typechecknpm run build

Sidebar 由 sidebars.tsdocs/ 目錄自動產生;頁面順序可透過 front matter 的 sidebar_position 調整。

部署

  • 觸發方式:在 GitHub Actions 手動執行 Deploy to GitHub Pages
  • 部署分支master
  • 執行流程npm cinpm run typechecknpm run build → GitHub Pages。

About

Central documentation and architecture repository for the GitOps Demo project.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages