Skip to content

Commit

Permalink
docs: embed registry readme in website for better seo (server side re…
Browse files Browse the repository at this point in the history
…ndering)
  • Loading branch information
wsxiaoys committed Jun 11, 2024
1 parent 51c7039 commit 55de9ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 80 deletions.
6 changes: 1 addition & 5 deletions website/docs/models/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ sidebar_position: 4
hide_table_of_contents: true
---

import GitHubReadme from "./readme";

# 🧑‍🔬 Models Registry

<GitHubReadme src="https://raw.githubusercontent.com/TabbyML/registry-tabby/main/README.md" />
# 🧑‍🔬 Models Registry
74 changes: 0 additions & 74 deletions website/docs/models/readme.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"prebuild": "curl https://raw.githubusercontent.com/TabbyML/registry-tabby/main/README.md | tail -n +2 >> docs/models/index.mdx",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand All @@ -23,7 +24,6 @@
"axios": "^1.4.0",
"clsx": "^1.2.1",
"docusaurus-preset-openapi": "^0.7.4",
"marked": "^9.1.5",
"postcss": "^8.4.24",
"posthog-docusaurus": "^2.0.0",
"prism-react-renderer": "^2.1.0",
Expand Down

0 comments on commit 55de9ed

Please sign in to comment.