Skip to content

Commit

Permalink
docs: move cloud deployment / programming languages to references. Re…
Browse files Browse the repository at this point in the history
…move cpu tab from docker/docker compose installation tutorials (#2955)

* docs: turn off cpu tab for docker / docker compose installation tutorial

* Move cloud deployment tutorials to references

* move programming-languages to references
  • Loading branch information
wsxiaoys authored Aug 23, 2024
1 parent f2cc6f7 commit edc181d
Show file tree
Hide file tree
Showing 26 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions website/docs/quick-start/installation/docker-compose.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
```
</TabItem>
<TabItem value="cpu" label="CPU">
{false && <TabItem value="cpu" label="CPU">
```yaml title="docker-compose.yml"
version: '3.5'
Expand All @@ -54,6 +54,6 @@ services:
- 8080:8080
```
</TabItem>
</TabItem>}
</Tabs>
5 changes: 3 additions & 2 deletions website/docs/quick-start/installation/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ import TabItem from '@theme/TabItem';
```

</TabItem>
<TabItem value="cpu" label="CPU" default>

{false && <TabItem value="cpu" label="CPU" default>

```bash title="run.sh"
docker run --entrypoint /opt/tabby/bin/tabby-cpu -it \
-p 8080:8080 -v $HOME/.tabby:/data \
tabbyml/tabby serve --model StarCoder-1B --chat-model Qwen2-1.5B-Instruct
```

</TabItem>
</TabItem>}
</Tabs>
1 change: 1 addition & 0 deletions website/docs/references/cloud-deployment/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
label: Cloud Deployment
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 6
---

# 🧑‍💻 Programming Languages
# Programming Languages

Most models nowadays support a large number of programming languages (thanks to [The Stack](https://huggingface.co/datasets/bigcode/the-stack), which has collected 358 programming languages).
In Tabby, we need to add configuration for each language to maximize performance and completion quality.
Expand Down
11 changes: 11 additions & 0 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ export default {
to: '/docs/quick-start/installation/docker',
from: '/docs/quick-start/installation'
},
{
to: '/docs/references/programming-languages',
from: '/docs/programming-languages'
},
],
createRedirects(existingPath) {
// Create redirection from /docs/installation/* to /docs/quick-start/installation/*
Expand All @@ -247,6 +251,13 @@ export default {
existingPath.replace("/docs/quick-start/installation", "/docs/installation"),
]
}

// Create redirection from /docs/quick-start/installation/* to /docs/references/cloud-deployment/*
if (existingPath.startsWith("/docs/references/cloud-deployment/")) {
return [
existingPath.replace("/docs/references/cloud-deployment/", "/docs/quick-start/installation/"),
]
}
}
},
],
Expand Down

0 comments on commit edc181d

Please sign in to comment.