From b9e1d42b51a1b6a2807ce82840c49f1791f65ac5 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Wed, 5 Jun 2019 14:05:41 -0400 Subject: [PATCH 01/10] Dependency upgrade on 2019-06-03 with multiple ref file support Merges https://github.com/manubot/rootstock/pull/227 * Upgrade dependencies on 2019-06-03 Keep python at 3.6 to avoid introducing collections.abc warnings from jinja2. Keep cairo, pango, and weasyprint at previous versions to avoid dealing with any difficulties. * Upgrade manubot to include new citation infrastructure. Includes support for multiple manual reference files of multiple formats. Rewrite USAGE.md to document new functionality. * environment.yml: remove `conda-forge::` prefix, which should not be necessary since we specify conda-forge as the channel. This change is meant to resolve conda warning: > you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies https://travis-ci.com/manubot/rootstock/builds/114188607#L507 * Update .gitignore with vscode directory --- .gitignore | 5 +++- .travis.yml | 2 +- USAGE.md | 42 ++++++++++++++++++++++++---------- build/environment.yml | 41 +++++++++++++++++---------------- content/manual-references.json | 2 +- 5 files changed, 57 insertions(+), 35 deletions(-) diff --git a/.gitignore b/.gitignore index 92941be2..ac39263a 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ __pycache__/ # Misc temporary files *.bak -# Operating system specific files +# System specific files ## Linux *~ @@ -35,3 +35,6 @@ __pycache__/ ## Windows Thumbs.db [Dd]esktop.ini + +## Text Editors +.vscode diff --git a/.travis.yml b/.travis.yml index 63a5a10a..9df3cd74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ branches: only: - master before_install: - - wget https://repo.continuum.io/miniconda/Miniconda3-4.5.12-Linux-x86_64.sh + - wget https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh --output-document miniconda.sh - bash miniconda.sh -b -p $HOME/miniconda - source $HOME/miniconda/etc/profile.d/conda.sh diff --git a/USAGE.md b/USAGE.md index 81c744ab..0d30f9d9 100644 --- a/USAGE.md +++ b/USAGE.md @@ -115,33 +115,51 @@ If `citation-tags.tsv` defines the tag `study-x`, then this study can be cited l ## Reference metadata -The Manubot workflow requires the bibliographic details for references (the set of all cited works) as CSL (Citation Style Language) Items (also known as [citeproc JSON](http://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html#csl-json-items)). -The Manubot attempts to automatically retrieve metadata and generate valid citeproc JSON for references, which is exported to `output/references.json`. -However, in some cases the Manubot fails to retrieve metadata or generates incorrect or incomplete citeproc metadata. +Manubot stores the bibliographic details for references (the set of all cited works) as CSL JSON ([Citation Style Language Items](http://citeproc-js.readthedocs.io/en/latest/csl-json/markup.html#csl-json-items)). +For all citation sources besides `raw`, Manubot automatically generates CSL JSON. +In some cases, automatic metadata retrieval fails or provides incorrect or incomplete information. Errors are most common for `url` references. -For these references, you can manually specify the correct CSL Data in [`content/manual-references.json`](content/manual-references.json), which will override the automatically generated reference data. -To do so, create a new CSL JSON Item that contains the field `"standard_citation"` with the appropriate reference identifier as its value. -The identifier can be obtained from the `standard_citation` column of `citations.tsv`, which is located in the `output` branch or in the `output` subdirectory of local builds. -As an example, `manual-references.json` contains: +Therefore, Manubot supports user-provided metadata, which we refer to as "manual references". +When a manual reference is provided, Manubot uses the supplied metadata and does not attempt to generate it. + +Manubot searches the `content` directory for files that match the glob pattern `manual-references*.*` and expects that these files contain manual references. +[`content/manual-references.json`](content/manual-references.json) is the default file to specify custom CSL JSON metadata. +Manual references are matched to citations using their "id" field. +For example, to manually specify the metadata for the citation `@url:https://github.com/manubot/rootstock`, add a CSL JSON Item to `manual-references.json` that contains the following excerpt: ```json -"standard_citation": "url:https://github.com/greenelab/manubot-rootstock" +"id": "url:https://github.com/manubot/rootstock", ``` -The metadata for `raw` citations must be provided in `manual-references.json` or an error will occur. -For example, to cite `@raw:private-message` in a manuscript, a corresponding CSL Item in `manual-references.json` is required, such as: +The metadata for `raw` citations must be provided in a manual reference file (e.g. `manual-references.json`) or an error will occur. +For example, to cite `@raw:private-message` in a manuscript, a corresponding CSL JSON Item is required, such as: ```json { + "id": "raw:private-message", "type": "personal_communication", - "standard_citation": "raw:private-message", "title": "Personal communication with Doctor X" } ``` -All references provided in `manual-references.json` must provide values for the `type` and `standard_citation` fields. +All manual references must provide values for the "id" and "type" fields. For guidance on what CSL JSON should be like for different document types, refer to [these examples](https://github.com/aurimasv/zotero-import-export-formats/blob/a51c342e66bebd97b73a7230047b801c8f7bb690/CSL%20JSON.json). +Manubot offers some support for other bibliographic metadata formats besides CSL JSON, by delegating conversion to the `pandoc-citeproc --bib2json` [utility](https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md#convert-mode). +Formats are inferred from filename extensions. +So, for example, to provide metadata for `@url:https://github.com/manubot/rootstock` in BibTeX format, create the file `content/manual-references.bib` and create an item whose definition starts with the excerpt: + +```latex +@misc{url:https://github.com/manubot/rootstock, +``` + +Processed reference metadata in CSL JSON format, either generated by Manubot or specified via manual references, is exported to `references.json`. +This file is located in the `output` branch on GitHub or in the `output` subdirectory of local builds. +The "id" field in `references.json` and in the final manuscript uses a shortened ID that is derived from the original ID. +For debugging information, see `citations.tsv`, which shows citation identifiers as they progress through the processing pipeline. +In order to freeze all references, rather than have Manubot regenerate them during future builds, copy the `references.json` output file to `content` with a filename matching the `manual-references*.json` pattern. +One tip is to embed the date `references.json` was generated into the frozen manual reference filename, like `content/manual-references-2019-06-21.json`. + ## Manuscript metadata [`content/metadata.yaml`](content/metadata.yaml) contains manuscript metadata that gets passed through to Pandoc, via a [`yaml_metadata_block`](https://pandoc.org/MANUAL.html#extension-yaml_metadata_block). diff --git a/build/environment.yml b/build/environment.yml index 553a5dbb..fa807dba 100644 --- a/build/environment.yml +++ b/build/environment.yml @@ -2,32 +2,33 @@ name: manubot channels: - conda-forge dependencies: - - conda-forge::cairo=1.14.12 - - conda-forge::cairocffi=0.8.0 - - conda-forge::cffi=1.11.5 - - conda-forge::ghp-import=0.5.5 - - conda-forge::jinja2=2.10 - - conda-forge::jsonschema=2.6.0 - - conda-forge::pandas=0.24.0 - - conda-forge::pandoc=2.6 - - conda-forge::pango=1.40.14 - - conda-forge::psutil=5.5.1 - - conda-forge::python=3.6.7 - - conda-forge::pyyaml=3.13 - - conda-forge::requests=2.21.0 - - conda-forge::watchdog=0.8.3 + - cairo=1.14.12 + - cairocffi=0.8.0 + - cffi=1.12.3 + - ghp-import=0.5.5 + - jinja2=2.10 + - jsonschema=3.0.1 + - pandas=0.24.2 + - pandoc=2.7.2 + - pango=1.40.14 + - pip=19.1 + - psutil=5.6.2 + - python=3.6.7 + - pyyaml=5.1 + - requests=2.22.0 + - watchdog=0.8.3 - pip: - errorhandler==2.0.1 - - git+https://github.com/manubot/manubot@4505db3fd8a9dc1ba26c36f3fea9accbf02d47d8 + - git+https://github.com/manubot/manubot@2a99f4af4a352d2e082988d364e01e2e2809a87b - jsonref==0.2 - opentimestamps-client==0.6.0 - opentimestamps==0.3.0 - - pandoc-eqnos==1.3.0 - - pandoc-fignos==1.3.0 - - pandoc-tablenos==1.3.0 - - pandoc-xnos==1.1.1 + - pandoc-eqnos==1.4.3 + - pandoc-fignos==1.4.2 + - pandoc-tablenos==1.4.2 + - pandoc-xnos==1.2.0 - pybase62==0.4.0 - pysha3==1.0.2 - python-bitcoinlib==0.9.0 - - requests-cache==0.4.13 + - requests-cache==0.5.0 - weasyprint==0.42.3 diff --git a/content/manual-references.json b/content/manual-references.json index dda7f5ba..43c75363 100644 --- a/content/manual-references.json +++ b/content/manual-references.json @@ -1,7 +1,7 @@ [ { + "id": "url:https://github.com/manubot/rootstock", "type": "webpage", - "standard_citation": "url:https://github.com/manubot/rootstock", "URL": "https://github.com/manubot/rootstock", "title": "manubot/rootstock GitHub repository", "container-title": "GitHub", From 9f16be0807be7299424b5b9d78b609346957d933 Mon Sep 17 00:00:00 2001 From: Michael Hoffman Date: Fri, 7 Jun 2019 11:53:21 -0400 Subject: [PATCH 02/10] build.sh: always set DOCKER_EXISTS with a zero exit status Merges https://github.com/manubot/rootstock/pull/230 Closes https://github.com/manubot/rootstock/issues/229 Previously, `command -v docker` returned a non-zero exit status when docker did not exist. Because build.sh uses `set -o errexit`, this caused the build script to exit. By appending `|| true`, the exit status will always be zero. Use recommended $() instead of backticks for command substitution. https://stackoverflow.com/a/24592916/4651668 --- build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.sh b/build/build.sh index 4f0ff06f..cddda5ea 100644 --- a/build/build.sh +++ b/build/build.sh @@ -51,7 +51,7 @@ pandoc --verbose \ $INPUT_PATH # Return null if docker command is missing, otherwise return path to docker -DOCKER_EXISTS=`command -v docker` +DOCKER_EXISTS="$(command -v docker || true)" # Create PDF output (unless BUILD_PDF environment variable equals "false") if [ "$BUILD_PDF" != "false" ] && [ -z "$DOCKER_EXISTS" ]; then From aa09b789f53d0deea89c6d6ca563061c57bfed5b Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Sat, 8 Jun 2019 05:47:22 -0500 Subject: [PATCH 03/10] Add manubot version details to build readme (#232) --- build/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/README.md b/build/README.md index 3be7e944..f4147987 100644 --- a/build/README.md +++ b/build/README.md @@ -30,3 +30,6 @@ conda env create --file environment.yml Activate with `conda activate manubot` (assumes `conda` version of [at least](https://github.com/conda/conda/blob/9d759d8edeb86569c25f6eb82053f09581013a2a/CHANGELOG.md#440-2017-12-20) 4.4). The environment should successfully install on both Linux and macOS. However, it will fail on Windows due to the [`pango`](https://anaconda.org/conda-forge/pango) dependency. + +Because the build process is dependent on having the appropriate version of the `manubot` Python package, it is necessary to use the version specified in `environment.yml`. +The latest `manubot` release on PyPI may not be compatible with the latest version of this rootstock repository. From 2fd84f1484858245acbdc8acf37167a378aeeca4 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 25 Jun 2019 19:44:41 +0100 Subject: [PATCH 04/10] Mention PLOS Comp Bio software article on Manubot Merges https://github.com/manubot/rootstock/pull/234 Also update URLs in 02.delete-me.md --- USAGE.md | 7 +++++-- content/02.delete-me.md | 10 +++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/USAGE.md b/USAGE.md index 0d30f9d9..3b627eb5 100644 --- a/USAGE.md +++ b/USAGE.md @@ -214,11 +214,14 @@ If you are using the Manubot, feel free to submit a pull request to add your man ## Citing Manubot -To cite the Manubot project or for more information on its design and history, see `@url:https://greenelab.github.io/meta-review/`: +To cite the Manubot project or for more information on its design and history, see `@doi:10.1371/journal.pcbi.1007128`: > **Open collaborative writing with Manubot**
Daniel S. Himmelstein, Vincent Rubinetti, David R. Slochower, Dongbo Hu, Venkat S. Malladi, Casey S. Greene, Anthony Gitter
-_Manubot Preprint_ (2019) +*PLOS Computational Biology* (2019-06-24)
+DOI: [10.1371/journal.pcbi.1007128](https://doi.org/10.1371/journal.pcbi.1007128) ยท PMID: [31233491](https://www.ncbi.nlm.nih.gov/pubmed/31233491) + +The Manubot version of this manuscript is available at . ## Acknowledgments diff --git a/content/02.delete-me.md b/content/02.delete-me.md index bf51fa97..4afa572e 100644 --- a/content/02.delete-me.md +++ b/content/02.delete-me.md @@ -102,12 +102,12 @@ Citation by Wikidata ID [@wikidata:Q56458321]. Citation by ISBN [@isbn:9780262517638]. -Citation by URL [@url:https://github.com/manubot/rootstock]. +Citation by URL [@url:https://greenelab.github.io/meta-review/]. Citation by tag [@tag:deep-review]. Multiple citations can be put inside the same set of brackets [@doi:10.7554/eLife.32822; @tag:deep-review; @isbn:9780262517638]. -Manubot plugins provide easier, more convenient visualization of and navigation between citations [@url:https://greenelab.github.io/meta-review; @pmid:30718888; @pmcid:PMC6103790; @tag:deep-review]. +Manubot plugins provide easier, more convenient visualization of and navigation between citations [@doi:10.1371/journal.pcbi.1007128; @pmid:30718888; @pmcid:PMC6103790; @tag:deep-review]. ## Referencing figures, tables, equations @@ -163,17 +163,17 @@ Exporting PDF manuscript ![ **A square image at actual size and with a bottom caption.** Loaded from the latest version of image on GitHub. -](https://raw.githubusercontent.com/greenelab/manubot-resources/master/test/square.png "Square image"){#fig:square-image} +](https://github.com/manubot/resources/raw/15493970f8882fce22bef829619d3fb37a613ba5/test/square.png "Square image"){#fig:square-image} ![ **An image too wide to fit within page at full size.** Loaded from a specific (hashed) version of the image on GitHub. -](https://raw.githubusercontent.com/manubot/resources/bfd6afcd9f47d7da34362e62a005d86e85aef25a/test/wide.png "Wide image"){#fig:wide-image} +](https://github.com/manubot/resources/raw/15493970f8882fce22bef829619d3fb37a613ba5/test/wide.png "Wide image"){#fig:wide-image} ![ **A tall image with a specified height.** Loaded from a specific (hashed) version of the image on GitHub. -](https://raw.githubusercontent.com/manubot/resources/bfd6afcd9f47d7da34362e62a005d86e85aef25a/test/tall.png "Tall image"){#fig:tall-image height=3in} +](https://github.com/manubot/resources/raw/15493970f8882fce22bef829619d3fb37a613ba5/test/tall.png "Tall image"){#fig:tall-image height=3in} ![ **A vector `.svg` image loaded from GitHub.** From ddb0288895cd5bc5dab117fb366c52216a717d0e Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Thu, 27 Jun 2019 22:17:00 +0100 Subject: [PATCH 05/10] Harden shell scripts with improved robustness & verbosity (#233) Merges https://github.com/manubot/rootstock/pull/233 Hat tip to Michael Hoffman (https://hoffmanlab.org/) for feedback. * Apply shell best practices References: https://kvz.io/blog/2013/11/21/bash-best-practices/ https://www.davidpashley.com/articles/writing-robust-shell-scripts/ https://github.com/manubot/rootstock/pull/233#issuecomment-500898800 * Specify bash (not just sh). Other shellcheck suggestions Properly use command substitution and parameter expansion in the appropriate places. * echo diagnostic messages to stderr Previously echo defaulted to stdout https://stackoverflow.com/a/41766832/4651668 Placement of stderr redirect to: "echo >&2" * Update bash options: xtrace specified by calling command * Quote variable names * deploy.sh: use Travis env vars for CI build URLs These environment variables were added to Travis in late 2018 https://github.com/travis-ci/travis-ci/issues/8935#issuecomment-425185232 --- .travis.yml | 4 ++-- README.md | 4 ++-- build/README.md | 4 ++-- build/autobuild.sh | 9 ++++++--- build/build.sh | 46 ++++++++++++++++++++++++++-------------------- ci/deploy.sh | 39 +++++++++++++++++++++++---------------- 6 files changed, 61 insertions(+), 45 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9df3cd74..18c6732d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,11 @@ install: - conda list --name manubot - conda activate manubot script: - - sh build/build.sh + - bash build/build.sh cache: directories: - ci/cache after_success: - test $TRAVIS_BRANCH = "master" && test $TRAVIS_EVENT_TYPE = "push" && - sh ci/deploy.sh + bash -o xtrace ci/deploy.sh diff --git a/README.md b/README.md index f75a581e..c0e952b8 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Then, you can build the manuscript on POSIX systems by running the following com conda activate manubot # Build the manuscript, saving outputs to the output directory -sh build/build.sh +bash build/build.sh # At this point, the HTML & PDF outputs will have been created. The remaining # commands are for serving the webpage to view the HTML manuscript locally. @@ -65,7 +65,7 @@ Sometimes it's helpful to monitor the content directory and automatically rebuil The following command, while running, will trigger both the `build.sh` and `webpage.py` scripts upon content changes: ```sh -sh build/autobuild.sh +bash build/autobuild.sh ``` ### Continuous Integration diff --git a/build/README.md b/build/README.md index f4147987..7749a6ac 100644 --- a/build/README.md +++ b/build/README.md @@ -4,10 +4,10 @@ `sh build/build.sh` should be executed from the root directory of the repository. By default, `build.sh` creates HTML and PDF outputs. However, setting the `BUILD_PDF` environment variable to `false` will suppress PDF output. -For example, run local builds using the command `BUILD_PDF=false sh build/build.sh`. +For example, run local builds using the command `BUILD_PDF=false bash build/build.sh`. To build a DOCX file of the manuscript, set the `BUILD_DOCX` environment variable to `true`. -For example, use the command `BUILD_DOCX=true sh build/build.sh`. +For example, use the command `BUILD_DOCX=true bash build/build.sh`. To export DOCX for all Travis builds, set a [Travis environment variable](https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings). Currently, equation numbers via `pandoc-eqnos` are not supported for DOCX output. There is varying support for embedding images in DOCX output. diff --git a/build/autobuild.sh b/build/autobuild.sh index d6a53130..e82dbfb6 100644 --- a/build/autobuild.sh +++ b/build/autobuild.sh @@ -1,6 +1,9 @@ -# Automatically rebuild mansucript outputs and the webpage when content changes -# Depends on watchdog https://github.com/gorakhargosh/watchdog +#!/usr/bin/env bash + +## autobuild.sh: automatically rebuild mansucript outputs and the webpage when content changes +## Depends on watchdog https://github.com/gorakhargosh/watchdog + watchmedo shell-command \ --wait \ - --command='sh build/build.sh && python build/webpage.py' \ + --command='bash build/build.sh && python build/webpage.py' \ content diff --git a/build/build.sh b/build/build.sh index cddda5ea..eec2bd87 100644 --- a/build/build.sh +++ b/build/build.sh @@ -1,4 +1,10 @@ -set -o errexit +#!/usr/bin/env bash + +## build.sh: compile manuscript outputs from content using Manubot and Pandoc + +set -o errexit \ + -o nounset \ + -o pipefail # Set timezone used by Python for setting the manuscript's date export TZ=Etc/UTC @@ -6,7 +12,7 @@ export TZ=Etc/UTC export LC_ALL=en_US.UTF-8 # Generate reference information -echo "Retrieving and processing reference metadata" +echo >&2 "Retrieving and processing reference metadata" manubot process \ --content-directory=content \ --output-directory=output \ @@ -23,15 +29,15 @@ mkdir -p output # Create HTML output # http://pandoc.org/MANUAL.html -echo "Exporting HTML manuscript" +echo >&2 "Exporting HTML manuscript" pandoc --verbose \ --from=markdown \ --to=html5 \ --filter=pandoc-fignos \ --filter=pandoc-eqnos \ --filter=pandoc-tablenos \ - --bibliography=$BIBLIOGRAPHY_PATH \ - --csl=$CSL_PATH \ + --bibliography="$BIBLIOGRAPHY_PATH" \ + --csl="$CSL_PATH" \ --metadata link-citations=true \ --include-after-body=build/themes/default.html \ --include-after-body=build/plugins/table-scroll.html \ @@ -48,14 +54,14 @@ pandoc --verbose \ --include-after-body=build/plugins/hypothesis.html \ --include-after-body=build/plugins/analytics.html \ --output=output/manuscript.html \ - $INPUT_PATH + "$INPUT_PATH" # Return null if docker command is missing, otherwise return path to docker DOCKER_EXISTS="$(command -v docker || true)" # Create PDF output (unless BUILD_PDF environment variable equals "false") -if [ "$BUILD_PDF" != "false" ] && [ -z "$DOCKER_EXISTS" ]; then - echo "Exporting PDF manuscript using WeasyPrint" +if [ "${BUILD_PDF:-}" != "false" ] && [ -z "$DOCKER_EXISTS" ]; then + echo >&2 "Exporting PDF manuscript using WeasyPrint" if [ -L images ]; then rm images; fi # if images is a symlink, remove it ln -s content/images pandoc \ @@ -66,25 +72,25 @@ if [ "$BUILD_PDF" != "false" ] && [ -z "$DOCKER_EXISTS" ]; then --filter=pandoc-fignos \ --filter=pandoc-eqnos \ --filter=pandoc-tablenos \ - --bibliography=$BIBLIOGRAPHY_PATH \ - --csl=$CSL_PATH \ + --bibliography="$BIBLIOGRAPHY_PATH" \ + --csl="$CSL_PATH" \ --metadata link-citations=true \ --webtex=https://latex.codecogs.com/svg.latex? \ --include-after-body=build/themes/default.html \ --output=output/manuscript.pdf \ - $INPUT_PATH + "$INPUT_PATH" rm images fi # Create PDF output (unless BUILD_PDF environment variable equals "false") -if [ "$BUILD_PDF" != "false" ] && [ -n "$DOCKER_EXISTS" ]; then - echo "Exporting PDF manuscript using Docker + Athena" +if [ "${BUILD_PDF:-}" != "false" ] && [ -n "$DOCKER_EXISTS" ]; then + echo >&2 "Exporting PDF manuscript using Docker + Athena" if [ -d output/images ]; then rm -rf output/images; fi # if images is a directory, remove it cp -R -L content/images output/ docker run \ --rm \ --shm-size=1g \ - --volume=`pwd`/output:/converted/ \ + --volume="$(pwd)/output:/converted/" \ --security-opt=seccomp:unconfined \ arachnysdocker/athenapdf:2.16.0 \ athenapdf \ @@ -94,21 +100,21 @@ if [ "$BUILD_PDF" != "false" ] && [ -n "$DOCKER_EXISTS" ]; then fi # Create DOCX output (if BUILD_DOCX environment variable equals "true") -if [ "$BUILD_DOCX" = "true" ]; then - echo "Exporting Word Docx manuscript" +if [ "${BUILD_DOCX:-}" = "true" ]; then + echo >&2 "Exporting Word Docx manuscript" pandoc --verbose \ --from=markdown \ --to=docx \ --filter=pandoc-fignos \ --filter=pandoc-eqnos \ --filter=pandoc-tablenos \ - --bibliography=$BIBLIOGRAPHY_PATH \ - --csl=$CSL_PATH \ + --bibliography="$BIBLIOGRAPHY_PATH" \ + --csl="$CSL_PATH" \ --metadata link-citations=true \ --reference-doc=build/themes/default.docx \ --resource-path=.:content \ --output=output/manuscript.docx \ - $INPUT_PATH + "$INPUT_PATH" fi -echo "Build complete" +echo >&2 "Build complete" diff --git a/ci/deploy.sh b/ci/deploy.sh index bbc030ee..5b3bdad2 100644 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -1,18 +1,25 @@ -# Exit on errors -set -o errexit +#!/usr/bin/env bash + +## deploy.sh: run during a Travis CI build to deploy manuscript outputs to the output and gh-pages branches on GitHub. + +# Set options for extra caution & debugging +set -o errexit \ + -o nounset \ + -o pipefail # Add commit hash to the README -export OWNER_NAME=`dirname $TRAVIS_REPO_SLUG` -export REPO_NAME=`basename $TRAVIS_REPO_SLUG` +OWNER_NAME="$(dirname "$TRAVIS_REPO_SLUG")" +REPO_NAME="$(basename "$TRAVIS_REPO_SLUG")" +export OWNER_NAME REPO_NAME envsubst < webpage/README.md > webpage/README-complete.md mv webpage/README-complete.md webpage/README.md # Configure git git config --global push.default simple -git config --global user.email `git log --max-count=1 --format='%ae'` -git config --global user.name "`git log --max-count=1 --format='%an'`" -git checkout $TRAVIS_BRANCH -git remote set-url origin git@github.com:$TRAVIS_REPO_SLUG.git +git config --global user.email "$(git log --max-count=1 --format='%ae')" +git config --global user.name "$(git log --max-count=1 --format='%an')" +git checkout "$TRAVIS_BRANCH" +git remote set-url origin "git@github.com:$TRAVIS_REPO_SLUG.git" # Decrypt and add SSH key openssl aes-256-cbc \ @@ -20,7 +27,7 @@ openssl aes-256-cbc \ -iv $encrypted_9befd6eddffe_iv \ -in ci/deploy.key.enc \ -out ci/deploy.key -d -eval `ssh-agent -s` +eval "$(ssh-agent -s)" chmod 600 ci/deploy.key ssh-add ci/deploy.key @@ -33,24 +40,24 @@ git fetch origin gh-pages:gh-pages output:output python build/webpage.py \ --no-ots-cache \ --checkout=gh-pages \ - --version=$TRAVIS_COMMIT + --version="$TRAVIS_COMMIT" # Generate OpenTimestamps -ots stamp webpage/v/$TRAVIS_COMMIT/index.html -if [ "$BUILD_PDF" != "false" ]; then - ots stamp webpage/v/$TRAVIS_COMMIT/manuscript.pdf +ots stamp "webpage/v/$TRAVIS_COMMIT/index.html" +if [ "${BUILD_PDF:-}" != "false" ]; then + ots stamp "webpage/v/$TRAVIS_COMMIT/manuscript.pdf" fi # Commit message MESSAGE="\ -`git log --max-count=1 --format='%s'` +$(git log --max-count=1 --format='%s') This build is based on https://github.com/$TRAVIS_REPO_SLUG/commit/$TRAVIS_COMMIT. This commit was created by the following Travis CI build and job: -https://travis-ci.com/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID -https://travis-ci.com/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID +$TRAVIS_BUILD_WEB_URL +$TRAVIS_JOB_WEB_URL [ci skip] From ed4158c9f2a1b300f82d058be9aefe1f5eb72763 Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Fri, 28 Jun 2019 16:50:04 -0500 Subject: [PATCH 06/10] Improve documentation about build process (#238) * Improve documentation about build process * Additional rephrasing * Updates per dhimmel review --- README.md | 12 ++++++++---- build/README.md | 15 ++++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c0e952b8..18208fb7 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The directories are as follows: + [`content`](content) contains the manuscript source, which includes markdown files as well as inputs for citations and references. See [`USAGE.md`](USAGE.md) for more information. -+ [`output`](output) contains the outputs (generated files) from the manubot including the resulting manuscripts. ++ [`output`](output) contains the outputs (generated files) from Manubot including the resulting manuscripts. You should not edit these files manually, because they will get overwritten. + [`webpage`](webpage) is a directory meant to be rendered as a static webpage for viewing the HTML manuscript. + [`build`](build) contains commands and tools for building the manuscript. @@ -40,8 +40,9 @@ The directories are as follows: ### Local execution -To run the Manubot locally, install the [conda](https://conda.io) environment as described in [`build`](build). -Then, you can build the manuscript on POSIX systems by running the following commands. +The easiest way to run Manubot is to use [continuous integration](#continuous-integration) to rebuild the manuscript when the content changes. +If you want to build a Manubot manuscript locally, install the [conda](https://conda.io) environment as described in [`build`](build). +Then, you can build the manuscript on POSIX systems by running the following commands from this root directory. ```sh # Activate the manubot conda environment (assumes conda version >= 4.4) @@ -52,11 +53,14 @@ bash build/build.sh # At this point, the HTML & PDF outputs will have been created. The remaining # commands are for serving the webpage to view the HTML manuscript locally. +# This is required to view local images in the HTML output. # Configure the webpage directory python build/webpage.py -# View the manuscript locally at http://localhost:8000/ +# You can now open the manuscript webpage/index.html in a web browser. +# Alternatively, open a local webserver at http://localhost:8000/ with the +# following commands. cd webpage python -m http.server ``` diff --git a/build/README.md b/build/README.md index 7749a6ac..1a886f1d 100644 --- a/build/README.md +++ b/build/README.md @@ -17,7 +17,7 @@ Please reference [Pull Request #40](https://github.com/manubot/rootstock/pull/40 Note: currently, **Windows is not supported**. -Install or update the [conda](https://conda.io) environment specified in [`environment.yml`](environment.yml) by running: +Install or update the [conda](https://conda.io) environment specified in [`environment.yml`](environment.yml) by running the following commands from this directory: ```sh # If the manubot environment already exists, remove it first @@ -33,3 +33,16 @@ However, it will fail on Windows due to the [`pango`](https://anaconda.org/conda Because the build process is dependent on having the appropriate version of the `manubot` Python package, it is necessary to use the version specified in `environment.yml`. The latest `manubot` release on PyPI may not be compatible with the latest version of this rootstock repository. + +## Building PDFs + +If Docker is available, `build.sh` uses the [Athena](https://www.athenapdf.com/) [Docker image](https://hub.docker.com/r/arachnysdocker/athenapdf) to build the PDF. +Otherwise, `build.sh` uses [WeasyPrint](https://weasyprint.org/) to build the PDF. +It is common for WeasyPrint to generate many warnings and errors that can be safely ignored. +Examples are shown below: +``` +WARNING: Ignored `pointer-events: none` at 3:16, unknown property. +WARNING: Ignored `font-display:auto` at 1:53114, descriptor not supported. +ERROR: Failed to load font at "https://use.fontawesome.com/releases/v5.7.2/webfonts/fa-brands-400.eot#iefix" +WARNING: Expected a media type, got only/**/screen +``` From 1a4143593c5018887d9cf5a7e482fb8121908af5 Mon Sep 17 00:00:00 2001 From: Anthony Gitter Date: Mon, 8 Jul 2019 15:32:27 -0500 Subject: [PATCH 07/10] Add customization instructions and catalog to USAGE (#245) * Link to catalog * Add formatting and CSL instructions * Remove examples and add try-manubot --- USAGE.md | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/USAGE.md b/USAGE.md index 3b627eb5..900a94d7 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,6 +1,8 @@ # Manubot usage guidelines This repository uses [Manubot](https://manubot.org) to automatically produce a manuscript from the source in the [`content`](content) directory. +Check out the [Manubot catalog](https://manubot.org/catalog/) for examples of what is possible when writing with Manubot. +Try editing the [demo manuscript](https://github.com/manubot/try-manubot) to quickly test Manubot formatting and citations. ## Manubot markdown @@ -186,32 +188,20 @@ funders: GBMF4552 # optional Note that `affiliations` should be a list to allow for multiple affiliations per author. +## Custom formatting + +Modifying the manuscript formatting requires modifying the CSS in the file [`build/themes/default.html`](build/themes/default.html). +Common formatting changes, such as [font size](https://github.com/manubot/rootstock/issues/239) and [double spacing](https://github.com/manubot/rootstock/issues/244), can be found by searching the [Rootstock issues](https://github.com/manubot/rootstock/issues). +Open a [new issue](https://github.com/manubot/rootstock/issues/new) if you have a new formatting question. + +Changing the citation style or which interactive HTML plugins are loaded requires editing the build script [`build/build.sh`](build/build.sh). +The citation style is determined by the Citation Style Language file specified by `CSL_PATH`. +It can be changed to use other existing styles as [described here](https://github.com/manubot/rootstock/issues/242#issuecomment-507688339). + ## Manubot feedback If you experience any issues with the Manubot or would like to contribute to its source code, please visit [`manubot/manubot`](https://github.com/manubot/manubot) or [`manubot/rootstock`](https://github.com/manubot/rootstock). -## Examples - -For additional examples, check out existing manuscripts that use the Manubot (some of which are still in progress): - -+ Satoshi Nakamoto's Bitcoin Whitepaper ([source](https://github.com/dhimmel/bitcoin-whitepaper/), [manuscript](https://dhimmel.github.io/bitcoin-whitepaper/), [commentary](https://steemit.com/manubot/@dhimmel/how-i-used-the-manubot-to-reproduce-the-bitcoin-whitepaper)) -+ The Sci-Hub Coverage Study ([source](https://github.com/greenelab/scihub-manuscript), [manuscript](https://greenelab.github.io/scihub-manuscript/)) -+ The GimmeMotifs manscript on transcription factor motif analysis ([source](https://github.com/simonvh/gimmemotifs-manuscript), [manuscript](https://simonvh.github.io/gimmemotifs-manuscript/manuscript.pdf)) -+ A Report for the Vagelos Scholars Program by Michael Zietz ([source](https://github.com/zietzm/Vagelos2017), [manuscript](https://zietzm.github.io/Vagelos2017/)) -+ The Deep Review ([source](https://github.com/greenelab/deep-review), [manuscript](https://greenelab.github.io/deep-review/)) -+ Ten Quick Tips for Deep Learning ([source](https://github.com/Benjamin-Lee/deep-rules), [manuscript](https://benjamin-lee.github.io/deep-rules/)) -+ The Meta Review ([source](https://github.com/greenelab/meta-review), [manuscript](https://greenelab.github.io/meta-review/)) -+ A review of Network Methods for Multiomic Data Integration ([source](https://github.com/zietzm/integration-review), [manuscript](https://zietzm.github.io/integration-review/)) -+ The Project Rephetio Manuscript ([source](https://github.com/dhimmel/rephetio-manuscript/), [manuscript](https://dhimmel.github.io/rephetio-manuscript/)) -+ A Literature Review for Project Planning by David Slochower ([source](https://github.com/slochower/synthetic-motor-literature), [manuscript](https://slochower.github.io/synthetic-motor-literature/)) -+ The TFSEE Manuscript by Venkat Malladi et al. ([source](https://github.com/vsmalladi/tfsee-manuscript), [manuscript](https://vsmalladi.github.io/tfsee-manuscript/)) -+ Creating a Global Emissions Timeseries dataset by Robert Gieseke et al. ([source](https://github.com/openclimatedata/global-emissions), [manuscript](https://openclimatedata.github.io/global-emissions/)) -+ The yt 3.0 methods paper ([source](https://github.com/yt-project/yt-3.0-paper), [manuscript](https://yt-project.github.io/yt-3.0-paper/)) -+ The TPOT-DS Manuscript (includes Hypothesis annotations, [source](https://github.com/trang1618/tpot-ds-ms), [manuscript](https://trang1618.github.io/tpot-ds-ms/)) -+ The Manubot 2018 Development Proposal ([source](https://github.com/greenelab/manufund-2018), [manuscript](https://greenelab.github.io/manufund-2018/)) - -If you are using the Manubot, feel free to submit a pull request to add your manuscript to the list above. - ## Citing Manubot To cite the Manubot project or for more information on its design and history, see `@doi:10.1371/journal.pcbi.1007128`: From 8bbd978e8a7f3671f06f655b39f0fc2af5c7eba7 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 9 Jul 2019 12:47:54 -0400 Subject: [PATCH 08/10] Travis CI: replace after_success stage with deploy Merges https://github.com/manubot/rootstock/pull/250 Failures in after_success did not cause the entire build to fail. Now if deployment fails, the build should fail. References: https://docs.travis-ci.com/user/deployment/#conditional-releases-with-on https://docs.travis-ci.com/user/deployment/script/ https://github.com/travis-ci/travis-ci/issues/758 --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 18c6732d..ab7f1609 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,10 @@ script: cache: directories: - ci/cache -after_success: - - test $TRAVIS_BRANCH = "master" && - test $TRAVIS_EVENT_TYPE = "push" && - bash -o xtrace ci/deploy.sh +deploy: + provider: script + script: bash -o xtrace ci/deploy.sh + skip_cleanup: true + on: + branch: master + condition: $TRAVIS_EVENT_TYPE = "push" From 2a5e425650947020d2d4b49447e3f3d9718dee40 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 9 Jul 2019 13:13:52 -0400 Subject: [PATCH 09/10] Travis CI: use settings env var to store SSH private key Merges https://github.com/manubot/rootstock/pull/243 Closes https://github.com/manubot/rootstock/issues/91 Closes https://github.com/manubot/rootstock/issues/246 Switch to a Travis CI settings environment variable to store the SSH private key for GitHub deployment. Setup no longer requires the travis ruby gem, whose `travis encrypt` subcommand was incompatible with Windows. Setup is now supported on Windows systems with a Unix/Linux/POSIX-compliant shell with the proper dependencies, such as ssh-keygen & openssl. The SSH private key is stored in MANUBOT_SSH_PRIVATE_KEY, after being base64 encoded to remove newline characters. Remove files for the legacy encrypted file method. Deprecate the encrypted file decryption in deploy.sh. In the future, we may only support private key specification via MANUBOT_SSH_PRIVATE_KEY. --- SETUP.md | 91 ++++++++++++++++++++++------------------------ ci/.gitignore | 6 +-- ci/README.md | 33 +++-------------- ci/deploy.key.enc | Bin 3248 -> 0 bytes ci/deploy.key.pub | 1 - ci/deploy.sh | 11 +++++- 6 files changed, 62 insertions(+), 80 deletions(-) delete mode 100644 ci/deploy.key.enc delete mode 100644 ci/deploy.key.pub diff --git a/SETUP.md b/SETUP.md index 5d366f2d..70c1c826 100644 --- a/SETUP.md +++ b/SETUP.md @@ -2,8 +2,9 @@ The process to create a new Manubot manuscript is a bit challenging, because it requires a few steps that are difficult to automate. However, you will only have to perform these steps once for each manuscript. -These steps should be performed in a terminal, starting in the directory where you want the manuscript folder be created. -Setup is supported on Linux and macOS, but [**not on Windows**](https://github.com/manubot/rootstock/issues/91). +These steps should be performed in a command-line shell (terminal), starting in the directory where you want the manuscript folder be created. +Setup is supported on Linux, macOS, and Windows. +Windows setup requires [Git Bash](https://gitforwindows.org/) or [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/faq). ## Configuration @@ -48,7 +49,7 @@ git remote set-url origin https://github.com/$OWNER/$REPO.git git remote set-url origin git@github.com:$OWNER/$REPO.git ``` -Next, you must manually create an empty GitHub repository at https://github.com/new. +Next, you must manually create an empty GitHub repository at . Make sure to use the same "Owner" and "Repository name" specified above. Do not initialize the repository, other than optionally adding a Description. Next, push your cloned manuscript: @@ -61,7 +62,7 @@ git push --set-upstream origin output ## Continuous integration -Now you must manually enable Travis CI for the new repository at https://travis-ci.com. +Now you must manually enable Travis CI for the new repository at . Click the `+` sign to "Add New Repository". If you don't see your repository listed, push the "Sync account" button. Finally, flick the repository's switch to enable CI. @@ -71,69 +72,66 @@ Finally, flick the repository's switch to enable CI. Generate a deploy key so Travis CI can write to the repository. ```sh +# IMPORTANT: change working directory to ci cd ci + +# Generate deploy.key.pub (public) and deploy.key (private) ssh-keygen \ - -t rsa \ - -b 4096 \ - -C "travis@travis-ci.com" \ - -N "" \ + -t rsa -b 4096 -N "" \ + -C "deploy@travis-ci.com" \ -f deploy.key -# For convenience, print the URL to add the public key to GitHub -echo https://github.com/$OWNER/$REPO/settings/keys +# Encode deploy.key to remove newlines, writing encoded text to deploy.key.txt. +# This is required for entry into the Travis settings. +openssl base64 -A -in deploy.key > deploy.key.txt ``` -Manually add the text of `deploy.key.pub` (with write access) to GitHub under the repository's deploy key settings (the URL echoed above). -Give the key a descriptive title, such as "Travis CI Manubot". - -For the next step, you need the [Travis command line client](https://github.com/travis-ci/travis.rb) installed. -This program is a Ruby gem: -install it with `gem install travis` (not `apt install travis`, which is a different program). -After the install, you will need to provide your credentials to login to travis with `travis login`. +#### Add the public key to GitHub ```sh -travis encrypt-file \ - --com \ - --repo=$OWNER/$REPO \ - --force \ - deploy.key > travis-encrypt-file.log -``` +# Print the URL for adding the public key to GitHub +echo "https://github.com/$OWNER/$REPO/settings/keys/new" -`ci/travis-encrypt-file.log` will contain a line such as: - -``` -openssl aes-256-cbc -K $encrypted_8cc93e35fb85_key -iv $encrypted_8cc93e35fb85_iv -in test.key.enc -out test.key -d +# Print the public key for copy-pasting to GitHub +cat deploy.key.pub ``` -`ci/deploy.sh` must be updated with the random string from this line (i.e. `8cc93e35fb85`). -The following command automates this substitution. +Go to the GitHub settings URL echoed above in a browser, and click "Add deploy key". +For "Title", add a description like "Manubot Travis Deploy Key". +Copy-paste the contents of the `deploy.key.pub` text file (printed above by `cat`) into the "Key" text box. +Check the "Allow write access" box below. +Finally, click "Add key". + +#### Add the private key to Travis CI ```sh -# Edit ci/deploy.sh with travis secure env variables generated by travis encrypt-file -TRAVIS_ENCRYPT_ID=`python -c "import re; \ - text = open('travis-encrypt-file.log').read(); \ - print(re.search('encrypted_([a-f0-9]+)_key', text).group(1))"` -sed "s/9befd6eddffe/$TRAVIS_ENCRYPT_ID/g" deploy.sh > tmp && mv -f tmp deploy.sh +# Print the URL for adding the private key to Travis CI +echo "https://travis-ci.com/$OWNER/$REPO/settings" + +# Print the encoded private key for copy-pasting to Travis CI +cat deploy.key.txt && echo ``` -Next, limit [concurrent](https://blog.travis-ci.com/2014-07-18-per-repository-concurrency-setting/) Travis CI jobs to ensure previous builds deploy before subsequent ones begin: +Next, go to the Travis CI repository settings page (URL echoed above). +Add a new record in the "Environment Variables" section. +For "NAME", enter `MANUBOT_SSH_PRIVATE_KEY`. +Next, copy-paste the content of `deploy.key.txt` into "VALUE" +(printed above by `cat`, including any trailing `=` characters if present). +Make sure "Display value in build logs" remains toggled off (the default). -```sh -travis settings \ - --com \ - --repo=$OWNER/$REPO \ - maximum_number_of_builds --set 1 -``` +While in the Travis CI settings, activate the [limit concurrent jobs](https://blog.travis-ci.com/2014-07-18-per-repository-concurrency-setting/) toggle and enter `1` in the value field. +This ensures previous Manubot builds deploy before subsequent ones begin. + +### CI clean up The continuous integration configuration is now complete. Clean up: ```sh # Optionally remove untracked files -rm deploy.key -rm travis-encrypt-file.log +rm deploy.key* -# CRITICAL: navigate back to the repository's root directory +# IMPORTANT: return to the repository's root directory cd .. ``` @@ -155,9 +153,6 @@ git rm content/02.delete-me.md Run `git status` or `git diff --color-words` to check that the following files have unstaged changes: + `README.md` -+ `ci/deploy.key.enc` -+ `ci/deploy.key.pub` -+ `ci/deploy.sh` If the changes look okay, commit and push: @@ -181,7 +176,7 @@ First, checkout a new branch to use as the pull request head branch: ```sh # This command names the branch using the current date, i.e. rootstock-2018-11-16 -git checkout -b rootstock-`date '+%Y-%m-%d'` +git checkout -b rootstock-$(date '+%Y-%m-%d') ``` Second, pull the new commits from rootstock, but do not automerge: diff --git a/ci/.gitignore b/ci/.gitignore index 5923dee3..f50cd000 100644 --- a/ci/.gitignore +++ b/ci/.gitignore @@ -1,5 +1,5 @@ -# SSH private key -deploy.key +# SSH public and private keys +deploy.key* -# Output from travis encrypt-file +# Output from travis encrypt-file (legacy) travis-encrypt-file.log diff --git a/ci/README.md b/ci/README.md index abfd2edc..4622c9f9 100644 --- a/ci/README.md +++ b/ci/README.md @@ -1,29 +1,8 @@ -# Continuous integration / analysis directory +# Continuous integration tools -[![Build Status](https://travis-ci.com/manubot/rootstock.svg?branch=master)](https://travis-ci.com/manubot/rootstock) +This directory contains tools and files for continuous integration (CI). +Specifically, [`deploy.sh`](deploy.sh) runs on successful `master` branch builds that are not pull requests. +The contents of `../webpage` are committed to the `gh-pages` branch. +The contents of `../output` are committed to the `output` branch. -This repository uses [continuous analysis](https://doi.org/10.1101/056473 "Reproducible Computational Workflows with Continuous Analysis") to create the manuscript and commit it back to GitHub. -[`deploy.sh`](deploy.sh) runs on successful `master` branch builds that are not pull requests. -The contents of `/output` are committed to the `gh-pages` branch. -The contents of `/references/generated` are committed to the `references` branch. - -## Generating the GitHub deploy key - -To generate and configure the GitHub SSH deploy key, run the following commands from this directory. - -```sh -# Generate a new SSH key -ssh-keygen \ - -t rsa \ - -b 4096 \ - -C "travis@travis-ci.com" \ - -N "" \ - -f deploy.key -# Add deploy.key.pub to GitHub under the repository's settings -# see https://developer.github.com/guides/managing-deploy-keys/#deploy-keys - -# Encrypt and upload key to Travis CI. -# See https://docs.travis-ci.com/user/encrypting-files/ -travis encrypt-file deploy.key -# Modify the returned command to decrypt the key in ci/deploy.sh -``` +For more information on the CI implementation, see the [Travis CI configuration](../.travis.yml) and the CI setup documentation in `SETUP.md`. diff --git a/ci/deploy.key.enc b/ci/deploy.key.enc deleted file mode 100644 index 6518ffd1257daef81a40e890671bed46d9f2c8eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3248 zcmV;h3{Uf&qPa3&?mNq1IY>b20)tJ>;o?p%EU_<)8J5SmBfi+3b91D3Xya%cn1^M( zakF~JinPeESP$Zw}|0AQG#NKS$5yG4m%hfkfw1444 zimvot`3(cv9Oj`2@R?Z1q_$xpeP~iI8n>9dW_4t^Ej~wq7hf$A*b*nl_ux47$MA}j zjrZyR{CJ}E?g5yo!u2EY+*jr&DNO=|A)#Q;wDP2gX}f{ zQV1Ru;V$ZZP(@&aD_UfC)O47X)WOWcx!(!B*hs3qdzJ{|6MdxQ3AfZx-Z!!(U}Kz) zAq&h`wq3bI{7mxxq^|6mF85m1U}TX`<=+U=6k^E2UCpmuSelVDSnud6sWcx^`CWrz zND8sJ%maSeq>-u4K5Yqq{!wX5?qnWM+KqzP26{uxo8IK%-$My8aBa0m`qmku1?2KF4o@tehTVHsy0K$VhT_*7A zzDDIg13jvF$D@HMv;kFlaYp&UE5qN5xSJ!Gn~{rcS)KZPioH6PuKc|Xd@%Fd9ZGo9 zA)%%i6xLr&kt7a;dnaY`A{zOtS(A{dmN~LEriv{xS78KYQR^v8d)vdX?l1kQ{S`>P zRgKf1F9Sj&TM5jt_$a7=aDIyty*o5AcuDZbxi|9({f_X2c3l)nb3 zem;d7Gf{yl^6_rRS&O~h1*m`lx=xc2h(iQV>POSsHayNFXdgIqDP1=Pj@o!Ro%FCf z7_)y;(EjeF(1mUY5=NpA^NjPW@eS+X$`H_-*0Q3+XP26k?3WyW{8FrJK~tK?3$d1d zEm00*(L2??*FEmU=Nm zfh*zLT?`PIJl5K!v!8E7Yuk<;9y=@mZrrnbE%(9pS1N|EZ#t8C3w!lT-|)&Va~wL5 z1Z-Ky8+AdN$1(!a$4+>BzxZ$@zuRJ7(5ZSu5$OoYX+d5~o+)hqGO#<2{V=+#1PK$d;4NN zQ}5bMTlzxC;`!J^Hc5Z5e)xN#ejCpMI^7~VweH<)&6(!g5&MSJ;}O>v`?vr9{twg= zx8K)(L_)P9$@$-u7n7OR)*Ev;=^V6-tK}weHhD99z&$}D5Q$RW~M0*uAjamRpQY8*=hC1gfph?{`^l8_Bu6?rN>`P zG@xv8o@#mWVMRLOF0?d(^{d01Zcd2~QxCI*G~D9Y)Hh|e93$D;=m}}aJy-ypSm6X1 z`0%EN8QFQM@%qfoZRARnJ{pjG$sM0h?T%p?fC>z!4RbOfyiJMyyVU!qCVppo=Dy6# z;KhK8SaYS^=yRSuNha*1n03iDO6)bH@{7Kq^14+HMZk8O&8X~5I^>`G^B_yU~sT2Sgu*()8-TUpagVwr}Gf6SjQUz$9 zrh^5o9tMdkVK0dZPI1g7am|q&7_$vdW6@G(mhNKGPV+6?5Bkd8T!J6S=5be0t`^o1 z;_Wv+IG{elqH}RD^kDalR_cz0mpGe{Ln@g6^97-v z*G=;{a!(Y@a^AAwO6*fxA8hP9zx}mMLbm5nj|x}m4+gpK)i6tAb#(@63k$yWFQb1G zE=>pY(t$|0X(iDv5lTWLC_mm({e_~VF6-(i);eF{D@L0Dgo!MOFR{vMh2lnisR5qQ zRr%a^0!+Qg0LE%N25@XJ5~Nfs^jS8AyE=GuVKNe6y^HzE0H#H_f<%8kH;05`fHcq! zl?5+mkxQjYQ2%06VW4t`edb?%V32?5jkaJ`16pEiMPffF0pz>r2j>(s&0S7PDD1MS z3EV<$;NQ-`C|i9qVQojR7PlUm)TyYuXeU-O=H^+_AoN~%87?SiJe~*scHGlniYF5` z)Ff*AkKk*ZTO%^kGvcDOSWtY*4-gVSwXMTGk~|4L(?&%rk6CRGPu7Z_`&Tx4euA*0 zDqdPG@AOh;QY@7bpkJOZ_OfB7SwzgA(5I8$ol^p=sTWLCEo#0g<1T?g;nVal;5DEl ziBL_@rLlFi-Q$%{N)bV#P-XJ+46#2BXbbsUvysDb$eMIcB1u$43a;Wuajz?pM!<)+ z#Y1fn!bBh{)}3MSqGc!l(x|R6oVg*jyQ|*Jm6suyWU|e}JL@<0=*aY*?Tu23S`k;L zE7kg|f8z6kj#ojpy#6eL^$=n>aoq#Bemw|tE$UPn`0aWwLA~>^>K;`%p+Mtt^&*0N zCJojbFrN7CXKIV{W|>>`z>JmPSCs+tduZr*itrhoV8HVDcHIN%alRvmqaZ9sVJW`A?z0r5~!%FOlJeq z8XfBCBWspt)(kZU-w^Js7H$F@U#p9EfDJ`C($eIGi9F(=e?Na4U7Tiamd6#UYYNtd zyt-5R-XAI;5J!W{=C9snvD76ii0$l35L-|moDIxaMM&xYCPS=_mQ5Fp5CnT_*9BfD z^bBgeo=#R`8(Ubz&yk7Y-|8wTMbm!+J$EdJB&M^IdL;i5bcqRZ!FR=`R7@MJ&-c_) zSE8c7ZX^Y-dT)~%QdLuO`ZX#lJC2xNls#?_A?=zM7f8#Y-QcFVZ`<(L#2eu@!R?7L zg#{DFC~rnd2Ug&V*w~1X@3HPE&A-q|c`9>lkpM1+!cYv29;UyY;WE5cXh6!>wm9P9g_`)% zM1eTKN`nP-`@g5Y-?!VYbt%-0P08mJkqBX^SIz@&oJ8SG$3tQfw~GZxaqX7tIX(az!15T?|W4r_CO$``uQU7YcV`#Hf#C-LlV9 zms_4%T`&XTxzNm0I>s3_ovHpv1Cn7n6?dyp55bK(a76`W zD{;?AFd!yBKC+@VM4v#O4gGaV{yVNwJ%we{Q%6$zEvImsh9M}X@{<;7Ra%38bKN|S z_Z=CFKliWJetO-!3#MqbyF2hTIZcOskbkWU=`x8}7b4@xGZlB`a_7;f*x;Kxpo%Zb zaM87X6*&MSN;5>J>&^R4kTTSG8Dm+85iOL>9?CV``0z%kBG_U^FdwaGr|$`9k-hNa1)7H9VB-9Fb@iQ{PC){jSn1{mojR^X(cW3;>r zr1$Z=R8gzT8*9!1r$QELXIdys5Q8~;t%OjKp5yjKQov$gDBA&MzZZ4jqVFtRf&xX_ i#odRKROUlX><#nq@3CdKM4_rKw$Imtb>MSX2VmB Date: Thu, 1 Aug 2019 11:01:38 -0400 Subject: [PATCH 10/10] Make shell scripts executable Merges https://github.com/manubot/rootstock/pull/258 Closes https://github.com/manubot/rootstock/issues/257 Change corresponds to: chmod a+x **/*.sh --- build/autobuild.sh | 0 build/build.sh | 0 ci/deploy.sh | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 build/autobuild.sh mode change 100644 => 100755 build/build.sh mode change 100644 => 100755 ci/deploy.sh diff --git a/build/autobuild.sh b/build/autobuild.sh old mode 100644 new mode 100755 diff --git a/build/build.sh b/build/build.sh old mode 100644 new mode 100755 diff --git a/ci/deploy.sh b/ci/deploy.sh old mode 100644 new mode 100755