Skip to content

T3 alignment - #5

Merged
niden merged 4 commits into
masterfrom
T-3-alignment
Aug 5, 2026
Merged

T3 alignment#5
niden merged 4 commits into
masterfrom
T-3-alignment

Conversation

@niden

@niden niden commented Aug 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
  • I have created a PR for the documentation about this change

The Markdown markup now lives in twenty template files under resources/templates/markdown, overridable one file at a time. Output is unchanged.

The optional templates configuration key, naming a directory whose templates are consulted before the shipped ones. A .tpl that no lookup can reach - a name outside the shipped set, or a file above the format directory - is reported with the nearest real name and ignored.

Rendering one class moved out of MarkdownFormatter into Formatter\Markdown\ClassPage.

Thanks

@niden niden self-assigned this Aug 5, 2026
@niden niden added the enhancement New feature or request label Aug 5, 2026
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

Code Metrics Report

master (c25c436) #5 (cdcdc2f) +/-
Coverage 99.0% 99.1% +0.1%
Code to Test Ratio 1:0.9 1:1.0 +0.1
Test Execution Time 0s 2s +2s
Details
  |                     | master (c25c436) | #5 (cdcdc2f) |  +/-  |
  |---------------------|------------------|--------------|-------|
+ | Coverage            |            99.0% |        99.1% | +0.1% |
  |   Files             |               66 |           71 |    +5 |
  |   Lines             |             1513 |         1589 |   +76 |
+ |   Covered           |             1498 |         1575 |   +77 |
+ | Code to Test Ratio  |            1:0.9 |        1:1.0 |  +0.1 |
  |   Code              |             3225 |         3325 |  +100 |
+ |   Test              |             2954 |         3415 |  +461 |
- | Test Execution Time |               0s |           2s |   +2s |

Code coverage of files in pull request scope (98.6% → 98.9%)

Files Coverage +/- Status
src/Cli/GenerateCommand.php 100.0% 0.0% modified
src/Config.php 100.0% 0.0% modified
src/Exceptions/MissingTemplate.php 100.0% +100.0% added
src/Exceptions/MissingTemplateDirectory.php 100.0% +100.0% added
src/Exceptions/UnknownPlaceholder.php 100.0% +100.0% added
src/Formatter/Markdown/ClassPage.php 100.0% +100.0% added
src/Formatter/Markdown/Classes.php 0.0% 0.0% modified
src/Formatter/MarkdownFormatter.php 98.1% -1.5% modified
src/Reader/ZephirReader.php 97.4% +0.4% affected
src/Template/Templates.php 100.0% +100.0% added

Reported by octocov

@niden
niden merged commit d9ad533 into master Aug 5, 2026
6 checks passed
@niden
niden deleted the T-3-alignment branch August 5, 2026 02:21
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.

1 participant