forked from router-for-me/CLIProxyAPI
-
Notifications
You must be signed in to change notification settings - Fork 2
chore: integrate @phenotype/docs #919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| [submodule "vendor/phenodocs"] | ||
| path = vendor/phenodocs | ||
| url = https://github.com/KooshaPari/phenodocs.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @phenotype:registry=https://npm.pkg.github.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,55 +1,51 @@ | ||
| import { defineConfig } from "vitepress"; | ||
| import { createPhenotypeConfig } from "@phenotype/docs/config"; | ||
|
|
||
| export default defineConfig({ | ||
| export default createPhenotypeConfig({ | ||
| title: "CLIProxyAPI++", | ||
| description: "CLIProxyAPI++ documentation", | ||
| base: process.env.GITHUB_ACTIONS ? "/cliproxyapi-plusplus/" : "/", | ||
| srcDir: ".", | ||
| lastUpdated: true, | ||
| cleanUrls: true, | ||
| ignoreDeadLinks: true, | ||
| themeConfig: { | ||
| nav: [ | ||
| { text: "Home", link: "/" }, | ||
| { text: "Wiki", link: "/wiki/" }, | ||
| { text: "Development Guide", link: "/development/" }, | ||
| { text: "Document Index", link: "/index/" }, | ||
| { text: "API", link: "/api/" }, | ||
| { text: "Roadmap", link: "/roadmap/" }, | ||
| ], | ||
| sidebar: [ | ||
| { | ||
| text: "Guide", | ||
| items: [ | ||
| { text: "Overview", link: "/" }, | ||
| { text: "Getting Started", link: "/getting-started" }, | ||
| { text: "Install", link: "/install" }, | ||
| { text: "Provider Usage", link: "/provider-usage" }, | ||
| { text: "Provider Catalog", link: "/provider-catalog" }, | ||
| { text: "DevOps and CI/CD", link: "/operations/devops-cicd" }, | ||
| { text: "Provider Operations", link: "/provider-operations" }, | ||
| { text: "Troubleshooting", link: "/troubleshooting" }, | ||
| { text: "Planning Boards", link: "/planning/" } | ||
| ] | ||
| }, | ||
| { | ||
| text: "Reference", | ||
| items: [ | ||
| { text: "Routing and Models", link: "/routing-reference" }, | ||
| { text: "Feature Guides", link: "/features/" }, | ||
| { text: "Docsets", link: "/docsets/" } | ||
| ] | ||
| }, | ||
| { | ||
| text: "API", | ||
| items: [ | ||
| { text: "API Index", link: "/api/" }, | ||
| { text: "OpenAI-Compatible API", link: "/api/openai-compatible" }, | ||
| { text: "Management API", link: "/api/management" }, | ||
| { text: "Operations API", link: "/api/operations" } | ||
| ] | ||
| } | ||
| ], | ||
| search: { provider: 'local' }, | ||
| socialLinks: [{ icon: 'github', link: 'https://github.com/KooshaPari/cliproxyapi-plusplus' }] | ||
| } | ||
| }) | ||
| githubOrg: "KooshaPari", | ||
| githubRepo: "cliproxyapi-plusplus", | ||
| nav: [ | ||
| { text: "Home", link: "/" }, | ||
| { text: "Wiki", link: "/wiki/" }, | ||
| { text: "Development Guide", link: "/development/" }, | ||
| { text: "Document Index", link: "/index/" }, | ||
| { text: "API", link: "/api/" }, | ||
| { text: "Roadmap", link: "/roadmap/" }, | ||
| ], | ||
| sidebar: [ | ||
| { | ||
| text: "Guide", | ||
| items: [ | ||
| { text: "Overview", link: "/" }, | ||
| { text: "Getting Started", link: "/getting-started" }, | ||
| { text: "Install", link: "/install" }, | ||
| { text: "Provider Usage", link: "/provider-usage" }, | ||
| { text: "Provider Catalog", link: "/provider-catalog" }, | ||
| { text: "DevOps and CI/CD", link: "/operations/devops-cicd" }, | ||
| { text: "Provider Operations", link: "/provider-operations" }, | ||
| { text: "Troubleshooting", link: "/troubleshooting" }, | ||
| { text: "Planning Boards", link: "/planning/" }, | ||
| ], | ||
| }, | ||
| { | ||
| text: "Reference", | ||
| items: [ | ||
| { text: "Routing and Models", link: "/routing-reference" }, | ||
| { text: "Feature Guides", link: "/features/" }, | ||
| { text: "Docsets", link: "/docsets/" }, | ||
| ], | ||
| }, | ||
| { | ||
| text: "API", | ||
| items: [ | ||
| { text: "API Index", link: "/api/" }, | ||
| { text: "OpenAI-Compatible API", link: "/api/openai-compatible" }, | ||
| { text: "Management API", link: "/api/management" }, | ||
| { text: "Operations API", link: "/api/operations" }, | ||
| ], | ||
| }, | ||
| ], | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1 @@ | ||
| import DefaultTheme from "vitepress/theme"; | ||
| import type { Theme } from "vitepress"; | ||
| import CategorySwitcher from "./components/CategorySwitcher.vue"; | ||
| import "./custom.css"; | ||
|
|
||
| const theme: Theme = { | ||
| ...DefaultTheme, | ||
| enhanceApp({ app }) { | ||
| app.component("CategorySwitcher", CategorySwitcher); | ||
| }, | ||
| Layout: DefaultTheme.Layout, | ||
| }; | ||
|
|
||
| export default theme; | ||
| export { default } from "@phenotype/docs/theme"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: KooshaPari/cliproxyapi-plusplus
Length of output: 10601
postinstallunconditionally requires Bun and breaks CI inpr-test-build.yml.Line 6 executes
bun installunconditionally. In.github/workflows/pr-test-build.yml, thedocs-buildjob runsnpm installwithout provisioning Bun first (lines 364), causing the postinstall hook to fail.The
docs.ymlworkflow mitigates this by setting up Bun before npm install (lines 31–37), butpr-test-build.ymldoes not.Add Bun setup to
pr-test-build.ymlbefore thenpm installstep, or declare the toolchain requirement explicitly:Suggested changes to docs/package.json
{ "name": "cliproxyapi-plusplus-docs", "private": true, "type": "module", + "packageManager": "bun@1.2.0", + "engines": { + "bun": ">=1.2.0" + }, "scripts": { "postinstall": "cd ../vendor/phenodocs/packages/docs && bun install", "dev": "vitepress dev .", "build": "vitepress build .", "preview": "vitepress preview ." },📝 Committable suggestion
🤖 Prompt for AI Agents