Skip to content

Migrate docs to VitePress#167

Merged
dereuromark merged 2 commits into
masterfrom
docs-vitepress
May 4, 2026
Merged

Migrate docs to VitePress#167
dereuromark merged 2 commits into
masterfrom
docs-vitepress

Conversation

@dereuromark
Copy link
Copy Markdown
Owner

Summary

Migrates the docs from a flat camel-case layout (docs/Authentication.md, docs/AuthUser.md, etc.) to a structured VitePress site at https://dereuromark.github.io/cakephp-tinyauth/.

Structure

Section Pages
Guide overview, 5-min quick-start, install, configuration, troubleshooting, upgrade (all split out of the old 211-line README)
Authentication setup & INI, custom adapter
Authorization setup & INI, custom adapter, multi-role
Standalone auth-user (component / helper), auth-panel (DebugKit)

15 pages total. All files renamed to kebab-case under topic folders. Internal cross-links rewritten to absolute VitePress paths. The 4 image references in auth-panel updated to root-relative paths after moving img/ to docs/public/img/. Local search, sitemap, lastUpdated timestamps, brand-colored theme, and a custom SVG padlock logo + favicon shipped under docs/public/.

Files of note

  • docs/.vitepress/config.ts — sidebar groups, top nav, search, sitemap, lastUpdated, editLink
  • docs/.vitepress/theme/custom.css — brand colors and hero glow
  • .github/workflows/deploy-docs.yml — builds and publishes to GitHub Pages on push to master (paths-filter on docs/**)
  • CONTRIBUTING.md — moved from the README's contributing section to repo root for GitHub auto-link
  • composer.json — added support.docs URL
  • README.md — points users at the deployed docs URL

Manual step required after merge

GitHub repo Settings → Pages → Source = "GitHub Actions" (one-time toggle so the deploy workflow can publish).

Heads-up

External bookmarks to the old camel-case docs/Authentication.md, docs/Authorization.md, etc. will 404 after merge — intentional restructure cost. Worth a one-line note in the next release.

- Reorganize docs/ into guide/, authentication/, authorization/ with kebab-case file names
- Split the README's mixed concerns (overview, install, troubleshooting, upgrade) into dedicated guide pages
- Add new 5-min quick-start with the smallest working two-INI-file setup
- Add VitePress config with sidebar groups, top nav, local search, sitemap, lastUpdated, brand-colored theme, and SVG padlock logo
- Add GitHub Pages deploy workflow building from docs/ on push to master
- Move CONTRIBUTING.md to repo root for GitHub auto-link
- Add docs URL to composer.json support metadata
- Update root README.md to point to https://dereuromark.github.io/cakephp-tinyauth/
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 4, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.59%. Comparing base (4ae2d03) to head (041bf1d).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #167   +/-   ##
=========================================
  Coverage     67.59%   67.59%           
  Complexity      627      627           
=========================================
  Files            29       29           
  Lines          1614     1614           
=========================================
  Hits           1091     1091           
  Misses          523      523           

☔ 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.

…eware/policy, CLI commands

Audit of src/ vs docs/ surfaced public-facing functionality the original prose never described:

- New authentication/impersonation.md — PrimaryKeySessionAuthenticator with the impersonate() flow, full config table, start/detect/stop pattern
- New guide/custom-adapters.md — interfaces, return shapes for both Allow and ACL adapters, registration via TinyAuth.allowAdapter / aclAdapter, skeleton DB-driven example
- New authorization/middleware.md — RequestAuthorizationMiddleware config table, RequestPolicy reference, both unauthorized handlers (ForbiddenRedirect, ForbiddenCakeRedirect) with full options
- New reference/cli.md — tiny_auth add and tiny_auth sync with all arguments, options, interactive mode, and a typical project workflow

Sidebar updated to surface the four new pages.
@dereuromark dereuromark merged commit 863552d into master May 4, 2026
16 checks passed
@dereuromark dereuromark deleted the docs-vitepress branch May 4, 2026 11: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.

2 participants