Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
fix: generate pngs for Markdown and PDFs from the .odt drawings
Browse files Browse the repository at this point in the history
  • Loading branch information
rsavoye committed Jan 1, 2024
1 parent d7bd81f commit bee8c33
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
Binary file added docs/E2E/OrgProfile.odt
Binary file not shown.
Binary file added docs/E2E/ProjectsProfile.odt
Binary file not shown.
Binary file added docs/E2E/UserProfile.odt
Binary file not shown.
22 changes: 19 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,31 @@ PACKAGE := org.tm-admin.py
NAME := tm-admin
VERSION := 0.1.0

DRAW := $(wildcard */*.odt)
DRAW := $(wildcard E2E/*.odt)
PNGS := $(DRAW:.odt=.png)
PDFS := $(DRAW:.odt=.pdf)

all: $(DRAW)
all: pngs pdfs
@echo "$(DRAW)"

pngs: $(PNGS)

pdfs: $(PDFS)

apidoc:
-@doxygen

%.png: %.odt
@echo "Generating $@ file for use in Markdown files"
-libreoffice --draw --convert-to png "$<"
-libreoffice --draw --headless --convert-to png "$<"
# -@mv *Profile.png images/

%.pdf: %.odt
@echo "Generating $@ file for use in Markdown files"
-libreoffice --draw --headless --convert-to pdf "$<"
# -@mv *Profile.png images

clean:
-$(RM) *.png *.pdf

force:

0 comments on commit bee8c33

Please sign in to comment.