Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #9990 header and footer template files #10012

Closed
wants to merge 2 commits into from
Closed

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

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