sidebar_position: 2
:::warning This tutorial is a community contribution and is not supported by the OpenWebUI team. It serves only as a demonstration on how to customize OpenWebUI for your specific use case. Want to contribute? Check out the contributing tutorial. :::
We appreciate your interest in contributing tutorials to the Open WebUI documentation. Follow the steps below to set up your environment and submit your tutorial.
Fork the openwebui/docs GitHub Repository
Enable GitHub Actions
Enable GitHub Pages
main) and the folder (e.g.,/docs).Configure GitHub Environment Variables
BASE_URL set to /docs (or your chosen base URL for the fork).SITE_URL set to https://<your-github-username>.github.io/.If you need to adjust deployment settings to fit your custom setup, here’s what to do:
a. Update .github/workflows/gh-pages.yml
Add environment variables for BASE_URL and SITE_URL to the build step if necessary:
- name: Build
env:
BASE_URL: ${{ vars.BASE_URL }}
SITE_URL: ${{ vars.SITE_URL }}
run: npm run build
b. Modify docusaurus.config.ts to Use Environment Variables
Update docusaurus.config.ts to use these environment variables, with default values for local or direct deployment:
const config: Config = {
title: "Open WebUI",
tagline: "ChatGPT-Style WebUI for LLMs (Formerly Ollama WebUI)",
favicon: "img/favicon.png",
url: process.env.SITE_URL || "https://openwebui.com",
baseUrl: process.env.BASE_URL || "/",
...
};
This setup ensures consistent deployment behavior for forks and custom setups.
Run the gh-pages GitHub Workflow
gh-pages workflow.Browse to Your Forked Copy
https://<your-github-username>.github.io/<BASE_URL> to view your forked documentation.Draft Your Changes
docs/tutorial/).Submit a Pull Request
open-webui/docs repository.Community-contributed tutorials must include the the following:
:::warning
This tutorial is a community contribution and is not supported by the OpenWebUI team. It serves only as a demonstration on how to customize OpenWebUI for your specific use case. Want to contribute? Check out the contributing tutorial.
:::
:::tip How to Test Docusaurus Locally
You can test your Docusaurus site locally with the following commands:
npm install # Install dependencies
npm run build # Build the site for production
This will help you catch any issues before deploying :::