Skip to content

Phase 10 / Task D1: Add the CSAPI Entry Point to TypeDoc and VitePress #195

Closed

Description

@Sam-Bolling

Phase 10 Task

Task ID: D1
Title: Add the CSAPI Entry Point to TypeDoc and VitePress
Source: Approved Phase 10 Roadmap
Roadmap: P10-ROADMAP.md


  • Objective: Render the existing public CSAPI subpath in the current API-reference page with its correct consumer import path.
  • Acceptance criteria advanced: P10-C3, P10-C4, P10-C5, P10-C6.
  • Complexity/risk: Medium; documentation-pipeline integration.
  • Locked decisions: One TypeDoc JSON and one API page; two TypeDoc entry points; per-module import-path mapping; no CSAPI root bulk exports; no internal export expansion.
  • Expected work:
    • add src/ogc-api/csapi/index.ts to the existing docs:api TypeDoc command;
    • update app/api.data.js to process root and CSAPI modules with @camptocamp/ogc-client and @camptocamp/ogc-client/csapi respectively;
    • pass the import path into existing class/function processors while preserving sorting and page structure;
    • correct CSAPI-attributable unresolved documentation links using public links or code/plain text as appropriate;
    • capture the upstream root-only warning baseline and distinguish it from CSAPI-added warnings;
    • generate API data, build VitePress, and inspect representative rendered output;
    • confirm src/index.ts did not gain bulk CSAPI exports.
  • Affected areas: package.json, lockfile only if metadata requires it, app/api.data.js, and the listed CSAPI documentation-comment locations.
  • Explicit exclusions: Second API site/page/JSON, root export expansion, internal helper exports, unrelated upstream warning fixes, VitePress redesign.
  • Automated acceptance gate:
    • npm run docs:api and npm run docs:build exit 0;
    • generated data/output contains CSAPIQueryBuilder, createCSAPIBuilder, parseDatastream, and @camptocamp/ogc-client/csapi;
    • root entries still display @camptocamp/ogc-client;
    • no unexplained CSAPI-attributable TypeDoc warning remains;
    • root-export comparison reports no CSAPI bulk export;
    • formatter, typecheck, lint, and affected tests exit 0.
  • Deliverable: One pushed documentation-pipeline integration commit.
  • Closing evidence: Commit SHA, docs commands/results, representative output search, warning comparison, root-export check, files, deviations or none.

Acceptance Criteria

  • The task objective and expected work are complete under the locked decisions.
  • Every condition in the automated acceptance gate above passes and its command output is recorded.
  • The actual changed-file or evidence set stays within the listed affected areas.
  • Every explicit exclusion is respected.
  • Required workbench changes and evidence are committed and pushed to phase-10, or the task's stated evidence-only result is linked to an immutable commit.
  • The closing comment records the commit SHA or verified immutable SHA, changed files, exact gate results, and Deviation from locked decision: none. or the approved deviation.

Dependencies

Blocked by: #194 — Phase 10 Task C1
Blocks: #196 — Phase 10 Task E1

Definition of Done / Closing Workflow

This issue is not complete until all three steps occur in order:

  1. Edit this issue so every acceptance checkbox is [x].
  2. Commit and push/sync all required changes or immutable evidence.
  3. Post the required summary comment and close the issue as completed.

Do not close without the summary comment. New findings are recorded separately and are not absorbed into this task.

Operational Constraints

Before starting, review AI_OPERATIONAL_CONSTRAINTS.md and use its required task-entry acknowledgment.

Authority order for this issue:

  1. Adopted standards and specifications.
  2. Project governance.
  3. P10 Contribution Goal and Definition.
  4. P10 Implementation Guide.
  5. P10 Roadmap.
  6. This issue.
  7. Existing repository code and documentation.
  8. Conversational context.

Preserve minimal diffs, do not refactor adjacent code, do not introduce new features or dependencies, and stop on unresolved scope or architectural conflict.

Activity

  1. added
    documentation
    on Aug 27, 2026
  2. Sam-Bolling commented on Aug 27, 2026

    @Sam-Bolling
    Author

    I have reviewed the AI Operational Constraints.
    Issue goal: Complete Phase 10 Task D1 by integrating the existing public CSAPI subpath into the single TypeDoc/VitePress API reference with correct per-module consumer import paths.
    Assumptions requiring confirmation: none.

  3. Sam-Bolling commented on Aug 27, 2026

    @Sam-Bolling
    Author

    Completed Phase 10 Task D1.

    • Commit: 55c14ec47c72f6d7c9c7e9f4a0acce804c61d7e8
    • Changed files: package.json, app/api.data.js, src/ogc-api/csapi/index.ts, src/ogc-api/csapi/factory.ts, src/ogc-api/csapi/url_builder.ts, src/ogc-api/csapi/formats/sensorml/parser.ts, src/ogc-api/csapi/formats/schema-response.ts. The lockfile did not require a change.
    • TypeDoc integration: the existing docs:api command now generates one JSON from src/index.ts and src/ogc-api/csapi/index.ts; the existing loader maps module index to @camptocamp/ogc-client and module csapi to @camptocamp/ogc-client/csapi while retaining one API page and global alphabetical ordering.
    • npm run docs:api: passed under Node.js 24.20.0.
    • npm run docs:build: passed under Node.js 24.20.0; the existing VitePress JSON-import warning remains upstream/out of scope.
    • TypeDoc warning comparison: root-only baseline = 14 warnings; combined entry points after correction = 12 warnings; CSAPI-attributable combined warnings = 0. The reduction is from documenting the CSAPI builder references that were absent in the root-only run.
    • Generated/rendered output: TypeDoc contains modules index and csapi; CSAPIQueryBuilder, createCSAPIBuilder, and parseDatastream are present in csapi and absent from index. Rendered imports use @camptocamp/ogc-client/csapi for those representatives and retain @camptocamp/ogc-client for OgcApiEndpoint.
    • Root-export comparison: src/index.ts is byte-for-byte unchanged from the parent commit and contains zero CSAPI matches; no bulk CSAPI export was added.
    • Affected-file Prettier check: passed.
    • npm run typecheck: passed.
    • npm run lint: passed.
    • Affected tests: 30/30 CSAPI suites passed, 1,383/1,383 tests.
    • Clean Ubuntu QA: run 33124421646 passed repository-wide format:check, typecheck, lint, browser tests, and Node tests.
    • Explicit exclusions respected: no second API site/page/JSON, root export expansion, internal helper export, unrelated upstream warning fix, or VitePress redesign.
    • Deviation from locked decision: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-designdocumentationlocked-decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions