Skip to content

Commit

Permalink
Move testing tex file for draft and delete unused PDFs (#85)
Browse files Browse the repository at this point in the history
* Move test tex file

* Remove test PDFs

* Ignore tex publication artifact

* Add docs in entrypoint

* Update expected publication tex
  • Loading branch information
cthoyt authored Sep 17, 2024
1 parent 182483c commit c430b5b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/example/paper.jats
/example/paper.crossref
/example/paper.preprint.tex
example/paper.tex

# JATS schema files
/test/JATS-Publishing-1-2-MathML2-XSD.zip
Expand Down
8 changes: 7 additions & 1 deletion scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ for format in $(printf "%s" "$outformats" | sed -e 's/,/ /g'); do
mkdir -p "jats"
fi

# Note that the output file must be defined in the format's defaults file.
# Notes:
# 1. the output file must be defined in the format's defaults file.
# 2. these assume a different organizational structure than in the
# inara git repo that is created in Docker, in which the contents of
# the resources/ directory is copied into the root directory
# 3. assumes pandoc is in a certain location. Switch `/usr/local/bin/pandoc`
# to just `pandoc` locally
/usr/local/bin/pandoc \
--data-dir="$OPENJOURNALS_PATH"/data \
--defaults=shared \
Expand Down
Binary file removed test/expected-draft/paper.pdf
Binary file not shown.
File renamed without changes.
Binary file removed test/expected-pub/paper.pdf
Binary file not shown.
23 changes: 12 additions & 11 deletions test/expected-pub/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
pdfpubtype={journal},
pdfvolumenum={},
pdfissuenum={},
pdfdoi={N/A},
pdfcopyright={Copyright (c) 1970, Albert Krewinkel, Juanjo Bazán,
pdfdoi={10.21105/joss.00000},
pdfcopyright={Copyright (c) 2020, Albert Krewinkel, Juanjo Bazán,
Arfon M. Smith},
pdflicenseurl={http://creativecommons.org/licenses/by/4.0/},
colorlinks=true,
Expand Down Expand Up @@ -136,9 +136,9 @@
\renewcommand{\footrulewidth}{0.25pt}

\fancyfoot[L]{\parbox[t]{0.98\headwidth}{\footnotesize{\sffamily Krewinkel
et al. (1970). Article Writing with Markdown and the Open Journals
et al. (2020). Article Writing with Markdown and the Open Journals
publishing pipeline. \emph{Journal of Open Source Software},
\emph{¿VOL?}(¿ISSUE?), ¿PAGE? \url{https://doi.org/N/A}}.}}
\emph{0}(5), 00000. \url{https://doi.org/10.21105/joss.00000}}.}}


\fancyfoot[R]{\sffamily \thepage}
Expand Down Expand Up @@ -394,15 +394,15 @@
%\hrule
\sffamily\small

{\bfseries DOI:} \href{https://doi.org/N/A}{\color{linky}{N/A}}
{\bfseries DOI:} \href{https://doi.org/10.21105/joss.00000}{\color{linky}{10.21105/joss.00000}}

\vspace{2mm}
{\bfseries Software}
\begin{itemize}
\setlength\itemsep{0em}
\item \href{https://github.com/openjournals}{\color{linky}{Review}} \ExternalLink
\item \href{https://github.com/openjournals}{\color{linky}{Repository}} \ExternalLink
\item \href{https://doi.org/10.5281}{\color{linky}{Archive}} \ExternalLink
\item \href{https://github.com/openjournals/inara/issues}{\color{linky}{Review}} \ExternalLink
\item \href{https://github.com/openjournals/inara}{\color{linky}{Repository}} \ExternalLink
\item \href{https://doi.org/10.5281/zenodo.00000000}{\color{linky}{Archive}} \ExternalLink
\end{itemize}

\vspace{2mm}
Expand All @@ -418,12 +418,13 @@
{\bfseries Reviewers:}
\begin{itemize}
\setlength\itemsep{0em}
\item \href{https://github.com/openjournals}{@openjournals}
\item \href{https://github.com/SingleSourcePub}{@SingleSourcePub}
\item \href{https://github.com/IlonaSilverwood}{@IlonaSilverwood}
\end{itemize}
\vspace{2mm}

{\bfseries Submitted:} 01 January 1970\\
{\bfseries Published:} 01 January 1970
{\bfseries Submitted:} 01 January 2020\\
{\bfseries Published:} 23 May 2020

\vspace{2mm}
{\bfseries License}\\
Expand Down

0 comments on commit c430b5b

Please sign in to comment.