Skip to content

Conversation

@Foitn
Copy link

@Foitn Foitn commented Jun 17, 2024

Add reading of file, instead of only allowing the template to be added to the toc.yml

@codecov
Copy link

codecov bot commented Jun 17, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.86%. Comparing base (fe673ec) to head (77d07e4).
Report is 204 commits behind head on main.

Files Patch % Lines
src/Docfx.App/PdfBuilder.cs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10012      +/-   ##
==========================================
+ Coverage   74.31%   78.86%   +4.54%     
==========================================
  Files         536      540       +4     
  Lines       23189    23482     +293     
  Branches     4056     4067      +11     
==========================================
+ Hits        17234    18518    +1284     
+ Misses       4853     3822    -1031     
- Partials     1102     1142      +40     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

static string? GetHeaderFooter(string? template)
{
return File.Exists(template)
? File.ReadAllText(template)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the current directory if this is a relative path? Consider explicitly state the base directoy to relative to

@yufeih yufeih added the new-feature Makes the pull request to appear in "New Features" section of the next release note label Jul 9, 2024
@yufeih yufeih closed this Jul 9, 2024
@yufeih
Copy link
Contributor

yufeih commented Jul 9, 2024

Close in favor of #10099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature Makes the pull request to appear in "New Features" section of the next release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants