Skip to content

fix(docs): stop tracking the generated VitePress dependency cache - #769

Merged
linghengqian merged 1 commit into
version-fox:mainfrom
mansur-akhmadi:fix/untrack-vitepress-cache
Nov 14, 2026
Merged

linghengqian merged 1 commit into
version-fox:mainfrom
mansur-akhmadi:fix/untrack-vitepress-cache

Conversation

@mansur-akhmadi

Copy link
Copy Markdown
Contributor

Fixes #768

docs/.vitepress/cache/ holds Vite's pre-bundled dependencies. It got committed with the doc site in #54, and nothing ignored it, so every local docs:dev run rewrote those 20 files and they showed up in git status.

This removes the directory from the index and adds /docs/.vitepress/cache/ to .gitignore, next to the existing .temp/ and dist/ entries.

Checked locally:

  • npm run docs:build passes with the cache directory gone. The Documentation workflow only runs npm install and docs:build, so it doesn't need these files.
  • After vitepress dev regenerates the cache, git status shows nothing under docs/.vitepress/cache (those files are now ignored). On main, the same run leaves 8 of the tracked cache files modified.

@codecov

codecov Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.62%. Comparing base (c4f6275) to head (0113671).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #769   +/-   ##
=======================================
  Coverage   56.62%   56.62%           
=======================================
  Files         116      116           
  Lines        8595     8595           
=======================================
  Hits         4867     4867           
  Misses       3263     3263           
  Partials      465      465           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@linghengqian linghengqian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@linghengqian
linghengqian merged commit 034a04a into version-fox:main Nov 14, 2026
7 checks passed
@linghengqian linghengqian added bug Something isn't working documentation Improvements or additions to documentation labels Nov 14, 2026
@linghengqian linghengqian added this to the 1.1.1 milestone Nov 14, 2026
@linghengqian linghengqian added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Generated VitePress dependency cache is committed under docs/.vitepress/cache

2 participants