GitHub Actions workflow expects when it clones the repository: 1. GitHub Actions workflow clones to ./influxdb3_plugins/ 2. docs_mapping.yaml references ./influxdb3_plugins/influxdata/[plugin]/README.md 3. Local development can manually clone the repo to the same location for testing Tupdated all the source paths in docs_mapping.yaml to use ./influxdb3_plugins/ instead of ../influxdb3_plugins/. This now matches exactly what the GitHub Actions workflow expects when it clones the repository. The paths are now consistent: 1. GitHub Actions workflow clones to ./influxdb3_plugins/ 2. docs_mapping.yaml references ./influxdb3_plugins/influxdata/[plugin]/README.md 3. Local development can manually clone the repo to the same location for testing This resolves the inconsistency and makes the automation more reliable. For local development, developers would just need to run: git clone https://github.com/influxdata/influxdb3_plugins.git From the docs-v2 root directory, and then they can use the same paths that the automation uses. |
||
---|---|---|
.. | ||
cloud-serverless | ||
common | ||
influxdb3-distributed | ||
influxdb3-plugins | ||
README.md | ||
build-agent-instructions.js |
README.md
InfluxData Documentation Helper Scripts
This directory contains scripts to assist with InfluxDB documentation workflows, including release notes generation, CLI/API documentation auditing, and version management.
Directory Structure
helper-scripts/
├── common/ # Shared scripts used across all products
├── influxdb3-monolith/ # Scripts for InfluxDB 3 Core & Enterprise
├── influxdb3-distributed/ # Scripts for InfluxDB 3 Clustered & Cloud Dedicated
├── cloud-serverless/ # Scripts for InfluxDB Cloud Serverless
└── output/ # Generated outputs from all scripts
Product Categories
InfluxDB 3 Monolith
- Products: InfluxDB 3 Core, InfluxDB 3 Enterprise
- Deployment: Single binary deployment
- Scripts Location:
influxdb3-monolith/
InfluxDB 3 Distributed
- Products: InfluxDB 3 Clustered, InfluxDB 3 Cloud Dedicated
- Deployment: Distributed/Kubernetes deployment
- Scripts Location:
influxdb3-distributed/
Cloud Serverless
- Product: InfluxDB Cloud Serverless
- Deployment: Fully managed cloud service
- Scripts Location:
cloud-serverless/
Common Scripts
common/generate-release-notes.js
JavaScript ESM script that generates release notes by analyzing git commits across multiple repositories. Supports flexible configuration for different InfluxDB products and output formats.
Usage:
node common/generate-release-notes.js [options] <from_version> <to_version> [repo_paths...]
Options:
--config <file>
- Load configuration from JSON file--format <type>
- Output format: 'integrated' or 'separated'--no-fetch
- Skip fetching latest commits from remote--pull
- Pull latest changes (use with caution)--no-pr-links
- Omit PR links from commit messages
Examples:
# Using configuration file (recommended)
node common/generate-release-notes.js --config common/config/influxdb3-core-enterprise.json v3.1.0 v3.2.0
# Traditional command-line arguments
node common/generate-release-notes.js v3.1.0 v3.2.0 ~/repos/influxdb ~/repos/influxdb_pro
common/update-product-version.sh
Updates product version numbers in data/products.yml
and related documentation files.
Usage:
./common/update-product-version.sh --product <product> --version <version>
Example:
./common/update-product-version.sh --product core --version 3.2.1
Product-Specific Scripts
InfluxDB 3 Monolith (Core & Enterprise)
See influxdb3-monolith/README.md
for detailed documentation.
Key Scripts:
audit-cli-documentation.sh
- Audits CLI commands against existing documentationsetup-auth-tokens.sh
- Sets up authentication tokens for local containers
InfluxDB 3 Distributed (Clustered & Cloud Dedicated)
See influxdb3-distributed/README.md
for detailed documentation.
Key Scripts:
clustered-release-artifacts.sh
- Downloads release artifacts for Clustered releases
Output Directory
All scripts write their outputs to organized subdirectories:
output/
├── release-notes/ # Generated release notes
├── cli-audit/ # CLI documentation audit reports
├── api-audit/ # API documentation audit reports
└── artifacts/ # Downloaded release artifacts
GitHub Workflow Integration
These scripts are integrated with GitHub Actions workflows:
- Workflow:
.github/workflows/prepare-release.yml
- Uses:
generate-release-notes.js
,update-product-version.sh
Quick Start
-
Clone the repository
git clone https://github.com/influxdata/docs-v2.git cd docs-v2/helper-scripts
-
Make scripts executable
find . -name "*.sh" -type f -exec chmod +x {} \;
-
Run a script
# Generate release notes node common/generate-release-notes.js --config common/config/influxdb3-core-enterprise.json v3.1.0 v3.2.0 # Audit CLI documentation node influxdb3-monolith/audit-cli-documentation.js core local
Contributing
When adding new scripts:
- Place in the appropriate product directory
- Follow naming conventions (lowercase with hyphens)
- Include comprehensive help text and documentation
- Update the relevant README files
- Test with all applicable products
- Ensure outputs go to the
output/
directory
Archived Scripts
Deprecated scripts are moved to archive/
subdirectories. These scripts are kept for reference but should not be used in active workflows.