mirror of
https://github.com/ldericher/autodoc.git
synced 2025-12-06 23:52:59 +00:00
Compare commits
No commits in common. "master" and "v0.8.1" have entirely different histories.
8 changed files with 4 additions and 84 deletions
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1 +0,0 @@
|
||||||
*.icc filter=lfs diff=lfs merge=lfs -text
|
|
||||||
|
|
@ -7,11 +7,8 @@ RUN set -ex; \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
inotify-tools \
|
inotify-tools \
|
||||||
make \
|
make \
|
||||||
patch \
|
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
tlmgr update --self; \
|
|
||||||
\
|
|
||||||
tlmgr install \
|
tlmgr install \
|
||||||
kpfonts \
|
kpfonts \
|
||||||
lastpage \
|
lastpage \
|
||||||
|
|
@ -21,12 +18,6 @@ RUN set -ex; \
|
||||||
|
|
||||||
COPY src/usr /usr
|
COPY src/usr /usr
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
\
|
|
||||||
cp /usr/share/ghostscript/lib/PDFA_def.ps /usr/local/share/autodoc/; \
|
|
||||||
patch -d /usr/local/share/autodoc < /usr/local/share/autodoc/PDFA_def.ps.patch; \
|
|
||||||
rm /usr/local/share/autodoc/PDFA_def.ps.patch;
|
|
||||||
|
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
ENTRYPOINT ["autodoc"]
|
ENTRYPOINT ["autodoc"]
|
||||||
CMD ["-bw"]
|
CMD ["-bw"]
|
||||||
|
|
@ -44,6 +35,7 @@ RUN set -ex; \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
chromium \
|
chromium \
|
||||||
npm \
|
npm \
|
||||||
|
patch \
|
||||||
; \
|
; \
|
||||||
\
|
\
|
||||||
npm install --global @mermaid-js/mermaid-cli; \
|
npm install --global @mermaid-js/mermaid-cli; \
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,8 @@ RUN set -ex; \
|
||||||
ghostscript \
|
ghostscript \
|
||||||
inotify-tools \
|
inotify-tools \
|
||||||
make \
|
make \
|
||||||
patch \
|
|
||||||
; rm -rf /var/lib/apt/lists/*; \
|
; rm -rf /var/lib/apt/lists/*; \
|
||||||
\
|
\
|
||||||
tlmgr update --self; \
|
|
||||||
\
|
|
||||||
tlmgr install \
|
tlmgr install \
|
||||||
kpfonts \
|
kpfonts \
|
||||||
lastpage \
|
lastpage \
|
||||||
|
|
@ -22,12 +19,6 @@ RUN set -ex; \
|
||||||
|
|
||||||
COPY src/usr /usr
|
COPY src/usr /usr
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
\
|
|
||||||
cp /usr/share/ghostscript/10.02.1/lib/PDFA_def.ps /usr/local/share/autodoc/; \
|
|
||||||
patch -d /usr/local/share/autodoc < /usr/local/share/autodoc/PDFA_def.ps.patch; \
|
|
||||||
rm /usr/local/share/autodoc/PDFA_def.ps.patch;
|
|
||||||
|
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
ENTRYPOINT ["autodoc"]
|
ENTRYPOINT ["autodoc"]
|
||||||
CMD ["-bw"]
|
CMD ["-bw"]
|
||||||
|
|
@ -52,6 +43,7 @@ RUN set -ex; \
|
||||||
libxkbcommon0 \
|
libxkbcommon0 \
|
||||||
libxrandr2 \
|
libxrandr2 \
|
||||||
npm \
|
npm \
|
||||||
|
patch \
|
||||||
; rm -rf /var/lib/apt/lists/*; \
|
; rm -rf /var/lib/apt/lists/*; \
|
||||||
\
|
\
|
||||||
npm install --global @mermaid-js/mermaid-cli; \
|
npm install --global @mermaid-js/mermaid-cli; \
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
--- diagram.lua
|
--- diagram.lua 2024-11-18 23:55:02.673989033 +0100
|
||||||
+++ diagram.lua
|
+++ diagram.patched.lua 2024-11-19 00:10:14.359878550 +0100
|
||||||
@@ -158,7 +158,7 @@
|
@@ -158,7 +158,7 @@
|
||||||
write_file(infile, code)
|
write_file(infile, code)
|
||||||
pipe(
|
pipe(
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
--- PDFA_def.ps
|
|
||||||
+++ PDFA_def.ps
|
|
||||||
@@ -9,7 +9,7 @@
|
|
||||||
/DOCINFO pdfmark
|
|
||||||
|
|
||||||
% Define an ICC profile :
|
|
||||||
-/ICCProfile (srgb.icc) % Customise
|
|
||||||
+/ICCProfile (/usr/local/share/autodoc/sRGB.icc) % Customise
|
|
||||||
def
|
|
||||||
|
|
||||||
[/_objdef {icc_PDFA} /type /stream /OBJ pdfmark
|
|
||||||
BIN
src/usr/local/share/autodoc/compatibleWithAdobeRGB1998.icc
(Stored with Git LFS)
BIN
src/usr/local/share/autodoc/compatibleWithAdobeRGB1998.icc
(Stored with Git LFS)
Binary file not shown.
|
|
@ -1,46 +0,0 @@
|
||||||
#############
|
|
||||||
# FUNCTIONS #
|
|
||||||
#############
|
|
||||||
|
|
||||||
PDFTOOLS_GSFLAGS := \
|
|
||||||
-sDEVICE=pdfwrite \
|
|
||||||
-dNOOUTERSAVE \
|
|
||||||
-dNOPAUSE \
|
|
||||||
-dQUIET \
|
|
||||||
-dBATCH
|
|
||||||
|
|
||||||
pdftools_pdfcat = gs \
|
|
||||||
$(PDFTOOLS_GSFLAGS) \
|
|
||||||
-sPAPERSIZE=a4 \
|
|
||||||
-dFIXEDMEDIA \
|
|
||||||
-dPDFFitPage \
|
|
||||||
-dCompatibilityLevel=1.7 \
|
|
||||||
-dPDFSETTINGS=/ebook \
|
|
||||||
-sOutputFile=$(2) \
|
|
||||||
$(1)
|
|
||||||
|
|
||||||
pdftools_mkpdfa = gs \
|
|
||||||
$(PDFTOOLS_GSFLAGS) \
|
|
||||||
-dPDFA=$(1) \
|
|
||||||
-sColorConversionStrategy=RGB \
|
|
||||||
-dPDFACompatibilityPolicy=1 \
|
|
||||||
--permit-file-read=/usr/local/share/autodoc/ \
|
|
||||||
-sOutputFile=$(3) \
|
|
||||||
/usr/local/share/autodoc/PDFA_def.ps \
|
|
||||||
$(2)
|
|
||||||
|
|
||||||
############
|
|
||||||
# PATTERNS #
|
|
||||||
############
|
|
||||||
|
|
||||||
# convert PDF to PDF/A-2B
|
|
||||||
%_pdfa2.pdf: %.pdf
|
|
||||||
$(call pdftools_mkpdfa,2,$<,$@)
|
|
||||||
|
|
||||||
# convert PDF to PDF/A-3B
|
|
||||||
%_pdfa3.pdf: %.pdf
|
|
||||||
$(call pdftools_mkpdfa,3,$<,$@)
|
|
||||||
|
|
||||||
# convert PDF to PDF/A (default variant 3B)
|
|
||||||
%_pdfa.pdf: %.pdf
|
|
||||||
$(call pdftools_mkpdfa,3,$<,$@)
|
|
||||||
BIN
src/usr/local/share/autodoc/sRGB.icc
(Stored with Git LFS)
BIN
src/usr/local/share/autodoc/sRGB.icc
(Stored with Git LFS)
Binary file not shown.
Loading…
Reference in a new issue