← 输入框|github.com|刷新
Skip to content

docs: fix stale unit-test anchors and API reference build command - #11585

Open
ZainnQureshii wants to merge 1 commit into
NativeScript:mainfrom
ZainnQureshii:docs/contributor-doc-anchors
Open

ZainnQureshii wants to merge 1 commit into
NativeScript:mainfrom
ZainnQureshii:docs/contributor-doc-anchors

Conversation

@ZainnQureshii

@ZainnQureshii ZainnQureshii commented Oct 24, 2026 •

Copy link
Copy Markdown

PR Checklist

Docs-only change, so no tests were added and the unit suite was not run. The new build command and output path are taken from the target's config files cited below; the docs build itself was not run.

What is the current behavior?

As described in #11448, a few contributor docs point at things that no longer exist:

  • tools/notes/CONTRIBUTING.md:72 links DevelopmentWorkflow.md#running-unit-tests, and the PR template links DevelopmentWorkflow.md#running-unit-tests-application. Neither heading exists; the section is ## Unit Testing (tools/notes/DevelopmentWorkflow.md:24).
  • The "Documentation API reference" section of tools/notes/DevelopmentWorkflow.md says to run npm run typedoc (output in bin/dist/apiref) and npm run dev-typedoc. Neither script is in package.json.

What is the new behavior?

  • #running-unit-tests and #running-unit-tests-application -> #unit-testing.
  • npm run typedoc -> npx nx build core-api-docs, the build target of the core-api-docs project, which npm start lists (tools/workspace-scripts.js:117-119). It runs tools/scripts/build-docs.sh, whose typedoc config writes to dist/api-reference (tools/scripts/tsconfig.typedoc.json:25), so the output path changes from bin/dist/apiref to dist/api-reference.
  • The npm run dev-typedoc paragraph is removed; there is no dev-server target for the API docs.

Fixes #11448.

Prepared with AI assistance (Claude Code) and reviewed with GitHub Copilot.

🤖 Generated with Claude Code

Point the CONTRIBUTING and PR template links at the existing
#unit-testing section, and replace the removed npm typedoc scripts
with the core-api-docs Nx target, which writes to dist/api-reference.

Fixes NativeScript#11448

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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: stale unit-test anchors and API reference build commands in contributor docs

1 participant