feat: Adding Demo script and allowing new Website to source files

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-10-20 21:28:09 -04:00
parent a701f68bd7
commit 255cc90296
8 changed files with 459 additions and 128 deletions

View file

@ -13,6 +13,19 @@ npm run serve
```
You can open up the docs in your browser at http://localhost:3000
## File Import System
This documentation uses a custom component to import files directly from the repository, eliminating copy-paste maintenance:
```jsx
import CodeFromFile from '@site/src/components/CodeFromFile';
<CodeFromFile src="path/to/file.py" />
<CodeFromFile src="README.md" startLine={1} endLine={20} />
```
Files are automatically synced from the repo root when building. See the `CodeFromFile` component for syntax highlighting, line ranges, and multi-language support.
## Content
Try out Llama Stack's capabilities through our detailed Jupyter notebooks: