Skip to content

Proper documentation (Diátaxis) (#42)#43

Merged
ilouzl merged 10 commits into
developfrom
cursor/proper-documentation-b364
Jul 22, 2026
Merged

Proper documentation (Diátaxis) (#42)#43
ilouzl merged 10 commits into
developfrom
cursor/proper-documentation-b364

Conversation

@ilouzl

@ilouzl ilouzl commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Closes #42

Restructures Tap Python SDK docs using the Diátaxis framework (via the documentation-writer skill), publishes them with MkDocs Material to GitHub Pages, and verifies docs on PRs with a Cursor CLI GitHub Action.

Documentation content

  • docs/ Diátaxis quadrants (tutorial, how-to, reference, explanation)
  • Slim Readme.md linking into docs/
  • Public API docstrings
  • .cursor/rules/diataxis-docs.mdc + .cursor/cli.json for agent verification

Workflows — already running on this PR

Workflow PR behavior (this branch) Full test before merge
Deploy docs mkdocs build --strict Set Pages → GitHub Actions, then Actions → Deploy docs → Run workflow (branch cursor/proper-documentation-b364, deploy=true)
Verify docs Runs; skips agent until secret is set ✅ gh secret set CURSOR_API_KEY --repo TapWithUs/tap-python-sdk, then re-run Verify docs (or push any docs change)

Site URL after deploy: https://tapwithus.github.io/tap-python-sdk/

Checks

  • flake8 / pytest — pass
  • mkdocs build --strict — pass on PR
  • Both new workflows green on this PR (verify skips agent until CURSOR_API_KEY exists)
Open in Web Open in Cursor 

ilouzl and others added 5 commits July 19, 2026 13:52
Co-authored-by: Cursor <cursoragent@cursor.com>
Add docs/ with tutorial, how-to guides, reference, and explanation;
slim the README to an overview that links into those sections; and
add docstrings on the public API so reference and source stay aligned.

Co-authored-by: Liron Ilouz <ilouzl@users.noreply.github.com>
Add mkdocs.yml, requirements-docs.txt, and a Pages workflow that
builds on PRs and deploys on master. Sync axis diagrams into
docs/assets and point example links at GitHub so mkdocs --strict
builds cleanly.

Co-authored-by: Liron Ilouz <ilouzl@users.noreply.github.com>
Add a restricted Verify docs Action that runs the Cursor CLI against
Diátaxis guidelines on PRs, with sticky PR comments and a failing
check when updates are needed. Expand Deploy docs so PRs always build
and workflow_dispatch can deploy from this branch before merge.

Co-authored-by: Liron Ilouz <ilouzl@users.noreply.github.com>
Allow the Verify docs workflow to succeed on this branch with a PR
notice when the secret is missing, so Deploy docs and Verify docs can
both be exercised before the key is configured.

Co-authored-by: Liron Ilouz <ilouzl@users.noreply.github.com>
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

Docs check

  • Status: OK
  • Affected quadrants: tutorial, how-to, reference, explanation
  • Gaps: none
  • Suggested edits: none

ilouzl and others added 2 commits July 22, 2026 12:00
Headless agent exits on workspace trust prompt in GitHub Actions.
Also drop Diátaxis/CI mentions from published docs per review.

Co-authored-by: Cursor <cursoragent@cursor.com>
Move restrictive agent permissions to .github/docs-verify-cli.json
and copy into .cursor/cli.json only during the CI job so local
agent CLI runs in this repo are unaffected.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ilouzl
ilouzl marked this pull request as ready for review July 22, 2026 09:12
@ilouzl
ilouzl marked this pull request as draft July 22, 2026 09:13
@ilouzl
ilouzl changed the base branch from master to develop July 22, 2026 09:14
ilouzl and others added 2 commits July 22, 2026 12:21
Resolve Readme conflict by keeping the Diátaxis overview and porting
get_device_info documentation into docs/reference.

Co-authored-by: Cursor <cursoragent@cursor.com>
Stop overwriting committed docs/assets images, post agent comments via
body files to avoid shell injection, and run verify-docs on docs/* branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ilouzl
ilouzl marked this pull request as ready for review July 22, 2026 09:22
Post a new PR comment on each failed run (with workflow link) instead of
silently updating the old one. Tighten the agent prompt and CLI permissions
so missing files are reported only after git ls-files/test verification.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ilouzl
ilouzl merged commit 789cea5 into develop Jul 22, 2026
12 checks passed
@ilouzl
ilouzl deleted the cursor/proper-documentation-b364 branch July 22, 2026 10:02
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.

Proper documentation

2 participants