Render docs/ markdown + mermaid at -docs URL #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone — implements the
-docssurface perconvention-client-project-structure.Repo
ldraney/pal-enterprisesUser Story
As a client logged into pal-enterprises
I want to click my
-docslink and see rendered project documentation with diagramsSo that I can reference my project docs without reading raw markdown on Forgejo
Context
Per
convention-client-project-structure, every project gets a-docssurface behind Keycloak. Thedocs/directory already exists in this repo withREADME.md,onboarding.md,architecture.md, anddashboards.md. Rails needs to be configured to render these markdown files (with mermaid diagram support) at a route. This is the dogfooding instance — pal-enterprises-docs serves platform docs to Lucas and clients.File Targets
Files to create or modify:
app/controllers/docs_controller.rb— serves rendered markdown fromdocs/app/views/docs/— view templates for rendered docsconfig/routes.rb— add/docsroutesGemfile— add markdown rendering gem (e.g.,redcarpetorcommonmarker)Files NOT to touch:
docs/content files — already written, just need renderingAcceptance Criteria
/docsroute rendersdocs/README.mdas the index/docs/:slugrenders individual doc files (e.g.,/docs/architecture)Test Expectations
bin/rails testConstraints
docs/Checklist
Related
convention-client-project-structure— the convention requiring this surfaceproject-pal-enterprisesScope Review: NEEDS_REFINEMENT
Review note:
review-1186-2026-05-09Template is complete and file targets verified, but security and traceability gaps need attention before this moves to next_up.
Issues found:
[BODY]Missing security AC: No acceptance criterion for path traversal protection. The docs controller reads files from disk based on user-supplied slugs -- must reject traversal sequences like../and restrict slugs to[a-z0-9_-].[BODY]Missing security constraint: Add slug sanitization requirement to Constraints section.[BODY]Test infra gap:test/directory does not exist in the repo. Test Expectations referencesbin/rails testbut there is no test infrastructure to run. Note this in the ticket.[SCOPE]arch note missing:arch-rails-appnote does not exist in pal-e-docs. Create it.[SCOPE]convention missing:convention-client-project-structurereferenced in Context and Related does not exist in pal-e-docs. Create it or update the reference.Closing — architecture changed. The
-docssurface is a separate RoR repo, not a route within pal-enterprises. Replaced by a new ticket for creating thepal-enterprises-docsrepo.