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.0" have entirely different histories.
9 changed files with 6 additions and 88 deletions
|
|
@ -24,7 +24,7 @@ steps:
|
|||
password:
|
||||
from_secret: DOCKER_PASSWORD
|
||||
auto_tag: true
|
||||
auto_tag_suffix: diagram
|
||||
auto_tag_suffix: -diagram
|
||||
dockerfile: Dockerfile.ubuntu
|
||||
target: stage-diagram
|
||||
|
||||
|
|
@ -32,4 +32,4 @@ steps:
|
|||
image: alpine
|
||||
depends_on:
|
||||
- default
|
||||
- diagram
|
||||
- diagram
|
||||
1
.gitattributes
vendored
1
.gitattributes
vendored
|
|
@ -1 +0,0 @@
|
|||
*.icc filter=lfs diff=lfs merge=lfs -text
|
||||
|
|
@ -7,26 +7,16 @@ RUN set -ex; \
|
|||
ghostscript \
|
||||
inotify-tools \
|
||||
make \
|
||||
patch \
|
||||
; \
|
||||
\
|
||||
tlmgr update --self; \
|
||||
\
|
||||
tlmgr install \
|
||||
kpfonts \
|
||||
lastpage \
|
||||
latexmk \
|
||||
twemojis \
|
||||
;
|
||||
|
||||
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
|
||||
ENTRYPOINT ["autodoc"]
|
||||
CMD ["-bw"]
|
||||
|
|
@ -44,6 +34,7 @@ RUN set -ex; \
|
|||
apk add --no-cache \
|
||||
chromium \
|
||||
npm \
|
||||
patch \
|
||||
; \
|
||||
\
|
||||
npm install --global @mermaid-js/mermaid-cli; \
|
||||
|
|
|
|||
|
|
@ -8,26 +8,16 @@ RUN set -ex; \
|
|||
ghostscript \
|
||||
inotify-tools \
|
||||
make \
|
||||
patch \
|
||||
; rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
tlmgr update --self; \
|
||||
\
|
||||
tlmgr install \
|
||||
kpfonts \
|
||||
lastpage \
|
||||
latexmk \
|
||||
twemojis \
|
||||
;
|
||||
|
||||
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
|
||||
ENTRYPOINT ["autodoc"]
|
||||
CMD ["-bw"]
|
||||
|
|
@ -52,6 +42,7 @@ RUN set -ex; \
|
|||
libxkbcommon0 \
|
||||
libxrandr2 \
|
||||
npm \
|
||||
patch \
|
||||
; rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
npm install --global @mermaid-js/mermaid-cli; \
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
--- diagram.lua
|
||||
+++ diagram.lua
|
||||
--- diagram.lua 2024-11-18 23:55:02.673989033 +0100
|
||||
+++ diagram.patched.lua 2024-11-19 00:10:14.359878550 +0100
|
||||
@@ -158,7 +158,7 @@
|
||||
write_file(infile, code)
|
||||
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