Skip to content

BK-2260 Paper sizes should be an instance or theme setting, and margins optionally hidden#845

Merged
eos87 merged 1 commit intobooktype:masterfrom
ride90:BK-2260
Feb 27, 2018
Merged

BK-2260 Paper sizes should be an instance or theme setting, and margins optionally hidden#845
eos87 merged 1 commit intobooktype:masterfrom
ride90:BK-2260

Conversation

@ride90
Copy link
Copy Markdown
Member

@ride90 ride90 commented Feb 15, 2018

Hi @eos87 ,we discussed this issue with @danielhjames and we decided to hide a custom page size and remove hardcoded page sizes from the templates. Now page sizes come from the PAGE_SIZE_DATA constant. This constant is overridable in setting file.
In the future we will move page sizes settings inside theme info file, so each theme will have their own settings.
P.S. The same template changes were implemented for pdfreactor converter.

@ride90 ride90 requested a review from eos87 February 15, 2018 15:13
@danielhjames
Copy link
Copy Markdown
Contributor

Does anyone know why the paper size constants are defined in two places? lib/booktype/constants.py and lib/booktype/convert/pdf/constants.py both define PAGE_SIZE_DATA

Is the latter file legacy code from the BookJS days? lib/booktype/constants.py also seems to have some data from Objavi, which is really ancient.

@ride90
Copy link
Copy Markdown
Member Author

ride90 commented Feb 15, 2018

Hi @danielhjames , yes, it is ancient parts 💯
It is actually for old pdf converter bookjs.. seems like we are not using it anymore.
We should remove them in the next updates.

@eos87 eos87 merged commit f2607f2 into booktype:master Feb 27, 2018
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.

3 participants