X Tutup
Skip to content

Add publisher, producer, series, and author sort config options#108

Merged
azu merged 8 commits intohonkit:masterfrom
anthonynelzinsantos:convert-options
Aug 6, 2020
Merged

Add publisher, producer, series, and author sort config options#108
azu merged 8 commits intohonkit:masterfrom
anthonynelzinsantos:convert-options

Conversation

@anthonynelzinsantos
Copy link
Contributor

Related to #107, this PR adds the publisher and producer config options, to allow for a more flexible ePub output.

Necessary to work on macOS.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
The book producer and publisher aren't harcoded anymore. Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
Related to 9d02c08. Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
@azu
Copy link
Member

azu commented Aug 4, 2020

It seems that snapshot testing is failed.
you need to update snapshot via yarn run updateSnapshot.
https://github.com/honkit/honkit/pull/108/checks?check_run_id=941363472

Probably, revert packages/honkit/src/tests/fixtures/honkit/docs/config.md changes and pass tests

| `title` | Title of your book, default value is extracted from the README. |
| `description` | Description of your book, default value is extracted from the README. |
| `author` | Name of the author. |
| `producer` | Name of the producer. |
Copy link
Member

Choose a reason for hiding this comment

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

Ah, This is fixture files.
You do not need to update this.

You can pass the tests via revert this change instead of update snapshots.
#108 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, I'll do that!

@anthonynelzinsantos anthonynelzinsantos marked this pull request as draft August 5, 2020 15:54
No need to update the fixtures! Duh.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
No if statement needed, although the code would probably be more robust with one, as ebook-convert ignores empty params. Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
Add hour to ensure ebook-convert will output the correct date. If no/erroneous date is provided, the compile time will be used. Addresses #107.

Signed-off-by: Anthony Nelzin-Santos <anthony@nelzin.fr>
@anthonynelzinsantos anthonynelzinsantos changed the title Add publisher and producer config options Add publisher, producer, series, and author sort config options Aug 5, 2020
@anthonynelzinsantos
Copy link
Contributor Author

That should be better, now.

@anthonynelzinsantos anthonynelzinsantos marked this pull request as ready for review August 5, 2020 16:47
@azu azu requested a review from a team August 5, 2020 17:29
Copy link
Member

@azu azu 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!

LGTM

| `publisher` | Name of the publisher. |
| `series` | The series this book belongs to. |
| `seriesIndex` | Index of the book in this series. |
| `pubdate` | Publication date of the book, formatted as YYYY-MM-DDTHH:MM:SS. |
Copy link
Member

Choose a reason for hiding this comment

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

Nice documentation ✨

@azu azu merged commit fd7b05b into honkit:master Aug 6, 2020
@azu
Copy link
Member

azu commented Aug 6, 2020

We have release Release v3.6.0 · honkit/honkit 🎉

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.

2 participants

X Tutup