Skip to content

Conversation

jstirnaman
Copy link
Contributor

This is a hybrid manual-automated workflow for syncing README.md changes from influxdb3_plugins repo to docs-v2 InfluxDB 3 Core and Enterprise Plugins Library.

In docs-v2 (this PR):

  • Add GitHub Actions workflow for syncing plugin docs from influxdb3_plugins
  • Create issue template for triggering sync requests
  • Add Node.js transformation script (port_to_docs.js) with ES modules
  • Add mapping configuration (docs_mapping.yaml) for all official plugins
  • Add npm scripts for plugin sync operations
  • Include comprehensive documentation in helper-scripts/influxdb3-plugins/README.md

The workflow provides:

  • Issue-triggered automation with no cross-repo secrets required
  • Validation of source READMEs against template requirements
  • Content transformation with Hugo shortcodes and GitHub URLs
  • Screenshot generation for visual validation
  • Automatic PR creation with detailed change summaries

See the counterpart PR influxdata/influxdb3_plugins#26

- Add GitHub Actions workflow for syncing plugin docs from influxdb3_plugins
- Create issue template for triggering sync requests
- Add Node.js transformation script (port_to_docs.js) with ES modules
- Add mapping configuration (docs_mapping.yaml) for all official plugins
- Add npm scripts for plugin sync operations
- Include comprehensive documentation in helper-scripts/influxdb3-plugins/README.md

The workflow provides:
- Issue-triggered automation with no cross-repo secrets required
- Validation of source READMEs against template requirements
- Content transformation with Hugo shortcodes and GitHub URLs
- Screenshot generation for visual validation
- Automatic PR creation with detailed change summaries
… instead of ../influxdb3_plugins/ to match what the

  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.
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements a hybrid manual-automated workflow for synchronizing plugin documentation between the influxdb3_plugins repository and docs-v2. The workflow enables automatic transformation of plugin READMEs while maintaining consistency and validation across both repositories.

Key changes include:

  • GitHub Actions workflow for issue-triggered plugin documentation sync
  • Node.js transformation script with comprehensive content processing
  • Mapping configuration for all official InfluxDB 3 plugins

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
package.json Adds npm scripts for plugin sync operations with ES module support
helper-scripts/influxdb3-plugins/port_to_docs.js Core transformation script that converts plugin READMEs to docs-v2 format
helper-scripts/influxdb3-plugins/docs_mapping.yaml Configuration mapping all official plugins from source to target paths
helper-scripts/influxdb3-plugins/README.md Comprehensive documentation of the sync workflow and usage instructions
.github/workflows/sync-plugins.yml GitHub Actions workflow for automated plugin documentation synchronization
.github/ISSUE_TEMPLATE/sync-plugin-docs.yml Issue template for triggering plugin sync requests

… instead of ../influxdb3_plugins/ to match what the

  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.
MeelahMe and others added 3 commits October 20, 2025 14:47
* fix: update workflow branch references from master to main

* fix: update issue template branch references from master to main

- Update sync-plugin-docs.yml description (line 40)
- Update placeholder from 'master' to 'main' (line 41)
- Update default value from 'master' to 'main' (line 42)
- Add influxdb3_plugins/ to .gitignore
- Ensures template matches influxdb3_plugins default branch

* Update .gitignore

---------

Co-authored-by: Jason Stirnaman <stirnamanj@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jstirnaman jstirnaman marked this pull request as ready for review October 20, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants