test: the react docs site and the server's DOCS_SITE come from two sources

Open Beginner friendly
#1,186 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react

Research direction

Read zensical.toml, scripts/site-url.js, packages/pivotkit-server/package.json, and src/options/branding.js to trace how each docs URL is sourced. Find the repository's existing test setup and add a test that compares the built-in docs site URL with the server's DOCS_SITE. Done means the test passes when they match and fails if either value drifts.

Written by the indexing model from the issue text.

Description

area:tests

pivotkit-react's built-in docs site __PIVOTKIT_DOCS__ comes from site_url in zensical.toml (scripts/site-url.js); the server's DOCS_SITE comes from homepage in packages/pivotkit-server/package.json (src/options/branding.js). Since #1185 the viewer page leaves docs-url out when the docs base equals DOCS_SITE, so if the two values drift apart, the help links another site than the server. Today both name the same site and no test keeps them equal. Proposal: a repo test that compares them.

Dominant language
JavaScript
Stars
1
Forks
1
Avg merge
3h 41m
Merged PRs (30d)
504

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from eizedev/pivotkit

All issues in eizedev/pivotkit

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.