Commit Graph

12 Commits

Author SHA1 Message Date
Johan Persson 67f5310557 feat(docs-ui): add automated changelog sync from @backstage/ui
Adds automated synchronization of component changelogs from
@backstage/ui package to the documentation site, eliminating
manual changelog maintenance.

The sync script parses CHANGELOG.md using remark/unified, extracts
component-specific entries via "Affected components:" tags, and
generates per-version TypeScript files with preserved markdown
formatting. Includes GitHub API integration to automatically fetch
PR numbers for changelog entries.

Key features:
- Version comparison to sync only new releases
- Per-version file structure (changelogs/v0.2.0.ts, etc.)
- Markdown preservation via AST position slicing
- Component name mapping (PascalCase → kebab-case)
- Duplicate detection for idempotent syncing
- GitHub authentication via gh CLI or GITHUB_TOKEN
- Dry-run mode with preview

Usage:
```bash
yarn sync:changelog              # Sync new entries
yarn sync:changelog:dry-run      # Preview changes
```

Technical changes:
- Added scripts/sync-changelog.mjs (991 lines)
- Refactored changelog.ts to import per-version files
- Extracted types to separate types.ts file
- Added dependencies: @octokit/rest, unified (remark-parse via @mdx-js/mdx)
- Added documentation in README.md

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2025-11-17 11:37:39 +01:00
Johan Persson 5d68e00ccd fix(docs-ui): Add missing BaseUI dependency.
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2025-11-11 16:10:24 +01:00
Charles de Dreuille d7d87d5760 Cleaning build
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-11-04 14:30:54 +00:00
Charles de Dreuille 510f9ede8b First pass at bringing our new navigation to BUI's docs
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-11-04 14:30:54 +00:00
Charles de Dreuille 87cf96e1ea Improve BUI install docs
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-10-18 22:31:56 +01:00
dependabot[bot] 5998ce722b chore(deps): bump next from 15.3.4 to 15.4.7 in /docs-ui
Bumps [next](https://github.com/vercel/next.js) from 15.3.4 to 15.4.7.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v15.3.4...v15.4.7)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.4.7
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 13:59:34 +00:00
Charles de Dreuille 3aa31bd93a Align Storybook versions
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-08-13 21:33:51 +02:00
renovate[bot] 10ea5d53ae fix(deps): update react monorepo
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-06 01:56:55 +00:00
Charles de Dreuille b2fe33e7fd Automatic version number
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-07-21 12:07:18 +01:00
Charles de Dreuille ad3a6dc90c Move Theming + Changelog to the bottom
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-07-21 11:25:48 +01:00
Charles de Dreuille c18e15adc4 Rename Canon everywhere in our docs
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-07-15 13:31:08 +01:00
Charles de Dreuille 5dde3bfe92 Move canon-docs to docs-ui
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2025-07-15 11:09:59 +01:00