Skip to content

Conversation

@haarg
Copy link
Member

@haarg haarg commented Dec 28, 2025

This extends the /view/ controller to recognize markdown files and use a dedicated action and template to view the rendered files. The /source/ URLs are restored to properly showing the source the markdown files.

@haarg haarg force-pushed the haarg/markdown-refactor branch from ea2ad2d to a07f98e Compare December 29, 2025 11:41
@codecov
Copy link

codecov bot commented Dec 29, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.87%. Comparing base (98950f2) to head (31503f7).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
lib/MetaCPAN/Web/Controller/View.pm 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3487      +/-   ##
==========================================
+ Coverage   73.66%   73.87%   +0.20%     
==========================================
  Files          67       68       +1     
  Lines        2354     2369      +15     
  Branches      333      333              
==========================================
+ Hits         1734     1750      +16     
  Misses        497      497              
+ Partials      123      122       -1     
Files with missing lines Coverage Δ
lib/MetaCPAN/Web/Controller/ContributingDoc.pm 85.71% <100.00%> (+5.71%) ⬆️
lib/MetaCPAN/Web/Controller/MD.pm 100.00% <100.00%> (ø)
lib/MetaCPAN/Web/Controller/Pod.pm 67.74% <100.00%> (-2.85%) ⬇️
lib/MetaCPAN/Web/Model/API.pm 85.07% <100.00%> (+0.45%) ⬆️
lib/MetaCPAN/Web/Controller/View.pm 66.66% <84.61%> (+10.66%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@haarg haarg force-pushed the haarg/markdown-refactor branch from a07f98e to 31503f7 Compare December 29, 2025 12:01
content is too generic of a name for what we've been using it for. It
conflicts with a class name sometimes used by the syntax highlighter.
An IO::Async::Loop subclass is likely to have circular references, which
causes problems with Data::Dump. Data::Dump is used by Catalyst do
output debug info. Add a filter to show a fake loop object to allow
these dumps to work properly.
This allows the /view/ URLs to show markdown files, including the full
sidebar.
The source page should show source, but it was hijacked to render
markdown. Now that a dedicated markdown controller exists and the
rendered files can be seen on /view/ URLs, the source page can be
properly restored to showing the source.
@haarg haarg force-pushed the haarg/markdown-refactor branch from 31503f7 to d5cd86f Compare December 29, 2025 13:23
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