Commit Graph

97 Commits

Author SHA1 Message Date
Ced
a93a19d40d Reorder and add comments in makefile
Also added markers {{{ for folding
2025-01-21 20:56:40 +00:00
Ced
7f2f010571 Simplify the epub size check 2025-01-21 20:56:40 +00:00
Ced
75b015cda6 Remove debug flag on default website build 2025-01-21 20:56:40 +00:00
Cedric
ad94b9fabc Enable abbreviations in standalone flowcharts
Spun the file out for inclusion basically... we want to be able to use
\eg in flowcharts even when built standalone.

Fixed dependencies in makefile as well
2025-01-21 20:56:40 +00:00
Cedric
7f6fde9e42 Fix makefile standalone flowchart png generation 2025-01-21 20:56:40 +00:00
Cedric
6202f44881 Fix missing dependency for low-res epub
Some checks failed
Release the book and website / build-and-push-image (push) Has been cancelled
Release the book and website / release-book-website (push) Has been cancelled
Release the book and website / invalidate-book-website-cache (push) Has been cancelled
the png files will be provided by rsync but make does not know that so
just removing them from dependency list for now.

TODO: Is there a better fix?
2024-12-31 17:06:04 +00:00
Stoneguard001
32d600005c reduce epub file size with ower res pics (#406)
* epub - use the lower resolution colour as release epub
* Add in check for epub size, will fail if too big (>50MB)

* added folders ebook and website build folders to .gitignore
2024-12-31 16:05:52 +00:00
Cedric
d78c29ba66 Fix a bug on make clean
Some checks are pending
Release the book and website / build-and-push-image (push) Waiting to run
Release the book and website / release-book-website (push) Blocked by required conditions
Release the book and website / invalidate-book-website-cache (push) Blocked by required conditions
We were deleting the .table files by mistake with clean/mrproper
2024-12-30 23:54:10 +00:00
Cedric
e00f853063 Stop using latexmk for the booklet
Looks like it breaks parallel build on  Github CI
2024-12-29 20:19:12 +00:00
Cedric
2dea80a29c Disble biber for booklet
Some checks are pending
Release the book and website / build-and-push-image (push) Waiting to run
Release the book and website / release-book-website (push) Blocked by required conditions
Release the book and website / invalidate-book-website-cache (push) Blocked by required conditions
2024-12-28 18:31:19 +00:00
Cedric
d462e5adba Simplify and improve clean rules
Things changed over time, with new versions of the tools and this was
not kept consistent.

also use -rm without space like in the manual... makes no difference but
both styles were used.
2024-12-28 15:40:15 +00:00
Cedric
c6a5038d2f Use a build dir for ebook and website
This is a new feature of Tex4ht and prevents dumping all files in
current directory, much cleaner..

This also allows to build the ebook and website in parallel.

As a consequence website is not built with make bake.
2024-12-28 14:59:30 +00:00
Stoneguard001
d2d79cd992 Reduce colour ebook size
Reduce picture quality as the kindle app on the phone has a 30 MByte limit
2024-12-27 14:47:02 +00:00
Cedric
85144e4678 Finish spell checking support in makefile 2024-12-26 20:13:21 +00:00
Cedric
abd3a23486 WIP spell checking 2024-12-26 16:48:04 +00:00
Cedric
296461f13d Prevent git from using a pager in makefile 2024-12-26 16:13:14 +00:00
Cedric
424f4c84c6 Fix lacheck version output 2024-12-26 16:13:14 +00:00
Cedric
12bfae0710 Revamp help for clarity 2024-12-26 16:13:14 +00:00
Ced
67adc3b54f Fix typo in makefile
recipes were not added as dependencies
2024-05-30 09:38:53 +01:00
Ced
ebdf0ad3fc Fix booklet dependencies in makefile 2024-05-29 09:59:03 +01:00
cedounet
24a9f5c31e Booklet (#362)
* Initial support for building a booklet

This is really WIP but add support in the makefile for building another
book from the same source.

As the target name suggests, it will be a TL;DR version of the
framework.

* Extract recipes in their own tex file (flat bread)

In order to reuse recipes in the booklet, we need to extract them in
their own tex file sourced by both.

* Add clean and quick targets for booklet

* Initial version of the booklet

Very very WIP, ugly as but need to start somewhere.

* Update the booklet

- Add pics
- Change layout

* Update makefile for booklet

- Add help target
- Follow naming conventions for target

* Remove non-wheat Bread

* Pack the picture together and fix captions

Takes less place, looks better, only good things...

* Remove labels

* Reorder figs and pics more logically

* Fix the fill-yourself baker math table

Much nicer and add rooms for comments

* Center pics and flowcharts and fix indentation

* Add booklet to all target

It will also be part of the release

* Reduce dependencies for booklet

not perfect but better, will avoid rebuild every tiem we work on the
text itself :)

* Add the booklet to the README

* Add docker entry, fix typo

* Add making sourdough starter

---------

Co-authored-by: Hendrik Kleinwaechter <hendrik.kleinwaechter@gmail.com>
2024-05-29 07:49:53 +02:00
Ced
99cf6db279 Show PATH when using show_tools_version 2024-05-26 01:05:12 +01:00
Ced
84d7b38ba5 Delete BW-book-epub directory in mrproper
Also made clean target handle both
2024-04-21 21:24:02 +01:00
Ced
617901cc81 Add css files as dependency in makefile
They were not tracked.  Also reorganised a little bit to decouple pdf
from ebook.
2024-01-19 14:06:01 +00:00
Cedric
737debe123 Revert "Revert "Fix giberrish website timeline""
This reverts commit b559d72781.

This should prevent the build from breaking eveb if it does not fix
anything..
2023-11-19 13:39:57 +00:00
Cedric
b559d72781 Revert "Fix giberrish website timeline"
This reverts commit 2f3b8ec89b.

makes things worst...
2023-11-18 21:43:29 +00:00
Cedric
2f3b8ec89b Fix giberrish website timeline
Solves https://github.com/hendricius/the-sourdough-framework/issues/279
by removing dvisvgm_hashes
2023-11-18 20:51:02 +00:00
Ced
0dd9c69c2c Add dvisvgm version info 2023-11-15 14:39:39 +00:00
Ced
c774409759 Factorize epub format
We only build that right now so let's put in main macro
2023-11-02 09:31:08 +00:00
Ced
d495757e15 Stop on first error in quick target
This is only useful when debugging so makes sense not to wait for the
entire compilation.

so support for epub though would require to change the config file with
Make:htlatex { latex_par="-halt-on-error"}
2023-11-02 09:28:28 +00:00
Ced
ec254e80e0 Fix the MIME type for BW ebook
last fix only fixed the xml container not the MIME type :(
2023-11-01 15:39:59 +00:00
Ced
a1eec0d84f Clean up makefile after BW ebook
Accumulated some debts through panic debug as CI was broken... Nothing
dramatic but could do with a bit of cleanup.

Simplify dependency graph, might also make the whole thing faster when
run in parallel
2023-11-01 15:39:50 +00:00
Ced
14abcdcbf0 Ensure copy happened before BW conversion
as we have subdirs...
2023-10-30 15:23:59 +00:00
Ced
6532f8d5f7 Ensure dir is created before image BW conversion
Now that parallel build is enabled
2023-10-30 14:58:09 +00:00
cedounet
1ce9802689 Makefile tools version (#266)
* Fix details on tools version display in makefile

- Show OS version
- Use macro instead of harcoded tool for convert.
2023-10-29 17:26:33 +00:00
Ced
2a6149520c Fix BW epub not opening in apple books
The mime-type was not correct
2023-10-27 17:19:36 +01:00
Hendrik Kleinwaechter
187fc1d0fc Glossary (#258)
* Glossary

This adds a glossary with common terms to the book

* Apply ordering changes

* Add PR feedback

* Move to backmatter
2023-10-22 20:18:11 +02:00
Ced
8efb48fa51 Add missing pic dependencies
The pictures inside sub-directories were not tracked as dependencies.
2023-10-09 18:47:41 +01:00
Ced
3e7815f3c4 Add Black and white epub to release 2023-10-09 18:26:05 +01:00
Ced
c34d635495 Simplify directory creation rules 2023-10-09 18:22:33 +01:00
Ced
9d0a43c58a Improve monochrome ebook generation in makefile
- Each picture is done independently
- Some comments
- Factor out commands
- Add the tools version
2023-10-09 17:48:03 +01:00
Ced
6176d8fd7b Implement proof of concept BW ebook in makefile
Dependencies are not great but shows the idea
- Resize images
- Reduce quality
- Convert to Black and white

Result:
    57M  book.epub
    17M  bw_book.epub
2023-10-08 18:58:26 +01:00
Ced
62ee9cd9e4 Simplify and fix spelling mistakes in makefile
- Factorize PHONY targets
- Add comments
2023-10-08 18:09:52 +01:00
Ced
a53698de97 Rename makefile ebook targets
serif made no sense any more.  Prepare for the black_white version.
2023-10-07 17:29:58 +01:00
Ced
bdae960144 Add latexmk diagnostic in debug mode 2023-10-03 23:52:27 +01:00
Ced
1eb305a3fe Add shell version to the show_version_target 2023-10-03 23:51:22 +01:00
Ced
97f3a044c2 Enforce bash as shell in makefile
Was not the case on my debian machine for some reason...
2023-10-03 23:51:22 +01:00
cedounet
335c5eb86b Remove azw3 (#243)
* Remove azw3 and mobi ebook format from build

they take a lot of time and are being deprecated on main branch.

* Remove kindlegen from tools version
2023-09-27 16:13:22 +02:00
cedounet
916fab0038 Remove azw3 and mobi ebook format from build (#242)
they take a lot of time and are being deprecated on main branch.
2023-09-26 15:30:38 +02:00
Ced
31b4f12ae6 Fix bug in makefile clean command 2023-09-17 14:53:36 +01:00