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>
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.