-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add partial support for sections properties #47
base: main
Are you sure you want to change the base?
Conversation
@@ -174,7 +175,7 @@ func (t *toc) addSubSection(parent string, index int, title string, relativePath | |||
t.ncxXML.NavMap = append(t.ncxXML.NavMap, np) | |||
} else { | |||
|
|||
parentRelativePath := filepath.Join(xhtmlFolderName, parent) | |||
parentRelativePath := path.Join(xhtmlFolderName, parent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why change filepath
to path
?
filepath
choose the target runtime's file separators OS so it work correctly on window and Linux that has different separator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a fix for #46.
1. Download and extract EPUBCheck in the root directory of this project, e.g. | ||
|
||
``` | ||
wget https://github.com/IDPF/epubcheck/releases/download/v4.2.5/epubcheck-4.2.5.zip | ||
unzip epubcheck-4.2.5.zip | ||
wget https://github.com/IDPF/epubcheck/releases/download/v5.1.0/epubcheck-5.1.0.zip | ||
unzip epubcheck-5.1.0.zip | ||
``` | ||
|
||
You can use this command to download and extract the latest versions of EPUBCheck (recommended). | ||
|
||
``` | ||
curl -s https://api.github.com/repos/w3c/epubcheck/releases/latest | awk -F': "' '/browser_download_url/ && /epubcheck/ {gsub(/"$/, "", $2); print $2}' | xargs curl -Lo epubcheck.zip | ||
unzip epubcheck.zip | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can just keep Curl command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's what you proposed in the previous pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for PR i left some comment of them
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #47 +/- ##
==========================================
- Coverage 85.12% 83.24% -1.89%
==========================================
Files 12 12
Lines 995 1289 +294
==========================================
+ Hits 847 1073 +226
- Misses 81 149 +68
Partials 67 67 ☔ View full report in Codecov by Sentry. |
Fixes #40 and #46.