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

[INFRA] Auto adjust table fences before PDF conversion #560

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
241d6ce
Update version and date in header (from pulling latest version of ups…
sebastientourbier Jul 31, 2020
5321d6a
Updated my contributions
sebastientourbier Jul 31, 2020
a68ed8d
Update version and date in header
sebastientourbier Aug 4, 2020
0ddd609
Added functions to correct tables before pdf generation
sebastientourbier Aug 4, 2020
89fe1ab
DOC: update docstring
sebastientourbier Aug 4, 2020
b22a65e
FIX: correct most all tables automatically (number of dashes and alig…
sebastientourbier Aug 4, 2020
d17fb62
FIX: install numpy in build_docs_pdf job
sebastientourbier Aug 5, 2020
4bc42ed
MAINT: code refactoring
sebastientourbier Aug 5, 2020
66f1fc8
DOC: updated docstring and comments
sebastientourbier Aug 5, 2020
d70d48a
MAINT: code refactoring
sebastientourbier Aug 5, 2020
d981443
FIX: attempt to fix installation of numpy in circleci
sebastientourbier Aug 5, 2020
fec1670
FIX: 3rd attempt to fix installation of numpy in circleci
sebastientourbier Aug 5, 2020
dc6c4a6
An other attempt to install numpy
sebastientourbier Aug 5, 2020
f75568e
An other attempt to install numpy via pip3 by upgrading the texlive d…
sebastientourbier Aug 5, 2020
5613e03
An other attempt to install numpy via pip3 by upgrading the texlive d…
sebastientourbier Aug 5, 2020
efd9417
FIX: add offset to second column as an attempt ot fix table p28
sebastientourbier Aug 5, 2020
ca985ea
FIX: tables with `` such as `contrast_label` p.29
sebastientourbier Aug 5, 2020
8783a0a
MAINT: Applied suggestions from PR review
sebastientourbier Aug 5, 2020
3a34542
FIX: better handles :--: delimiters
sebastientourbier Aug 5, 2020
89dc17f
MAINT: apply suggestions from review of docstrings
sebastientourbier Aug 5, 2020
6d942ae
FIX: detection of tables
sebastientourbier Aug 5, 2020
acb2f70
FIX: review offset and correction of first column width
sebastientourbier Aug 5, 2020
0546d63
MAINT: added blank new line
sebastientourbier Aug 5, 2020
738d293
MAINT: reviewed blank line at end of file
sebastientourbier Aug 5, 2020
01efbd3
MAINT: should revert the cover.tex and header.tex as they are on master
sebastientourbier Aug 5, 2020
1d4c529
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
d57c896
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
3b509ec
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
2bca21d
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
da58081
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
a169303
Update pdf_build_src/process_markdowns.py
sebastientourbier Aug 5, 2020
dd6545e
MAINT: refactored code as suggested and include the entity table
sebastientourbier Aug 7, 2020
0bcba77
MAINT: code and prints cleaning
sebastientourbier Aug 7, 2020
5d0aad7
MAINT: simplify rule to correct the tables and get rid of NB_CHARS_LI…
sebastientourbier Aug 7, 2020
202619d
MAINT: missing changed lines related to previous commit
sebastientourbier Aug 7, 2020
01864d1
MAINT: add comment
sebastientourbier Aug 7, 2020
e5987a9
MAINT: add debug bool parameter to _contains_table_start()
sebastientourbier Aug 7, 2020
1d50c1e
MAINT: updated contributor list
sebastientourbier Aug 7, 2020
55d1f71
Fix spaces around ``=``
sebastientourbier Aug 10, 2020
cab3b00
Fix spaces around ``=``
sebastientourbier Aug 10, 2020
1dbbab3
Fix typo in docstring
sebastientourbier Aug 10, 2020
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
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ jobs:
build_docs_pdf:
working_directory: ~/bids-specification/pdf_build_src
docker:
- image: danteev/texlive:TL2017
- image: danteev/texlive:latest
steps:
- checkout:
path: ~/bids-specification
- run:
command: |
pip3 install numpy
- run:
name: generate pdf version docs
command: sh build_pdf.sh
Expand Down
5 changes: 2 additions & 3 deletions pdf_build_src/pandoc_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"""
import os
import subprocess



def build_pdf(filename):
"""Construct command with required pandoc flags and run using subprocess.

Expand Down Expand Up @@ -40,4 +39,4 @@ def build_pdf(filename):


if __name__ == "__main__":
build_pdf('bids-spec.pdf')
build_pdf('bids-spec.pdf')
Loading