Commit Graph

75 Commits

Author SHA1 Message Date
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
cedounet
e6cccde72a Makefile cleanup (#231)
* Add missing pic dependency on quick_ebook target

* Shorten Makefile clean rules

Less line mostly, should make it easier to read... and some wins from
not building sans-serif ebook anymore

* Simplify make help documentation

Was a bit tangled between ebook/ebook_serif/... should be clearer now.
2023-09-15 11:38:56 +02:00
cedounet
b403440c04 Remove sans serif ebook from makefile (#228)
* Add missing pic dependency on quick_ebook target

* Remove sans-serif ebooks from the build

* Remove sans-serif ebook from website and README

As per https://github.com/hendricius/the-sourdough-framework/issues/225
point 2.  The reader program will allow to change the font, no point
building it twice.

* Remove sans_serif mk4 file
2023-09-15 08:37:52 +02:00
cedounet
9104ee0642 Default target (#226)
* Add missing pic dependency on quick_ebook target

* Fix default target in makefile

The previous version was just lucky enough to be the first target not
starting with a .
2023-09-14 09:07:36 +02:00
cedounet
a1b661e8fb Add missing pic dependency on quick_ebook target (#224) 2023-09-12 07:25:53 +02:00
cedounet
580dab372b Quick targets (#221)
* Add quick targets in makefile

You can now runs luaLaTex or tex4ebook only once... should help run
faster while editing text/LaTeX macros

* Adds documentation for quick targets
2023-09-08 11:35:13 +02:00
cedounet
babfc618c2 Makefile updates (#205)
* Add synctex to makefile

Allows back and forthe between pdf reader adn your editor (shall they
support it)

* Add ruby and git head in show_version
2023-08-31 11:11:30 +02:00
cedounet
5574cb230c Mixins chapter (#203)
* Move mix-ins to its own chapter

I don't think it belongs to wheat one which is already packed,
Schwarzbort for once is usually with seeds added.

Once we have more pics it will be even more cramped in the wheat
chapter.

* Fix TeXnicalilities in mix-ins chapter

looooong lines, no use of sinunitx, abbreviations, etc..

* Fix typo

* Update book/book.tex

---------

Co-authored-by: Hendrik Kleinwaechter <hendrik.kleinwaechter@gmail.com>
2023-08-28 17:05:08 +02:00
cedounet
4f831be677 Makefile add missing dependencies (#199)
* Add intro to history chapter

* Improve paragraph breakdown

Hopefully slightly less dense to read.

* Add missing dependencies for Images
2023-08-27 11:01:22 +02:00
cedounet
35916c15f7 Add a flowchart environnement and its listof (#188)
* Add a flowchart environnement and its listof

So we can more easily access those flowcharts from pdf and website,
rather than looking in the crowded list of figures.

* Update book/troubleshooting/misc.tex

* Temporarily remove list of flow charts from web version

* Update clean target to deal with listofcharts

* Silent KOMA warnings (#190)

No functional change, but less warnings will help to read the logs.
Good idea anyway to use the key/value scheme

Co-authored-by: Cedric <ced@awase.ostal>

* Fix front-page for one sided printing (#189)

As it is manually placed, is prone to break on evry change of the page
geometry...  This one looks good though in today's conditions.

Co-authored-by: Cedric <ced@awase.ostal>

* Enable micro-typographical improvements (#191)

Few people will notice but this actually brings loads of improvements to
line breaking, handing punctuations etc.

* Revert "Temporarily remove list of flow charts from web version"

This reverts commit 9611b250d2.

* Implement listofflowchart for tex4ht

as per michal suggestion:
https://github.com/michal-h21/tex4ebook/issues/114#issuecomment-1688543095

---------

Co-authored-by: Cedric <ced@awase.ostal>
Co-authored-by: Hendrik Kleinwaechter <hendrik.kleinwaechter@gmail.com>
2023-08-24 09:30:38 +02:00
Hendrik Kleinwaechter
a8dc6dc210 Change flowchart color (#185)
* Change BG color to white

* Fix flowcharts where graphics overlap with text

* Increase border size

* change arrow style

* Allow standalone building of TikZ flowcharts

Useful for reference or website etc..

* Prevent manual hyphenation in TikZ diagrams

A Bit of a manual tweak.. but worth it to look nicer :D

* Add missing file for flowcharts

---------

Co-authored-by: Cedric <ced@awase.ostal>
2023-08-19 16:35:02 +02:00
cedounet
2d228841ec Fix website build with new front-cover (#174) 2023-08-15 19:22:19 +02:00
cedounet
b7cb0adc3e New Front page (#172)
* Improve Title page

- Made it full page (almost)
- Added a second page with links to github, license info and hard-copy
  book

* Add an xbb target for the cover page

For some reasons using picture outside float environment confuses the
ebook/dvi building

---------

Co-authored-by: Cedric <ced@awase.ostal>
2023-08-15 18:46:44 +02:00
cedounet
82c23fe8b2 Fix bundle re-run (#165)
* Use standard practices for website build

- Declare your dependencies
- Do not rebuild unless dependencies changed
- Cleanup after yourself
- Document your targets
- COMMANDS in upper case and variables/rules in lowercase

* Prevent bundle install to re-run

Split it into two separate targets one for installing env and one for
actually reworking the html.

* Fix typo in makefile comment

Co-authored-by: Hendrik Kleinwaechter <hendrik.kleinwaechter@gmail.com>

---------

Co-authored-by: Hendrik Kleinwaechter <hendrik.kleinwaechter@gmail.com>
2023-08-07 16:41:39 +02:00
cedounet
a8ad6f0a8b Use standard practices for website build (#161)
- Declare your dependencies
- Do not rebuild unless dependencies changed
- Cleanup after yourself
- Document your targets
- COMMANDS in upper case and variables/rules in lowercase
2023-08-04 15:57:08 +02:00
cedounet
4fdfaaf534 Fix clean rule (#160) 2023-08-04 13:24:13 +02:00
cedounet
0fd5f3431a Use Lualatex (#159)
* Use LuaLaTeX instead of pdfTeX

Will allow to use Open Type Fonts in the future

Other less important reasons:
    - Uniform encoding in UTF-8
    - We could maybe use some luaTeX only packages
    - It's more modern, should be better

* Use Tex Gyre Heros as helvetica clone

As it does not seem available by default on the CI machine and might
have some licensing issues.
2023-08-03 21:38:31 +02:00
cedounet
fa91b6f06f Komascript (#148)
* Add chemfig package

Somhow forgot it in chemical equation commit 8004497b

* Change links colors to codeblue

Closes https://github.com/hendricius/the-sourdough-framework/issues/142

* Use KOMA-Script and twosided printing

Because it looks better.  Also gets rid of headers/footers on empty
pages

* Fix tex4ebook and komascript clash

See https://github.com/michal-h21/tex4ebook/issues/110

* Factor out packages into a sty file

Separates style details out of the main file, now that we start having
more and more style-related settings.

* Remove parskip

Not needed with Koma-script

* Remove tocloft package

Not needed with koma-script

* Use tocbasics instead of floats

to please kpmascript internal algorithm

* Add a bit more breathing space in ToC

so they are not stuck together at 11.11 onwards...
2023-07-13 16:32:00 +02:00
Hendrik Kleinwaechter
aa78d322d5 Fix titles (#146)
This fixes the default auto generated LaTeX titles for the website
2023-07-13 15:39:42 +02:00
Hendrik Kleinwaechter
1ac6c7b196 Fix build issue 2023-07-11 09:55:28 +02:00
Hendrik Kleinwaechter
dc2b810743 Add biber version to version output 2023-07-10 18:20:55 +02:00
Hendrik Kleinwaechter
0aa5aab860 Use 2023 docker image as base 2023-07-10 17:55:33 +02:00
Hendrik Kleinwaechter
d1ff67415f Fix more issues with docker build 2023-07-10 10:42:30 +02:00