Skip to content

ci: clean hierarchical docs before copy - #49

Closed
loama wants to merge 1 commit into
mainfrom
fix/clean-hierarchical-docs
Closed

ci: clean hierarchical docs before copy#49
loama wants to merge 1 commit into
mainfrom
fix/clean-hierarchical-docs

Conversation

@loama

@loama loama commented Aug 7, 2026

Copy link
Copy Markdown

What

Clean the existing HierarchicalForecast aggregate directory before copying the current generated documentation in both publication workflows.

Why

Copying over the existing directory leaves pages that were removed from the source repository. Three stale pages currently produce six Mintlify broken link findings even though those pages no longer exist in the current HierarchicalForecast documentation build.

How

  1. Remove only docs/hierarchicalforecast immediately before the copy step.
  2. Copy the current HierarchicalForecast build as before.
  3. Leave every other repository aggregation step unchanged.

Testing

  1. Recreated the aggregate from fresh documentation branches.
  2. Confirmed the three stale pages disappear after replacement.
  3. Ran the native Mintlify broken link checker three times. Every run reported zero targeted findings, with the aggregate total improving from 259 to 250.
  4. Inspected the complete diff, ran git diff --check, and scanned the diff for credentials.
  5. Parsed both workflow files with Prettier. The existing style warning also occurs on untouched main.

Checklist

  • The change is limited to HierarchicalForecast aggregation.
  • Preview and production use the same cleanup behavior.
  • No source documentation is deleted.

@loama loama added the documentation Improvements or additions to documentation label Aug 7, 2026
@loama loama self-assigned this Aug 7, 2026
@loama loama closed this Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant