Skip to content

feat: add hot-reload watcher to CrocoDocs CLI#6402

Open
ndonkoHenri wants to merge 7 commits intorelease/v0.85.0from
crocodocs-hot-reload
Open

feat: add hot-reload watcher to CrocoDocs CLI#6402
ndonkoHenri wants to merge 7 commits intorelease/v0.85.0from
crocodocs-hot-reload

Conversation

@ndonkoHenri
Copy link
Copy Markdown
Contributor

@ndonkoHenri ndonkoHenri commented Apr 10, 2026

Summary by Sourcery

Add a CrocoDocs file-watching CLI workflow for hot-reload docs development.

New Features:

  • Add a crocodocs watch CLI subcommand and supporting file-watching pipeline to regenerate docs artifacts on source changes and optionally run a child dev server.

Bug Fixes:

  • Correct CrocoDocs manifest route generation so docs/index pages map to the base route rather than an /index suffix.

Enhancements:

  • Improve CrocoDocs CLI UX with shared arguments, richer help/description text, and clearer watcher configuration flags.
  • Refine CrocoDocs README to describe the watch workflow, watched paths, and configuration tables with clearer formatting.

Build:

  • Update website and Taskfile docs commands so yarn start runs crocodocs watch alongside the Docusaurus dev server for hot-reload docs development.

Documentation:

  • Improve CrocoDocs and website docs tables and copy to better explain keys, components, and generated artifacts.

@ndonkoHenri ndonkoHenri changed the base branch from main to release/v0.85.0 April 10, 2026 10:52
@ndonkoHenri
Copy link
Copy Markdown
Contributor Author

@sourcery-ai review

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

We've reviewed this pull request using the Sourcery rules engine

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying flet-website-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6041805
Status: ✅  Deploy successful!
Preview URL: https://dd0f3f56.flet-website-v2.pages.dev
Branch Preview URL: https://crocodocs-hot-reload.flet-website-v2.pages.dev

View logs

Copy link
Copy Markdown
Contributor

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

Adds a crocodocs watch command to support hot-reload workflows by regenerating CrocoDocs artifacts on filesystem changes, and wires this into the website dev-start flow.

Changes:

  • Introduces a standard-library polling watcher (crocodocs watch) that reruns generation after a debounce window and can manage a long-running child process (e.g., Docusaurus).
  • Refactors the CrocoDocs CLI to share generate-related flags between generate and watch, adding watcher-specific options.
  • Updates website/docs developer workflows (website/package.json, Taskfile, and CrocoDocs README) to use the watcher during yarn start.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
website/package.json Routes yarn start through crocodocs watch so docs artifacts regenerate while the dev server runs.
tools/crocodocs/src/crocodocs/watch.py New watcher implementation: scans targets, detects changes, debounces, regenerates, and optionally runs/stops a child process.
tools/crocodocs/src/crocodocs/cli.py Adds watch subcommand and shared flag plumbing for generation-related overrides.
tools/crocodocs/README.md Documents the new watch workflow and updates local dev instructions.
sdk/python/Taskfile.yml Updates serve-docs task to use the new hot-reload start path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying flet-examples with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6041805
Status: ✅  Deploy successful!
Preview URL: https://0f4136af.flet-examples.pages.dev
Branch Preview URL: https://crocodocs-hot-reload.flet-examples.pages.dev

View logs

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