Skip to content

Comments

Add partial support for sections properties#47

Open
neclepsio wants to merge 18 commits intogo-shiori:mainfrom
neclepsio:svg
Open

Add partial support for sections properties#47
neclepsio wants to merge 18 commits intogo-shiori:mainfrom
neclepsio:svg

Conversation

@neclepsio
Copy link

@neclepsio neclepsio commented Oct 16, 2024

Fixes #40 and #46.

} else {

parentRelativePath := filepath.Join(xhtmlFolderName, parent)
parentRelativePath := path.Join(xhtmlFolderName, parent)

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

Copy link
Author

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.

Comment on lines 37 to 49
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
```

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

Copy link
Author

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.

Choose a reason for hiding this comment

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

yes

Copy link

@Monirzadeh Monirzadeh left a 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

@Monirzadeh Monirzadeh requested a review from fmartingr October 18, 2024 08:56
@codecov-commenter
Copy link

codecov-commenter commented Oct 18, 2024

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.45%. Comparing base (822e45c) to head (c9a0724).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #47      +/-   ##
==========================================
+ Coverage   82.04%   82.45%   +0.40%     
==========================================
  Files          12       12              
  Lines         997     1020      +23     
==========================================
+ Hits          818      841      +23     
  Misses        114      114              
  Partials       65       65              

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

The property "svg" should be declared in the OPF file

3 participants