Skip to content

docs: fix broken images/links, wrong download workflow, and stale tooling references#616

Open
ZayanKhan-12 wants to merge 5 commits into
salesforce:masterfrom
ZayanKhan-12:docs/fix-doc-drift
Open

docs: fix broken images/links, wrong download workflow, and stale tooling references#616
ZayanKhan-12 wants to merge 5 commits into
salesforce:masterfrom
ZayanKhan-12:docs/fix-doc-drift

Conversation

@ZayanKhan-12

Copy link
Copy Markdown

Five commits, each independently revertible:

  1. Report screenshot 404sdocs/index.md and docs/user-guide/scan-account.md embed docs/_images/cloudsplaining-report.gif, which resolves relative to each page's own directory (docs/docs/_images/…, docs/user-guide/docs/_images/…) — the image is broken on both the MkDocs site and GitHub. Fixed to _images/… / ../_images/….
  2. Broken examples/ linksexamples/ lives at the repository root, so relative links from inside docs/ 404; scan-account.md additionally displayed examples/output/example-authz-details-results.json, a path that has never existed. Linked to the canonical GitHub locations.
  3. Download workflow that can't workdocs/user-guide/overview.md and docs/report/triage.md document cloudsplaining download --profile default --output default-account-details.json, but --output is an existing directory (click.Path(exists=True), cloudsplaining/command/download.py) and the output file is always <profile>.json — so that command fails, and the follow-up scan --input-file default-account-details.json references a file that would never exist. Corrected to download --profile default + scan --input-file default.json.
  4. Copy-paste-breaking line continuationsREADME.md and docs/user-guide/scan-multiple-accounts.md end multi-line commands with backslash-space, which escapes the space instead of continuing the line.
  5. Stale tooling references — the contributing guides document make setup-env/test/test-js/build-js/serve-js/build-docs/serve-docs/generate-report/security-test, but there is no Makefile; tooling is uv + just (test.yml runs just unit-tests etc.). Each command mapped to its actual recipe; removed the mention of a utils test script that doesn't exist.

Verification: all image/link targets checked against the tree; the --output behavior checked against the click definition and the filename logic in download.py; every just recipe name checked against the justfile and CI workflows; python -m pytest test passes locally (130/130; Python 3.14, macOS arm64).

Prepared with AI assistance (Claude); every claim mechanically verified as described.

zk-khan and others added 5 commits July 26, 2026 19:52
Both pages embedded docs/_images/..., which resolves relative to the
page's own directory (docs/docs/_images and docs/user-guide/docs/_images
respectively) - the image 404s on the MkDocs site and on GitHub.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
examples/ lives at the repository root, so relative links from inside
docs/ (docs/examples/...) resolve to nonexistent paths on both GitHub
and the docs site; scan-account.md additionally displayed a path
(examples/output/example-authz-details-results.json) that has never
existed. Link to the canonical GitHub locations.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
'download --output' takes an existing directory (click.Path(exists=True),
cloudsplaining/command/download.py), not an output filename, and the
downloaded file is always named <profile>.json - so the documented
'--output default-account-details.json' fails and the follow-up scan
referenced a file that would never exist. Use the default directory and
the real default.json filename.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
'\ ' at end of line escapes the space instead of continuing the
command, so the multi-line create-multi-account-config-file and
scan-multiple-accounts examples break when copy-pasted.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The contributing docs referenced 'make setup-env/test/test-js/build-js/
serve-js/build-docs/serve-docs/generate-report/security-test', but the
repository has no Makefile; tooling is uv + just (justfile; test.yml
runs 'just unit-tests' etc.). Map each command to its actual recipe and
drop the reference to a utils test script that does not exist.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@salesforce-cla

Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @zk-khan to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants