Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Website for llm-d: This repository builds the website seen at llm-d.ai

NotificationsYou must be signed in to change notification settings

llm-d/llm-d.github.io

Repository files navigation

This website is built usingDocusaurus, a modern static website generator.

Site previews are powered by Netlify and can be viewed in the specific PR.

If you spot any errors or omissions in the site, please open an issue atgithub.com/llm-d/llm-d.github.io.

📋 Documentation Types

This repository contains two types of documentation:

  1. Local Documentation - Written directly in this repository (blog posts, landing pages, etc.)
  2. Remote Synced Content - Automatically synced from other llm-d repositories during build

Most technical documentation is automatically synced from source repositories to ensure accuracy and consistency:

  • Architecture docs (/docs/architecture/) - Synced from component repositories
  • User guides (/docs/guide/) - Synced from the main llm-d repository
  • Component docs (/docs/architecture/Components/) - Auto-generated from individual component repos
  • Community docs (/docs/community/) - Synced from the main repository

Files with remote content show a "Content Source" banner at the bottom with links to edit the original source.

🔄 Remote Content System

How It Works

The remote content system automatically downloads and syncs content from GitHub repositories during the build process:

  1. Static Configuration -remote-content/remote-sources/components-data.yaml contains:

    • Release version information (which tag to sync from)
    • List of all components with their descriptions and versions
    • Repository locations and metadata
  2. Content Sources - Individual files inremote-content/remote-sources/ define:

    • Which repositories to sync from
    • Where to place the content in the docs
    • How to transform the content (fix links, add frontmatter, etc.)
  3. Build Process - Duringnpm run build:

    • Downloads content from the configured GitHub repositories
    • Applies transformations (fixes relative links, images, adds source attribution)
    • Generates final documentation with proper navigation and styling

Key Feature: The build process only reads from the committed YAML file - it never makes write operations or modifies your configuration.

File Structure

remote-content/├── remote-content.js                    # Main entry point└── remote-sources/    ├── components-data.yaml            # 🎯 Release and component data (edit this!)    ├── sync-release.mjs                # Script to update YAML from GitHub    ├── component-configs.js            # Utilities to load YAML data    ├── utils.js                        # Content transformation helpers    ├── repo-transforms.js              # Link/image fixing logic    ├── example-readme.js.template     # Template for adding new content    ├── architecture/                   # → docs/architecture/    │   ├── architecture-main.js    │   └── components-generator.js    # Auto-generates component pages    ├── guide/                          # → docs/guide/    │   └── guide-generator.js         # Auto-generates guide pages    └── community/                      # → docs/community/        ├── code-of-conduct.js        ├── contribute.js        ├── security.js        └── sigs.js

Cutting a New Release

When a new llm-d release is published, update the documentation site:

Step 1: Update the YAML file

cd remote-content/remote-sourcesnode sync-release.mjs# Fetches latest release from GitHub APIgit diff components-data.yaml# Review the changes

This script:

  • Queries theGitHub Releases API
  • Updates release version, date, and URL in the YAML
  • Extracts component descriptions from release notes
  • Updates component versions in the YAML

Step 2: Commit and deploy

git add components-data.yamlgit commit -m"Update to llm-d vX.Y.Z"git push# Triggers automatic deployment

What gets updated:

  • Release version, date, and URLs shown on the Components page
  • Component descriptions and version tags
  • Components sync from their individual release tags
  • Guides sync from the llm-d/llm-d release tag
  • Community docs always sync frommain branch (latest)

Manual updates: You can also manually editcomponents-data.yaml if needed.

Adding New Components

To add a new component to the documentation:

Editremote-content/remote-sources/components-data.yaml:

components:# ... existing components  -name:llm-d-your-componentorg:llm-dbranch:maindescription:Description of your componentcategory:Core InfrastructuresidebarPosition:8

The component will automatically appear under/docs/architecture/Components/ on the next build.

Adding New Content Sources

To add other remote content (non-component):

  1. Copy the template:

    cp remote-content/remote-sources/example-readme.js.template \   remote-content/remote-sources/DIRECTORY/your-content.js

    Choose directory:architecture/,guide/, orcommunity/

  2. Edit the configuration - Update placeholders:

    • Repository name
    • Output directory
    • Page title and description
    • Sidebar position
  3. Import inremote-content/remote-content.js:

    importyourContentfrom'./remote-sources/DIRECTORY/your-content.js';constremoteContentPlugins=[// ... existing sourcesyourContent,];
  4. Test:

    npm start

Making Changes to Synced Content

For synced content (files with "Content Source" banners):

  • Click the "edit the source file" link in the Content Source banner
  • Make changes in the source repository
  • Changes will automatically sync to this website during the next build

For local website content:

  • Follow the standard pull request process below

Creating Tabs in Remote Content

When writing documentation in source repositories (like llm-d/llm-d) that will be synced to this Docusaurus site, you can create tabbed content using HTML comment markers. These are invisible in GitHub but will be transformed into Docusaurus tabs during the build.

In your GitHub README:

###Deploy Model Servers<!-- TABS:START--><!-- TAB:GKE (H200):default-->kubectl apply -k ./manifests/modelserver/gke -n ${NAMESPACE}<!-- TAB:GKE (B200)-->kubectl apply -k ./manifests/modelserver/gke-a4 -n ${NAMESPACE}<!-- TAB:CoreWeave-->kubectl apply -k ./manifests/modelserver/coreweave -n ${NAMESPACE}<!-- TABS:END-->

Key points:

  • Use<!-- TABS:START --> and<!-- TABS:END --> to wrap the entire tabbed section
  • Use<!-- TAB:Label --> before each tab's content
  • Add:default after the label to make it the default selected tab (e.g.,<!-- TAB:GKE:default -->)
  • No imports needed - the transformation automatically adds them
  • On GitHub, the HTML comments are invisible, showing clean markdown
  • On Docusaurus, these are transformed into proper<Tabs> components

Result on Docusaurus:The content will automatically be transformed with the proper Tabs imports and components, creating an interactive tabbed interface.

GitHub Callouts Support

The transformation system also automatically converts GitHub-style callouts to Docusaurus admonitions:

>[!NOTE]>This is a note>[!TIP]>This is a tip>[!IMPORTANT]>This is important>[!WARNING]>This is a warning>[!CAUTION]>This is dangerous>[!REQUIREMENTS]>These are requirements

These will be automatically converted to the appropriate Docusaurus:::note,:::tip,:::info,:::warning, and:::danger admonitions during the build.

Troubleshooting

ProblemSolution
Page not appearingCheck that source URL is publicly accessible
Build errorsVerify all template placeholders are replaced
Links brokenMake sure you're usingcreateStandardTransform()
Component not showingCheckcomponents-data.yaml and repository accessibility
Wrong sidebar orderAdjustsidebarPosition numbers in configuration
Tabs not renderingCheck that you have bothTABS:START andTABS:END markers

BEFORE DOING A PULL REQUEST

  1. Check if content is synced - Look for "Content Source" banners at the bottom of pages
  2. For synced content - Edit the source repository, not this one
  3. For local content - Follow the process below
  4. Make sure you are familiar with how docusaurus builds menus and links to images
  5. Fork the website repo and deploy a preview version of your proposed change for reviewers to check

Installation

$ npm install

Local Development

$ npm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Making Changes

  1. Fork the Repository

    • Click the "Fork" button on thellm-d.github.io repository
    • Clone your fork locally:git clone https://github.com/YOUR-USERNAME/llm-d.github.io.git
  2. Create a Branch

    • Create a new branch for your changes:git checkout -b feature/your-feature-name
    • Make your changes locally
  3. Commit Your Changes

    • Stage your changes:git add .
    • Commit with sign-off:git commit -s -m "Your commit message"
    • Push to your fork:git push origin feature/your-feature-name
  4. Open a Pull Request

    • Go to your fork on GitHub
    • Click "New Pull Request"
    • Select the main branch of llm-d/llm-d.github.io as the base
    • Fill out the pull request template with details about your changes

Pull Request Preview

When you open a pull request, a preview of your changes will be automatically generated and deployed. This allows reviewers to see your changes in a live environment before they are merged into the main website.

  • The preview URL will be posted as a comment on your pull request
  • The preview site will be automatically updated as you push new commits
  • The preview will be removed when the pull request is closed

Code Review Requirements

  • All code changes must be submitted as pull requests (no direct pushes)
  • All changes must be reviewed and approved by a maintainer
  • All changes must pass automated checks and tests
  • Commit messages should have:
    • Short, descriptive titles
    • Description of why the change was needed
    • Enough detail for someone reviewing git history to understand the scope
  • DCO Sign-off: All commits must include a valid DCO sign-off line (Signed-off-by: Name <email@domain.com>)

Questions?

About

Website for llm-d: This repository builds the website seen at llm-d.ai

Topics

Resources

Contributing

Stars

Watchers

Forks

Contributors16


[8]ページ先頭

©2009-2025 Movatter.jp