Skip to content

A documentation site, cop.phalcon.io - #71

Merged
niden merged 9 commits into
masterfrom
T70-docs-site
Dec 5, 2026
Merged

niden merged 9 commits into
masterfrom
T70-docs-site

Conversation

@niden

@niden niden commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG

Small description of change:

A documentation site for https://cop.phalcon.io, in docs/, on the Phalcon docs kit (@phalcon/docs-kit kit-v2.0.0, phalcon/assets). The site installs the kit from the release file of kit-v2.0.0, with pnpm 11.29.0. It is the first site on the kit. There is no PHP change, so there are no PHP tests; the docs workflow builds and checks the site.

The site

  • Versions: 3.0 (in development, from 3.0.x), 2.0 (stable; / and /latest go to /2.0/introduction), 1.3 (deprecated, for all of 1.x).
  • Pages of each version: Introduction, Installation, Usage (with a Methods list), Examples, Flags (3.0), and Changelog (written from CHANGELOG.md at each build).
  • The nav title is "Phalcon Cop": "Phalcon CLI Options Parser" does not fit the nav at a phone width (375px). The title of the social card is "cop" for the same reason.

The text and the facts

The text of each version is the README of its release (3.0.x, master, v1.3.0). The facts agree with the code of that release:

  • 1.3 Installation says PHP >= 7.3 (the v1.3.0 README says 7.0; its composer.json needs 7.3), with one line for 1.0 to 1.2: 1.0 also needs the Phalcon extension 3.3.
  • Each example runs against src/Parser.php of its release, and its result agrees with the page (===): 3.0 6 of 6, 2.0 6 of 6, 1.3 7 of 7; the Flags page 5 of 5. One correction: the long 1.3 example had no \ after 'plain arg 2', so it did not run.
  • Each Usage page has a Methods list: each public method of the release, with its signature and what it returns (from the method body at that release). In 1.3, has(), get() and getParsedCommands() are marked "1.2 and later".
  • 3.0 Installation has a caution note: until the 3.0.0 release, composer require phalcon/cli-options-parser installs 2.x (the newest stable release on Packagist is v2.0.0); to install 3.0 now, composer require phalcon/cli-options-parser:3.0.x-dev. The note goes at the 3.0.0 release.

CHANGELOG.md

Every release from 1.0.0 to 2.0.0, from the release notes and the code: 1.2.0 also added has() and get() (#12); 1.2.1 (#18) changed only the docblocks, and excluded the development files from the archive (#16); 1.1.0 has no release note, so its entry comes from its commits.

The repository

  • .gitattributes (/docs export-ignore) and composer.json archive.exclude (/docs): the package has no docs/ (checked with git archive and composer archive).
  • main.yml: docs/** in the paths-ignore of push; pull_request does not change.
  • README.md: a link to the site. .gitignore: the lines of the kit and /.pnpm-store/.
  • .github/workflows/docs.yml: the shared docs workflow of phalcon/assets, pinned to the commit of kit-v2.0.0 (1897144). A pull request builds and checks the site; a push to master, the weekly run and a manual run on master also publish it to the production branch.

The kit version

The first push used kit-v1.0.0, and the docs site job failed: with pnpm 10, a new install from the lock did not get the kit program. The fix is in the kit:

Local checks (Docker): the 11 checks of the kit, the type check, the build (17 pages), nimbus lint, nimbus check, the icons, the social cards and their check.

The order of the steps

  • Before the merge, if possible: the Cloudflare Pages project on the production branch and the domain cop.phalcon.io, so that the README link and the first publish go live together (the first run on master makes the production branch).
  • Merge this pull request before other master pull requests, so that the merge into 3.0.x brings only the files of this pull request.
  • After the merge: a second pull request merges the merge commit of this pull request into 3.0.x. Until the 3.0.0 release, every change in docs/ goes to master.

Thanks

@niden niden added the enhancement New feature or request label Dec 5, 2026
@niden niden linked an issue Dec 5, 2026 that may be closed by this pull request
@niden niden self-assigned this Dec 5, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

With pnpm 10, the lock lost the kit folder, and a CI install got the
whole assets repository with no docs-kit program (phalcon/assets#220).
kit-v1.1.0 and pnpm 11 keep the folder in the lock.

Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

kit-v2.0.0 is one file on the GitHub Release of the kit tag (pnpm pack of
the kit). The lock keeps its address and its hash.

Assisted-by: Claude Code
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Code Metrics Report

master (4b6c04c) T70-docs-site (9afc573) +/-
Coverage 100.0% 100.0% 0.0%
Test Execution Time 1s 1s 0s
Details
  |                     | master (4b6c04c) | T70-docs-site (9afc573) | +/-  |
  |---------------------|------------------|-------------------------|------|
  | Coverage            |           100.0% |                  100.0% | 0.0% |
  |   Files             |                1 |                       1 |    0 |
  |   Lines             |               71 |                      71 |    0 |
  |   Covered           |               71 |                      71 |    0 |
  | Test Execution Time |               1s |                      1s |   0s |

Reported by octocov

@niden
niden merged commit 45955d7 into master Dec 5, 2026
15 checks passed
@niden
niden deleted the T70-docs-site branch December 5, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A documentation site, cop.phalcon.io

1 participant