openrag/docs
2026-01-09 11:03:09 -08:00
..
docs remove-yarn (#760) 2026-01-08 17:25:03 -05:00
src Implement mermaid diagram additions 2025-10-27 10:23:33 -04:00
static Merge pull request #683 from langflow-ai/docs-robots-public-preview 2025-12-22 21:12:47 -05:00
.gitignore move-folder-to-keep-private-and-add-scraper-to-gitignore 2025-10-20 16:44:39 -04:00
docusaurus.config.js Add IBM TrustArc cookie consent banner to docs site 2026-01-09 11:03:09 -08:00
package-lock.json address dependency audit findings 2026-01-08 12:55:26 -08:00
package.json update-packages 2025-12-02 16:34:12 -05:00
README.md remove-yarn (#760) 2026-01-08 17:25:03 -05:00
scraper.config.json change documents directory 2025-11-26 12:59:40 -06:00
sidebars.js add community/contribution page 2025-12-19 09:55:36 -08:00
VERSIONING_SETUP.md remove-yarn (#760) 2026-01-08 17:25:03 -05:00

Website

This website is built using Docusaurus, a modern static website generator.

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.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

USE_SSH=true npm run deploy

Not using SSH:

GIT_USER=<Your GitHub username> npm run deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

Update the OpenRAG documentation PDF

The documentation PDF at openrag/openrag-documents/openrag-documentation.pdf is used by the OpenRAG application, so keep it up to date.

To update the PDF, do the following:

  1. Remove elements from the docs/*.mdx files. Content in tabs, details, and summary elements is hidden from PDF builds and it must be included. To remove these items, give the following prompt or something similar to your IDE.

    Flatten documentation for PDF: remove tabs and details elements
    In all MDX files in docs/docs/, flatten interactive elements:
    Remove all <Tabs> and <TabItem> components:
    Convert each tab's content to a regular section with an appropriate heading (### for subsections, ## for main sections)
    Show all tab content sequentially
    Remove the import statements for Tabs and TabItem where they're no longer used
    Remove all <details> and <summary> elements:
    Convert details content to regular text with an appropriate heading (### for subsections)
    Show all content directly (no collapsible sections)
    Keep all content visible — nothing should be hidden or collapsed
    Maintain proper formatting and structure
    Apply this to all documentation files that contain tabs or details elements so the content is fully flat and visible for PDF generation.
    
  2. Check your .mdx files to confirm these elements are removed. Don't commit the changes.

  3. From openrag/docs, run this command to build the site with the changes, and create a PDF at openrag/openrag-documents.

    npm run build:pdf
    
  4. Check the PDF's content, then commit and create a pull request.