Skip to content

docs(api): remove stack onboarding guides from /api/docs#3460

Merged
PierreBrisorgueil merged 1 commit intomasterfrom
chore/3457-remove-stack-onboarding-guides
Apr 13, 2026
Merged

docs(api): remove stack onboarding guides from /api/docs#3460
PierreBrisorgueil merged 1 commit intomasterfrom
chore/3457-remove-stack-onboarding-guides

Conversation

@PierreBrisorgueil
Copy link
Copy Markdown
Contributor

@PierreBrisorgueil PierreBrisorgueil commented Apr 13, 2026

Summary

  • Delete modules/core/doc/guides/{getting-started,authentication,organizations}.md — these are stack-private backend onboarding docs that were being surfaced publicly via every downstream project's /api/docs through the Scalar API reference.
  • Update core.unit.tests.js + core.integration.tests.js so the guide-loader tests use temporary /tmp fixtures instead of depending on the deleted stack files.

Why

Each downstream project (trawl, comes, montaine, pierreb, ...) exposed backend-developer instructions like "clone the repo, npm install, localhost:3000" at its public API docs URL (e.g. https://api.trawl.me/api/docs#description/getting-started). Those guides are irrelevant to API consumers and talked about a stack they do not know exists.

Convention going forward

The stack ships zero public API guides. Each downstream project owns the markdown rendered in its own /api/docs via its own modules' doc/guides/*.md. The guide loader (lib/helpers/guides.js) and the config/assets.js glob modules/*/doc/guides/*.md already handle an empty guide list gracefully, so no loader changes were needed.

Downstream cleanup will follow via /update-stack propagation on each project.

Test plan

  • npm run lint — clean
  • npm run test:coverage — 766/766 green, no coverage regression
  • Guide loader unit tests rewritten to use /tmp fixtures (no dependency on deleted files)
  • /api/spec.json integration test asserts on openapi + info.version + optional info.description — works whether or not any module ships a guide
  • CodeRabbit review clean

Closes #3457

Summary by CodeRabbit

  • Documentation

    • Removed Authentication guide covering JWT-based authentication and token lifecycle
    • Removed Getting Started guide covering local development environment setup
    • Removed Organizations guide covering team management and member roles
  • Tests

    • Updated API specification validation tests with flexible assertion handling

Delete modules/core/doc/guides/{getting-started,authentication,organizations}.md.
These are stack-private backend developer onboarding docs, not public API
documentation. They were surfaced in every downstream project's /api/docs
(e.g. https://api.trawl.me/api/docs) via the Scalar reference, exposing
irrelevant "npm install / localhost:3000" content to project consumers.

Convention going forward: the stack ships zero public API guides. Each
downstream project owns the content rendered in its own /api/docs via its
own modules' doc/guides/*.md files.

Tests that exercised the guide loader against these specific files now
use temporary fixtures under /tmp instead, so the loader behavior is
still covered without depending on stack-owned content. The integration
test on /api/spec.json no longer asserts on specific guide titles.

The glob `modules/*/doc/guides/*.md` and `guidesHelper.loadGuides` already
handle an empty guide list gracefully (see the no-op merge branch).

Closes #3457
Copilot AI review requested due to automatic review settings April 13, 2026 10:37
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 13, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 788d0b91-c875-4e77-a783-c63a083292c7

📥 Commits

Reviewing files that changed from the base of the PR and between ec216ba and 6990ae6.

📒 Files selected for processing (5)
  • modules/core/doc/guides/authentication.md
  • modules/core/doc/guides/getting-started.md
  • modules/core/doc/guides/organizations.md
  • modules/core/tests/core.integration.tests.js
  • modules/core/tests/core.unit.tests.js
💤 Files with no reviewable changes (3)
  • modules/core/doc/guides/authentication.md
  • modules/core/doc/guides/organizations.md
  • modules/core/doc/guides/getting-started.md

Walkthrough

Removes three stack-onboarding documentation guides (getting-started, authentication, organizations) from public API reference to prevent downstream projects from inheriting backend developer instructions. Updates tests to use temporary guides and relaxes OpenAPI spec assertions that previously validated guide content presence.

Changes

Cohort / File(s) Summary
Documentation Guides Deletion
modules/core/doc/guides/authentication.md, modules/core/doc/guides/getting-started.md, modules/core/doc/guides/organizations.md
Removed three stack-onboarding guides (JWT auth flow, Node.js local setup, team management/roles) totaling 208 lines that were previously merged into public API documentation.
Test Updates
modules/core/tests/core.integration.tests.js, modules/core/tests/core.unit.tests.js
Refactored tests to use runtime-created temporary guides instead of committed fixtures; relaxed OpenAPI spec assertions to validate info block structure without checking for merged guide text content; added async/await and file cleanup patterns.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~14 minutes

Possibly related PRs

Suggested labels

Refactor

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing stack onboarding guides from public API documentation.
Description check ✅ Passed The description covers all required template sections: summary of changes, rationale, test validation, and linked issue closure.
Linked Issues check ✅ Passed All coding requirements from issue #3457 are met: three guide files deleted, tests updated to use temp fixtures, guide loader handles empty guide list correctly.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the linked issue: deleted guides, updated guide-loader tests, and integration test adjustments are all necessary for the primary objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/3457-remove-stack-onboarding-guides

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes stack-private onboarding markdown guides from the Core module so downstream projects no longer publicly expose backend developer setup content via /api/docs (Scalar), and updates Core tests to avoid depending on the removed files.

Changes:

  • Deleted Core markdown guides previously merged into the OpenAPI info.description.
  • Reworked unit tests to generate temporary guide fixtures under /tmp instead of reading deleted repo files.
  • Relaxed the /api/spec.json integration assertion to validate the OpenAPI info block without requiring guides to exist.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
modules/core/tests/core.unit.tests.js Updates guide-loader-related unit tests to use temporary markdown fixtures and adjusts title expectations.
modules/core/tests/core.integration.tests.js Updates /api/spec.json integration test to assert a valid OpenAPI info block without requiring info.description.
modules/core/doc/guides/getting-started.md Removed stack onboarding guide from publicly surfaced API docs.
modules/core/doc/guides/authentication.md Removed stack onboarding guide from publicly surfaced API docs.
modules/core/doc/guides/organizations.md Removed stack onboarding guide from publicly surfaced API docs.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.81%. Comparing base (3cc434c) to head (6990ae6).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3460   +/-   ##
=======================================
  Coverage   85.81%   85.81%           
=======================================
  Files         115      115           
  Lines        2911     2911           
  Branches      805      805           
=======================================
  Hits         2498     2498           
  Misses        327      327           
  Partials       86       86           

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@PierreBrisorgueil PierreBrisorgueil merged commit 4b8bdcb into master Apr 13, 2026
9 checks passed
@PierreBrisorgueil PierreBrisorgueil deleted the chore/3457-remove-stack-onboarding-guides branch April 13, 2026 10:41
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.

docs(api): remove generic stack-onboarding guides from /api/docs

2 participants