Commit graph

21 commits

Author SHA1 Message Date
c2893c30a6 refactor(docker, utils): streamline Dockerfile and update PDF build script
This change removes unnecessary dependencies and optimizes the PDF build
process, enhancing maintainability and reducing potential errors.

- Removed `python3-pypandoc` from Dockerfile to minimize dependency
  footprint.
- Replaced `texlive-xetex` with `texlive` in Dockerfile for broader TeX
  support.
- Introduced `subprocess` in `build_pdf.py` to replace `pypandoc`,
  improving process control.
- Added `run_process_with_params` function to handle command execution,
  increasing code modularity and error handling.
- Created `build_pdf.old.py` as a backup of the original script for
  reference.

Signed-off-by: Glenn Y. Rolland <glenux@glenux.net>
2025-03-27 15:23:11 +01:00
6a2abc6235 feat(docker): modularize Docker setup for docs and slides
Introduces distinct Dockerfiles for documentation and slide projects, enhancing modularity and build efficiency. The previous monolithic structure was less flexible and caused longer build times.

- Added `DOCMACHINE_DOCS_ENABLE` and `DOCMACHINE_SLIDES_ENABLE` env variables to toggle features.
- Created `docker/Dockerfile.docs` for documentation builds, including necessary tools and dependencies.
- Created `docker/Dockerfile.slides` for slide builds to streamline setup.
- Updated main Dockerfile to include `python-is-python3` for compatibility, removing redundant symlinks.
- Enhanced LaTeX tools by adding `texlive-xetex` and extra fonts for improved PDF output.
2025-03-27 10:14:38 +01:00
0fea694575 chore: update Dockerfile dependencies and improve PDF build process 2024-12-12 09:19:29 +01:00
0e364f496d feat: add support for rsync (needed by image subdirs) 2024-02-16 23:58:51 +01:00
bee16a9593 Bump debian and python versions 2024-02-01 14:12:24 +01:00
adaa7c0f25 fix: Force version number for node image 2023-01-12 08:47:45 +01:00
9df6e9911f fix: Use Marp configuration files 2022-08-18 10:55:58 +02:00
b5b278f0b6 fix(Dockerfile): follow redirections in curl 2022-01-30 17:15:32 +01:00
73e55d8e55 fix: add missing package 'curl' 2022-01-28 18:46:55 +01:00
5515ff2d18 feat: handle mkdocs patching 2022-01-28 18:41:34 +01:00
911856ef49 docker: add more tools needed for pdfs 2021-12-21 17:38:13 +01:00
bd325fd13e fix: add missing package m4 (needed by build-docs-pdf) 2021-12-21 16:54:22 +01:00
939f161845 Add support for unzip 2021-12-16 06:44:22 +01:00
4ce276bf83 fix: Pipenv must use .venv in project to share dependencies 2021-12-15 18:10:04 +01:00
67a5cea132 fix: Add missing link & env for pipenv 2021-12-15 17:47:14 +01:00
20b498bc55 fix: make pipenv install system-wide 2021-12-06 14:59:18 +01:00
4131813fa5 docker: switch to non-root user 2021-11-30 14:02:48 +01:00
e7bfbca9dc docker: include chromium to build slides (fix) 2021-11-30 13:38:30 +01:00
ea801eacb8 docker: include chromium to build slides 2021-11-30 13:33:42 +01:00
8fa255631d Update docker scripts 2021-11-23 23:46:50 +01:00
ce08f3d90f Add docker files 2021-10-10 11:21:36 +02:00