Merge branch 'dev' into docs-pena-team-fix-redirect

This commit is contained in:
Henry 2024-03-15 19:05:51 +09:00 committed by GitHub
commit 35c9c1bd71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3692 additions and 15 deletions

View File

@ -104,7 +104,7 @@ const config = {
{ {
from: "/troubleshooting/undefined-issue/", from: "/troubleshooting/undefined-issue/",
to: "/guides/error-codes/undefined-issue/", to: "/guides/error-codes/undefined-issue/",
}, { }, {
from: "/install/", from: "/install/",
to: "/guides/install/", to: "/guides/install/",
}, },
@ -122,6 +122,18 @@ const config = {
//To input custom Plugin //To input custom Plugin
path.resolve(__dirname, 'plugins', 'changelog-plugin'), path.resolve(__dirname, 'plugins', 'changelog-plugin'),
[
'@scalar/docusaurus',
{
label: '',
route: '/api-reference',
configuration: {
spec: {
url: 'https://raw.githubusercontent.com/janhq/jan/dev/docs/openapi/jan.json',
},
},
},
],
], ],
// The classic preset will relay each option entry to the respective sub plugin/theme. // The classic preset will relay each option entry to the respective sub plugin/theme.
@ -168,7 +180,7 @@ const config = {
specs: [ specs: [
{ {
spec: "openapi/jan.yaml", // can be local file, url, or parsed json object spec: "openapi/jan.yaml", // can be local file, url, or parsed json object
route: "/api-reference/", // path where to render docs route: "/api-reference-1.0/", // path where to render docs
}, },
], ],
theme: { theme: {

2486
docs/openapi/jan.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -26,6 +26,7 @@
"@heroicons/react": "^2.0.18", "@heroicons/react": "^2.0.18",
"@mdx-js/react": "^3.0.0", "@mdx-js/react": "^3.0.0",
"@redocly/cli": "^1.4.1", "@redocly/cli": "^1.4.1",
"@scalar/docusaurus": "^0.1.3",
"autoprefixer": "^10.4.16", "autoprefixer": "^10.4.16",
"axios": "^1.5.1", "axios": "^1.5.1",
"clsx": "^1.2.1", "clsx": "^1.2.1",

File diff suppressed because it is too large Load Diff

View File

@ -50,27 +50,27 @@
"sources": [ "sources": [
{ {
"filename": "config.json", "filename": "config.json",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/config.json" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/config.json"
}, },
{ {
"filename": "rank0.engine", "filename": "rank0.engine",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/rank0.engine" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/rank0.engine"
}, },
{ {
"filename": "tokenizer.model", "filename": "tokenizer.model",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/tokenizer.model" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/tokenizer.model"
}, },
{ {
"filename": "special_tokens_map.json", "filename": "special_tokens_map.json",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/special_tokens_map.json" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/special_tokens_map.json"
}, },
{ {
"filename": "tokenizer.json", "filename": "tokenizer.json",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/tokenizer.json" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/tokenizer.json"
}, },
{ {
"filename": "tokenizer_config.json", "filename": "tokenizer_config.json",
"url": "https://delta.jan.ai/dist/models/turing/windows/TinyJensen-1.1B-Chat-fp16/tokenizer_config.json" "url": "https://delta.jan.ai/dist/models/<gpuarch>/<os>/TinyJensen-1.1B-Chat-fp16/tokenizer_config.json"
} }
], ],
"id": "tinyjensen-1.1b-chat-fp16", "id": "tinyjensen-1.1b-chat-fp16",