Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(manuscript): update bioarxiv v2 #646

Merged
merged 35 commits into from
Aug 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e482ec2
docs(manuscript): add preprocessing methods
cameronraysmith Aug 21, 2024
4f828b0
docs(manuscript): add posterior sampling methods
cameronraysmith Aug 21, 2024
03e3d6e
chore(manuscript): update v2 diff file
cameronraysmith Aug 21, 2024
4118f42
docs(manuscript): use v2 cached Fig. 1 and Ext Fig. 1
cameronraysmith Aug 21, 2024
3e0e59c
fix(manuscript): reduce spacing above title
cameronraysmith Aug 21, 2024
a5aba5d
fix(manuscript): comment showframe and layout to print page layout
cameronraysmith Aug 21, 2024
2a2ab5b
chore(manuscript): sync figures lock
cameronraysmith Aug 21, 2024
b7c2618
fix(manuscript): use dvipsnames
cameronraysmith Aug 21, 2024
41f386e
fix(manuscript): use dvipsnamed email color
cameronraysmith Aug 21, 2024
c59c182
fix(manuscript): bold custom caption headings
cameronraysmith Aug 21, 2024
b602c35
fix(manuscript): use bold panel references
cameronraysmith Aug 21, 2024
0d7ea3d
chore(manuscript): update v2 diff file
cameronraysmith Aug 21, 2024
11d23f8
docs(manuscript): use v2 cached figures
cameronraysmith Aug 22, 2024
a147243
chore(manuscript): sync figures lock
cameronraysmith Aug 22, 2024
4c493ff
chore(manuscript): update v2 diff file
cameronraysmith Aug 22, 2024
538c255
docs(manuscript): update methods
cameronraysmith Aug 22, 2024
92e8462
chore(manuscript): update v2 diff file
cameronraysmith Aug 22, 2024
83492fd
docs(manuscript): separate copy and cache tex make targets
cameronraysmith Aug 22, 2024
7c23eb7
docs(manuscript): update methods
cameronraysmith Aug 22, 2024
a21bad1
chore(manuscript): update v2 diff file
cameronraysmith Aug 22, 2024
406419f
ci(manuscript): add latex diff to artifacts
cameronraysmith Aug 22, 2024
0accd03
docs(manuscript): update comparison sha1
cameronraysmith Aug 22, 2024
92f02f0
docs(manuscript): use xelatex and bibtex with latexdiff
cameronraysmith Aug 22, 2024
4821cd7
fix(cid): ignore manuscript workflow
cameronraysmith Aug 22, 2024
711b5f9
test(cid): enable diff
cameronraysmith Aug 22, 2024
516c44e
ci(manuscript): set concurrency
cameronraysmith Aug 22, 2024
37d63a6
ci(manuscript): declare git safe directory in texlive container
cameronraysmith Aug 22, 2024
47cefa1
test(ci): move compute diff to top of render job
cameronraysmith Aug 22, 2024
f0547ac
docs(manuscript): disable latexdiff view
cameronraysmith Aug 22, 2024
0706ab6
ci(manuscript): run latexdiff after render
cameronraysmith Aug 22, 2024
cacc4b0
ci(manuscript): add tinytex bin to PATH
cameronraysmith Aug 22, 2024
c0c03ce
ci(manuscript): use relative path to artifacts
cameronraysmith Aug 22, 2024
bc3b542
ci(manuscript): remove unnecessary commands
cameronraysmith Aug 22, 2024
64d181f
ci(manuscript): add figures lock file to artifact
cameronraysmith Aug 22, 2024
8484462
docs(manuscript): update v2 comparison sha-1
cameronraysmith Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/cid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
- beta
paths-ignore:
- ".github/workflows/colab.yml"
- ".github/workflows/manuscript.yaml"
- "conda/**"
- "dev/**"
- "docs/**"
Expand All @@ -22,6 +23,7 @@ on:
types: [opened, synchronize, labeled, reopened]
paths-ignore:
- ".github/workflows/colab.yml"
- ".github/workflows/manuscript.yaml"
- "conda/**"
- "dev/**"
- "docs/**"
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/manuscript.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
required: true
type: boolean
default: false
diff_enabled:
description: "Compute document changes with latexdiff"
required: true
type: boolean
default: true
push:
paths:
- ".github/workflows/manuscript.yaml"
Expand All @@ -19,9 +24,14 @@ defaults:
jobs:
render:
runs-on: ubuntu-latest
concurrency:
group: render-${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
steps:
- name: Check out repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- name: Setup dvc
uses: iterative/setup-dvc@68c55926a8ce27c2d4fcf7db61149ee64cf4eeb9 # v1
with:
Expand All @@ -36,8 +46,19 @@ jobs:
- name: Render
run: |
make -C reproducibility/manuscript render
- name: Compute diff
# if: ${{ inputs.diff_enabled == 'true' }}
continue-on-error: true
run: |
export PATH="/home/runner/.TinyTeX/bin/x86_64-linux:$PATH"
tlmgr install git-latexdiff latexdiff latexpand
make -C reproducibility/manuscript latexdiff
- name: Upload artifacts
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: quarto-output-${{ github.ref_name }}-${{ github.sha }}
path: "${{ github.workspace }}/reproducibility/manuscript/manuscript.*"
name: manuscript-${{ github.ref_name }}-${{ github.sha }}
path: |
reproducibility/manuscript/manuscript.*
reproducibility/manuscript/v2*.*
reproducibility/manuscript/*.bib
reproducibility/manuscript/*.dvc
10 changes: 8 additions & 2 deletions reproducibility/manuscript/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,13 @@ clean-all: clean
#-------

TEX_FILE = v2
COMPARISON_SHA1 = a12bbe5
COMPARISON_SHA1 = 64d181f

cache-tex: ## Cache the tex file
copy-tex: ## Copy temporary tex file artifact to git-tracked file
cp $(DOCUMENT_NAME).tex $(TEX_FILE).tex

cache-tex: ## Cache the tex file
cache-tex: copy-tex
git add $(TEX_FILE).tex
git commit -m "chore(manuscript): update $(TEX_FILE) diff file"

Expand All @@ -109,6 +112,9 @@ latexdiff:
git-latexdiff \
--ignore-latex-errors \
--latexmk \
--xelatex \
--bibtex \
--no-view \
--ignore-makefile \
--ln-untracked \
--output $(TEX_FILE)-$(COMPARISON_SHA1)-diff.pdf \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
\usepackage{amsthm}%
\usepackage{mathrsfs}%
\usepackage[title]{appendix}%
\usepackage{xcolor}%
\usepackage[dvipsnames]{xcolor}%
\usepackage{textcomp}%
\usepackage{manyfoot}%
\usepackage{booktabs}%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$if(title)$
\maketitle
% \clearpage
% \layout
\newpage{}
$endif$
Original file line number Diff line number Diff line change
Expand Up @@ -560,12 +560,12 @@
\if@corauemail%
\g@addto@macro\corrauthemail{%
\setcounter{footnote}{0}%
\textcolor{blue}{#1};\ %
\textcolor{NavyBlue}{#1};\ %
}%
\else%
\g@addto@macro\authemail{%
\setcounter{footnote}{0}%
\textcolor{blue}{#1};\ %
\textcolor{NavyBlue}{#1};\ %
}%
\fi}

Expand Down Expand Up @@ -749,13 +749,14 @@
%% Article Header Definition
\renewcommand{\@maketitle}{\newpage\null%
% \if@remarkboxon\vbox to 0pt{\vspace*{-78pt}\hspace*{-18pt}\FMremark}\else\vskip21pt\fi%%\par%
\if@remarkboxon\vbox to 0pt{\vspace*{-78pt}\hspace*{-18pt}\FMremark}\else\vskip21pt\fi%%\par%
\if@remarkboxon\vbox to 0pt{\vspace*{-78pt}\hspace*{-18pt}\FMremark}\else\vskip0pt\fi%%\par%
\hsize\textwidth\parindent0pt%%%\vskip7pt%
%% Aritle Type
{\hbox to \textwidth{{\Artcatfont\ArtType\hfill}\par}}
%% Aritle Title
\ifx\@title\empty\else%
\removelastskip\vskip20pt\nointerlineskip%
% \removelastskip\vskip20pt\nointerlineskip%
\removelastskip\vskip0pt\nointerlineskip%
{\Titlefont\@title\par}
%\addcontentsline{toc}{chapter}{\@title}% for bookmarks
\fi%
Expand Down
6 changes: 3 additions & 3 deletions reproducibility/manuscript/figures.dvc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
outs:
- md5: d4dbc71316265b18583a3b80be5f3d98.dir
size: 94209
nfiles: 2
- md5: f0e383998f54f05364f6bb029fc7191f.dir
size: 5361624
nfiles: 9
hash: md5
path: figures
3 changes: 3 additions & 0 deletions reproducibility/manuscript/header.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
\usepackage{nameref}
\usepackage{placeins}
\usepackage[labelfont=bf]{caption}
% \usepackage{showframe}
% \usepackage{layout}
\allowdisplaybreaks
Loading
Loading