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

Build HTML files by default #30

Merged
merged 6 commits into from Nov 6, 2022
Merged

Conversation

arvindpz
Copy link
Collaborator

@arvindpz arvindpz commented Oct 23, 2022

Right now to generate HTML files from an epub file, we will do something like below

epub2sphinx -o sample -t classic   sample.epub                               # (Step 1)
cd sample                                                                    # (Step 2)
make html                                                                    # (Step 3)

With this change, (Step 1) will be enough to generate the HTML files. The HTML files will be generated even if the -b flag is not specified.

If -B flag is specified, the execution will stop without any post conversions.

In addition to this,

  • included a change to ignore .tmp folder in the project
  • refactored two methods in cli.py and convert.py
  • minor style changes

Change the build option to a flag instead of feature switch

-b option continues to be --build for compatibility

Introduced a new flag -B which stops execution without building HTML files
Since build is going to be a flag, it does not make sense to have a switch only for serve
@arvindpz arvindpz requested a review from nifey October 23, 2022 09:48
@nifey
Copy link
Owner

nifey commented Nov 6, 2022

Thanks for the PR. The changes look good.

@nifey nifey merged commit 3d78498 into nifey:main Nov 6, 2022
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.

None yet

2 participants