mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
# What does this PR do? Add static file import system for docs - Use `remark-code-import` plugin to embed code at build time - Support importing Python code with syntax highlighting using `raw-loader` + `ReactMarkdown` One caveat is that currently when embedding markdown with code used the syntax highlighting isn't behaving but I'll investigate that in a follow up. ## Test Plan Python Example: <img width="1372" height="995" alt="Screenshot 2025-10-23 at 9 22 18 PM" src="https://github.com/user-attachments/assets/656d2c78-4d9b-45a4-bd5e-3f8490352b85" /> Markdown example: <img width="1496" height="1070" alt="Screenshot 2025-10-23 at 9 22 38 PM" src="https://github.com/user-attachments/assets/6c0a07ec-ff7c-45aa-b05f-8c46acd4445c" /> --------- Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
50 lines
1.4 KiB
JSON
50 lines
1.4 KiB
JSON
{
|
|
"name": "docusaurus-template-openapi-docs",
|
|
"version": "4.3.7",
|
|
"private": true,
|
|
"scripts": {
|
|
"docusaurus": "docusaurus",
|
|
"start": "docusaurus start",
|
|
"build": "docusaurus build",
|
|
"swizzle": "docusaurus swizzle",
|
|
"deploy": "docusaurus deploy",
|
|
"clear": "docusaurus clear",
|
|
"serve": "docusaurus serve",
|
|
"write-translations": "docusaurus write-translations",
|
|
"write-heading-ids": "docusaurus write-heading-ids",
|
|
"gen-api-docs": "docusaurus gen-api-docs",
|
|
"clean-api-docs": "docusaurus clean-api-docs",
|
|
"gen-api-docs:version": "docusaurus gen-api-docs:version",
|
|
"clean-api-docs:version": "docusaurus clean-api-docs:version",
|
|
"sync-files": "node scripts/sync-files.js"
|
|
},
|
|
"dependencies": {
|
|
"@docusaurus/core": "3.8.1",
|
|
"@docusaurus/preset-classic": "3.8.1",
|
|
"@easyops-cn/docusaurus-search-local": "^0.52.1",
|
|
"@mdx-js/react": "^3.0.0",
|
|
"clsx": "^2.0.0",
|
|
"docusaurus-plugin-openapi-docs": "4.3.7",
|
|
"docusaurus-theme-openapi-docs": "4.3.7",
|
|
"prism-react-renderer": "^2.3.0",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"remark-code-import": "^1.2.0"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.5%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"raw-loader": "^4.0.2",
|
|
"react-markdown": "^10.1.0"
|
|
}
|
|
}
|