To use the Upstream Documentation Enhancer, follow these steps:
-
Add the Enhancer to Your Repository
Copy the files from theupstream-docs-enhancerrepository into your code repository. -
Set Up GitHub Actions Secrets
In your code repository, configure the following secrets:DOCS_REPO_URL: URL of your upstream documentation repositoryGEMINI_API_KEY: Your Gemini API keyGH_PAT: Your GitHub Personal Access TokenDOCS_SUBFOLDER(Optional): If your documentation is in a subfolder within the same repository, set this to the relative path from the repository root. For example:docs,content/docs. If documentation is in a separate repository or at the repository root, leave this unset.
-
Trigger the Pipeline
Once set up, the enhancer will automatically run when someone comments[update-docs]on a Pull Request (PR). The enhancer will:- Analyze the changes
- Generate documentation suggestions
- Open a new PR in your upstream documentation repository with the proposed updates