Skip to content

fix: commit docs canister ID mapping and tighten gitignore#442

Merged
marc0olo merged 1 commit intomainfrom
fix/docs-workflow-ic-ids
Mar 17, 2026
Merged

fix: commit docs canister ID mapping and tighten gitignore#442
marc0olo merged 1 commit intomainfrom
fix/docs-workflow-ic-ids

Conversation

@marc0olo
Copy link
Member

Fixes the failing docs.yml workflow after #439 merged.

Changes

  • .gitignore: Only ignore .icp/cache instead of all of .icp/ — canister ID mappings are meant to be committed in icp projects. Remove outdated .icpdata entry (no longer used by the tool). Ignore examples/*/.icp/ since this repo does not track canister IDs for the examples.
  • docs-site/.icp/data/mappings/ic.ids.json: Added to source control now that .icp/ is no longer fully gitignored.
  • docs.yml: Reverts inline canister ID back to cp from file (now that the file is tracked).

Root cause

The original .gitignore ignored all of .icp/ because this is the icp-cli development repo. But docs-site/.icp/data/mappings/ic.ids.json needs to be committed for the publish-root-files workflow job to copy it to docs-deployment.

- Only ignore .icp/cache (not all of .icp/) so canister ID mappings
  can be committed as intended for icp projects
- Remove outdated .icpdata ignore entry (no longer used)
- Ignore examples/*/.icp/ since this repo does not track canister IDs
  for the examples (neither local nor mainnet deployments)
- Commit docs-site/.icp/data/mappings/ic.ids.json (canister ID for docs)
- Restore cp in workflow (file is now in source control)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo requested a review from a team as a code owner March 17, 2026 20:33
@marc0olo marc0olo enabled auto-merge (squash) March 17, 2026 20:40
@marc0olo marc0olo merged commit 71fbfd8 into main Mar 17, 2026
92 checks passed
@marc0olo marc0olo deleted the fix/docs-workflow-ic-ids branch March 17, 2026 20: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