Skip to content

Commit 2e18c23

Browse files
committed
fix: configure GitHub Pages base path for VitePress
- Add base: '/go-composer-sdk/' to VitePress config for GitHub Pages - Fix CSS and asset loading issues on GitHub Pages deployment - Ensure proper routing for multi-language documentation - Rebuild documentation with correct base path configuration
1 parent 87d45b5 commit 2e18c23

File tree

87 files changed

+313
-310
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+313
-310
lines changed

docs/.vitepress/config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { defineConfig } from 'vitepress'
33
export default defineConfig({
44
title: 'Go Composer SDK',
55
description: 'A comprehensive Go library for PHP Composer package manager',
6-
6+
7+
// GitHub Pages configuration
8+
base: '/go-composer-sdk/',
9+
710
// Multi-language support
811
locales: {
912
root: {

docs/.vitepress/dist/404.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
<title>404 | Go Composer SDK</title>
77
<meta name="description" content="Not Found">
88
<meta name="generator" content="VitePress v1.6.3">
9-
<link rel="preload stylesheet" href="/assets/style.qp7qGaqN.css" as="style">
10-
<link rel="preload stylesheet" href="/vp-icons.css" as="style">
9+
<link rel="preload stylesheet" href="/go-composer-sdk/assets/style.CfGwv3aQ.css" as="style">
10+
<link rel="preload stylesheet" href="/go-composer-sdk/vp-icons.css" as="style">
1111

12-
<script type="module" src="/assets/app.BBbz2L33.js"></script>
13-
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
12+
<script type="module" src="/go-composer-sdk/assets/app.B9MjFyEO.js"></script>
13+
<link rel="preload" href="/go-composer-sdk/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
1414
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
1515
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
1616
</head>
1717
<body>
1818
<div id="app"></div>
19-
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_core.md\":\"BEa8XD6A\",\"api_detector.md\":\"n97Z6QzX\",\"api_index.md\":\"i41z2UvX\",\"api_installer.md\":\"BVSxH9IY\",\"api_package-management.md\":\"QeOhfkPz\",\"api_platform-environment.md\":\"BJmM2XHx\",\"api_project-management.md\":\"DltITPOt\",\"api_security-audit.md\":\"CBVc8zti\",\"api_utilities.md\":\"Drp7W_sa\",\"examples_advanced-usage.md\":\"CXg3CZ5_\",\"examples_basic-operations.md\":\"D6KnnIQJ\",\"examples_index.md\":\"BtPm6U_t\",\"examples_package-management.md\":\"CD_Ccttq\",\"examples_project-setup.md\":\"CiOQJBoI\",\"examples_security-audit.md\":\"DPWFoHlh\",\"guide_basic-usage.md\":\"Bf71hc6r\",\"guide_configuration.md\":\"B7Sn3W-i\",\"guide_getting-started.md\":\"CGNj1KSR\",\"guide_installation.md\":\"DlPILnhq\",\"index.md\":\"3FyaaW8P\",\"zh_api_index.md\":\"GES28IYk\",\"zh_examples_index.md\":\"BrMOC0Cr\",\"zh_guide_getting-started.md\":\"Di0ueYE0\",\"zh_index.md\":\"Yc8WIfrt\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Go Composer SDK\",\"description\":\"A comprehensive Go library for PHP Composer package manager\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"search\":{\"provider\":\"local\"}},\"locales\":{\"root\":{\"label\":\"English\",\"lang\":\"en\",\"title\":\"Go Composer SDK\",\"description\":\"A comprehensive Go library for PHP Composer package manager\",\"themeConfig\":{\"nav\":[{\"text\":\"Home\",\"link\":\"/\"},{\"text\":\"Guide\",\"link\":\"/guide/getting-started\"},{\"text\":\"API Reference\",\"link\":\"/api/\"},{\"text\":\"Examples\",\"link\":\"/examples/\"},{\"text\":\"GitHub\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"sidebar\":{\"/guide/\":[{\"text\":\"Guide\",\"items\":[{\"text\":\"Getting Started\",\"link\":\"/guide/getting-started\"},{\"text\":\"Installation\",\"link\":\"/guide/installation\"},{\"text\":\"Configuration\",\"link\":\"/guide/configuration\"},{\"text\":\"Basic Usage\",\"link\":\"/guide/basic-usage\"}]}],\"/api/\":[{\"text\":\"API Reference\",\"items\":[{\"text\":\"Overview\",\"link\":\"/api/\"},{\"text\":\"Core\",\"link\":\"/api/core\"},{\"text\":\"Package Management\",\"link\":\"/api/package-management\"},{\"text\":\"Project Management\",\"link\":\"/api/project-management\"},{\"text\":\"Security & Audit\",\"link\":\"/api/security-audit\"},{\"text\":\"Platform & Environment\",\"link\":\"/api/platform-environment\"},{\"text\":\"Utilities\",\"link\":\"/api/utilities\"},{\"text\":\"Detector\",\"link\":\"/api/detector\"},{\"text\":\"Installer\",\"link\":\"/api/installer\"}]}],\"/examples/\":[{\"text\":\"Examples\",\"items\":[{\"text\":\"Overview\",\"link\":\"/examples/\"},{\"text\":\"Basic Operations\",\"link\":\"/examples/basic-operations\"},{\"text\":\"Package Management\",\"link\":\"/examples/package-management\"},{\"text\":\"Project Setup\",\"link\":\"/examples/project-setup\"},{\"text\":\"Security Audit\",\"link\":\"/examples/security-audit\"},{\"text\":\"Advanced Usage\",\"link\":\"/examples/advanced-usage\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright © 2024 Go Composer SDK\"}}},\"zh\":{\"label\":\"简体中文\",\"lang\":\"zh-CN\",\"title\":\"Go Composer SDK\",\"description\":\"全面的 PHP Composer 包管理器 Go 语言库\",\"themeConfig\":{\"nav\":[{\"text\":\"首页\",\"link\":\"/zh/\"},{\"text\":\"指南\",\"link\":\"/zh/guide/getting-started\"},{\"text\":\"API 参考\",\"link\":\"/zh/api/\"},{\"text\":\"示例\",\"link\":\"/zh/examples/\"},{\"text\":\"GitHub\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"sidebar\":{\"/zh/guide/\":[{\"text\":\"指南\",\"items\":[{\"text\":\"快速开始\",\"link\":\"/zh/guide/getting-started\"},{\"text\":\"安装\",\"link\":\"/zh/guide/installation\"},{\"text\":\"配置\",\"link\":\"/zh/guide/configuration\"},{\"text\":\"基本用法\",\"link\":\"/zh/guide/basic-usage\"}]}],\"/zh/api/\":[{\"text\":\"API 参考\",\"items\":[{\"text\":\"概览\",\"link\":\"/zh/api/\"},{\"text\":\"核心功能\",\"link\":\"/zh/api/core\"},{\"text\":\"包管理\",\"link\":\"/zh/api/package-management\"},{\"text\":\"项目管理\",\"link\":\"/zh/api/project-management\"},{\"text\":\"安全审计\",\"link\":\"/zh/api/security-audit\"},{\"text\":\"平台环境\",\"link\":\"/zh/api/platform-environment\"},{\"text\":\"工具函数\",\"link\":\"/zh/api/utilities\"},{\"text\":\"检测器\",\"link\":\"/zh/api/detector\"},{\"text\":\"安装器\",\"link\":\"/zh/api/installer\"}]}],\"/zh/examples/\":[{\"text\":\"示例\",\"items\":[{\"text\":\"概览\",\"link\":\"/zh/examples/\"},{\"text\":\"基本操作\",\"link\":\"/zh/examples/basic-operations\"},{\"text\":\"包管理\",\"link\":\"/zh/examples/package-management\"},{\"text\":\"项目设置\",\"link\":\"/zh/examples/project-setup\"},{\"text\":\"安全审计\",\"link\":\"/zh/examples/security-audit\"},{\"text\":\"高级用法\",\"link\":\"/zh/examples/advanced-usage\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"footer\":{\"message\":\"基于 MIT 许可证发布。\",\"copyright\":\"Copyright © 2024 Go Composer SDK\"}}}},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
19+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"api_core.md\":\"BjFhtxZC\",\"api_detector.md\":\"h9M4kX4Z\",\"api_index.md\":\"BM7RLu-v\",\"api_installer.md\":\"DxFc23I1\",\"api_package-management.md\":\"SxfjCH7q\",\"api_platform-environment.md\":\"Bdt-HVri\",\"api_project-management.md\":\"CAws-KwL\",\"api_security-audit.md\":\"B-oP1wUh\",\"api_utilities.md\":\"YTVk5JSN\",\"examples_advanced-usage.md\":\"Cbvlbw62\",\"examples_basic-operations.md\":\"DgKc1QQh\",\"examples_index.md\":\"dl9IIapV\",\"examples_package-management.md\":\"IxKMbSbC\",\"examples_project-setup.md\":\"C5pQhnpD\",\"examples_security-audit.md\":\"DPY82cRA\",\"guide_basic-usage.md\":\"DOoahO_n\",\"guide_configuration.md\":\"C6n9RugJ\",\"guide_getting-started.md\":\"C0dZmYT_\",\"guide_installation.md\":\"DinWeZyC\",\"index.md\":\"CJ4DaUkD\",\"zh_api_index.md\":\"C8czsIVs\",\"zh_examples_index.md\":\"GB9HWFii\",\"zh_guide_getting-started.md\":\"Bu_viR8S\",\"zh_index.md\":\"iTPwhpMs\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Go Composer SDK\",\"description\":\"A comprehensive Go library for PHP Composer package manager\",\"base\":\"/go-composer-sdk/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"search\":{\"provider\":\"local\"}},\"locales\":{\"root\":{\"label\":\"English\",\"lang\":\"en\",\"title\":\"Go Composer SDK\",\"description\":\"A comprehensive Go library for PHP Composer package manager\",\"themeConfig\":{\"nav\":[{\"text\":\"Home\",\"link\":\"/\"},{\"text\":\"Guide\",\"link\":\"/guide/getting-started\"},{\"text\":\"API Reference\",\"link\":\"/api/\"},{\"text\":\"Examples\",\"link\":\"/examples/\"},{\"text\":\"GitHub\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"sidebar\":{\"/guide/\":[{\"text\":\"Guide\",\"items\":[{\"text\":\"Getting Started\",\"link\":\"/guide/getting-started\"},{\"text\":\"Installation\",\"link\":\"/guide/installation\"},{\"text\":\"Configuration\",\"link\":\"/guide/configuration\"},{\"text\":\"Basic Usage\",\"link\":\"/guide/basic-usage\"}]}],\"/api/\":[{\"text\":\"API Reference\",\"items\":[{\"text\":\"Overview\",\"link\":\"/api/\"},{\"text\":\"Core\",\"link\":\"/api/core\"},{\"text\":\"Package Management\",\"link\":\"/api/package-management\"},{\"text\":\"Project Management\",\"link\":\"/api/project-management\"},{\"text\":\"Security & Audit\",\"link\":\"/api/security-audit\"},{\"text\":\"Platform & Environment\",\"link\":\"/api/platform-environment\"},{\"text\":\"Utilities\",\"link\":\"/api/utilities\"},{\"text\":\"Detector\",\"link\":\"/api/detector\"},{\"text\":\"Installer\",\"link\":\"/api/installer\"}]}],\"/examples/\":[{\"text\":\"Examples\",\"items\":[{\"text\":\"Overview\",\"link\":\"/examples/\"},{\"text\":\"Basic Operations\",\"link\":\"/examples/basic-operations\"},{\"text\":\"Package Management\",\"link\":\"/examples/package-management\"},{\"text\":\"Project Setup\",\"link\":\"/examples/project-setup\"},{\"text\":\"Security Audit\",\"link\":\"/examples/security-audit\"},{\"text\":\"Advanced Usage\",\"link\":\"/examples/advanced-usage\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright © 2024 Go Composer SDK\"}}},\"zh\":{\"label\":\"简体中文\",\"lang\":\"zh-CN\",\"title\":\"Go Composer SDK\",\"description\":\"全面的 PHP Composer 包管理器 Go 语言库\",\"themeConfig\":{\"nav\":[{\"text\":\"首页\",\"link\":\"/zh/\"},{\"text\":\"指南\",\"link\":\"/zh/guide/getting-started\"},{\"text\":\"API 参考\",\"link\":\"/zh/api/\"},{\"text\":\"示例\",\"link\":\"/zh/examples/\"},{\"text\":\"GitHub\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"sidebar\":{\"/zh/guide/\":[{\"text\":\"指南\",\"items\":[{\"text\":\"快速开始\",\"link\":\"/zh/guide/getting-started\"},{\"text\":\"安装\",\"link\":\"/zh/guide/installation\"},{\"text\":\"配置\",\"link\":\"/zh/guide/configuration\"},{\"text\":\"基本用法\",\"link\":\"/zh/guide/basic-usage\"}]}],\"/zh/api/\":[{\"text\":\"API 参考\",\"items\":[{\"text\":\"概览\",\"link\":\"/zh/api/\"},{\"text\":\"核心功能\",\"link\":\"/zh/api/core\"},{\"text\":\"包管理\",\"link\":\"/zh/api/package-management\"},{\"text\":\"项目管理\",\"link\":\"/zh/api/project-management\"},{\"text\":\"安全审计\",\"link\":\"/zh/api/security-audit\"},{\"text\":\"平台环境\",\"link\":\"/zh/api/platform-environment\"},{\"text\":\"工具函数\",\"link\":\"/zh/api/utilities\"},{\"text\":\"检测器\",\"link\":\"/zh/api/detector\"},{\"text\":\"安装器\",\"link\":\"/zh/api/installer\"}]}],\"/zh/examples/\":[{\"text\":\"示例\",\"items\":[{\"text\":\"概览\",\"link\":\"/zh/examples/\"},{\"text\":\"基本操作\",\"link\":\"/zh/examples/basic-operations\"},{\"text\":\"包管理\",\"link\":\"/zh/examples/package-management\"},{\"text\":\"项目设置\",\"link\":\"/zh/examples/project-setup\"},{\"text\":\"安全审计\",\"link\":\"/zh/examples/security-audit\"},{\"text\":\"高级用法\",\"link\":\"/zh/examples/advanced-usage\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/scagogogo/go-composer-sdk\"}],\"footer\":{\"message\":\"基于 MIT 许可证发布。\",\"copyright\":\"Copyright © 2024 Go Composer SDK\"}}}},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
2020

2121
</body>
2222
</html>

0 commit comments

Comments
 (0)