Skip to content

Commit 8903fb8

Browse files
Fix links in docs
1 parent 1f49bf3 commit 8903fb8

21 files changed

Lines changed: 51 additions & 41 deletions

docs/.vitepress/config.mts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import {defineConfig} from 'vitepress'
44
export default defineConfig({
55
title: "Transformers PHP",
66
description: "State-of-the-art Machine Learning for PHP. Run Transformers in PHP",
7-
base: "/transformers-docs/",
7+
base: "/transformers-php/",
88
themeConfig: {
99
// https://vitepress.dev/reference/default-theme-config
1010
nav: [
1111
{text: 'Home', link: '/'},
12-
{text: 'Docs', link: '/docs/'},
12+
{text: 'Docs', link: '/introduction'},
1313
{
1414
text: '0.1.x',
1515
items: [
@@ -30,42 +30,42 @@ export default defineConfig({
3030
text: 'Getting Started',
3131
collapsed: false,
3232
items: [
33-
{text: 'Introduction', link: '/docs/'},
34-
{text: 'Getting Started', link: '/docs/getting-started'},
35-
{text: 'Basic Usage', link: '/docs/basic-usage'},
36-
{text: 'Configuration', link: '/docs/configuration'},
33+
{text: 'Introduction', link: '/introduction'},
34+
{text: 'Getting Started', link: '/getting-started'},
35+
{text: 'Basic Usage', link: '/basic-usage'},
36+
{text: 'Configuration', link: '/configuration'},
3737
]
3838
},
3939
{
4040
text: 'Pipelines',
4141
collapsed: false,
42-
link: '/docs/pipelines',
42+
link: '/pipelines',
4343
items: [
44-
{text: 'Text Classification', link: '/docs/text-classification'},
45-
{text: 'Fill Mask', link: '/docs/fill-mask'},
46-
{text: 'Zero Shot Classification', link: '/docs/zero-shot-classification'},
47-
{text: 'Question Answering', link: '/docs/question-answering'},
48-
{text: 'Token Classification', link: '/docs/token-classification'},
49-
{text: 'Feature Extraction', link: '/docs/feature-extraction'},
50-
{text: 'Text to Text Generation', link: '/docs/text-to-text-generation'},
51-
{text: 'Translation', link: '/docs/translation'},
52-
{text: 'Summarization', link: '/docs/summarization'},
53-
{text: 'Text Generation', link: '/docs/text-generation'},
44+
{text: 'Text Classification', link: '/text-classification'},
45+
{text: 'Fill Mask', link: '/fill-mask'},
46+
{text: 'Zero Shot Classification', link: '/zero-shot-classification'},
47+
{text: 'Question Answering', link: '/question-answering'},
48+
{text: 'Token Classification', link: '/token-classification'},
49+
{text: 'Feature Extraction', link: '/feature-extraction'},
50+
{text: 'Text to Text Generation', link: '/text-to-text-generation'},
51+
{text: 'Translation', link: '/translation'},
52+
{text: 'Summarization', link: '/summarization'},
53+
{text: 'Text Generation', link: '/text-generation'},
5454
]
5555
},
5656
{
5757
text: 'Advanced Usage',
5858
collapsed: false,
5959
items: [
60-
{text: 'Auto Models', link: '/docs/auto-models'},
61-
{text: 'Auto Tokenizers', link: '/docs/auto-tokenizers'},
60+
{text: 'Auto Models', link: '/auto-models'},
61+
{text: 'Auto Tokenizers', link: '/auto-tokenizers'},
6262
]
6363
},
6464
{
6565
text: 'Utilities',
6666
collapsed: false,
6767
items: [
68-
{text: 'Generation', link: '/docs/generation'},
68+
{text: 'Generation', link: '/generation'},
6969
]
7070
}
7171
],

docs/auto-models.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outline: deep
3+
---
4+
5+
# Auto Models

docs/auto-tokenizers.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outline: deep
3+
---
4+
5+
# Auto Tokenizers
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ analysis on-the-fly. This initial setup might take a bit, but subsequent runs wi
2424

2525
> [!TIP]
2626
> To avoid any wait time or possible hiccups with on-the-fly model downloads, it's a good idea to pre-download
27-
> your models. Check out the section on [pre-downloading models](/docs/getting-started#pre-download-models) for how to
27+
> your models. Check out the section on [pre-downloading models](/getting-started#pre-download-models) for how to
2828
> do this.
2929
3030
## Using a different model

docs/bun.lockb

12 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ public function boot()
177177

178178
Now that you've learned how to configure Transformers PHP, you can start using the library to download and use
179179
pre-trained ONNX models. For more information on how to use the library, check out
180-
the [Getting Started](./getting-started.md) guide.
180+
the [Getting Started](getting-started.md) guide.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)