Skip to content

Commit 8eb858a

Browse files
authored
Merge PR #681 to update Manubot
Update the Deep Review with latest Manubot
2 parents d4c3163 + 5bf0b34 commit 8eb858a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1855
-1433
lines changed

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Generated manuscript output files
2-
output/index.html
3-
output/deep-review.pdf
4-
output/*.ots
2+
output/*
3+
!output/README.md
54

6-
# Generated reference files
7-
references/generated/*
8-
!references/generated/README.md
5+
webpage/*.ots
6+
7+
# Manubot cache directory
8+
ci/cache
99

1010
# Python
1111
__pycache__/

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,21 @@ branches:
55
only:
66
- master
77
before_install:
8-
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
8+
- wget https://repo.continuum.io/miniconda/Miniconda3-4.3.21-Linux-x86_64.sh
99
--output-document miniconda.sh
1010
- bash miniconda.sh -b -p $HOME/miniconda
1111
- export PATH="$HOME/miniconda/bin:$PATH"
1212
- hash -r
1313
- conda config --set always_yes yes --set changeps1 no
14-
- conda update --quiet conda
1514
- conda info --all
1615
install:
1716
- conda env create --quiet --file build/environment.yml
18-
- source activate deepreview
17+
- source activate manubot
1918
script:
2019
- sh build/build.sh
2120
cache:
2221
directories:
23-
- references/generated
22+
- ci/cache
2423
after_success:
2524
- test $TRAVIS_BRANCH = "master" &&
2625
test $TRAVIS_PULL_REQUEST = "false" &&

CONTRIBUTING.md

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Contribution guidelines for the deep-review repository
22

3+
Please see [`USAGE.md`](USAGE.md) for information on how to use the Manubot for writing the manuscript.
4+
Below you'll find information on the contribution workflow for the Deep Review.
5+
36
## Issues
47

58
We'll use issues for discussion of papers, section outlines, and other
@@ -32,33 +35,3 @@ Before a repository maintainer merges a pull request, there must be at least
3235
one affirmative review. If there is any unaddressed criticism or disapproval,
3336
a repository maintainer will determine how to proceed and may wait for
3437
additional feedback.
35-
36-
## Markdown
37-
38-
The paper will be written using markdown. Markdown files use the `.md`
39-
extension. Check out the [CommonMark Help](http://commonmark.org/help/) page
40-
for an introduction to formatting options provided by markdown. In addition, to
41-
standard markdown features, we support [markdown
42-
tables](https://help.github.com/articles/organizing-information-with-tables/
43-
"GitHub Help: Organizing information with tables") and a custom citation syntax.
44-
Check out [Tables Generator](http://www.tablesgenerator.com/markdown_tables) for
45-
creating markdown tables.
46-
47-
The custom citation guidelines are as follows:
48-
49-
1. Always use a DOI for the version of record if available. Cite DOIs like
50-
`[@doi:10.15363/thinklab.4]`.
51-
2. If the version of record doesn't have a DOI but does have a PubMed ID, cite
52-
like `[@pmid:26158728]`.
53-
3. If the article is an _arXiv_ preprint, cite like `[@arxiv:1508.06576]`.
54-
4. If and only if the article has none of the above, cite with the URL like
55-
`[@url:http://openreview.net/pdf?id=Sk-oDY9ge]`.
56-
57-
You cite multiple items at once like `[@doi:10.15363/thinklab.4 @pmid:26158728
58-
@arxiv:1508.06576]`.
59-
60-
For improved readability, you can (but are not required to) use a tag. For
61-
example, you can add a reference to the tag `Zhou2015_deep_sea` using the
62-
following syntax: `[@tag:Zhou2015_deep_sea]`. If you add references that use
63-
tags, make sure to add those tags and their corresponding citations to
64-
[`references/tags.tsv`](references/tags.tsv).

README.md

Lines changed: 65 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# Opportunities and obstacles for deep learning in biology and medicine
22

3+
[![HTML Manuscript](https://img.shields.io/badge/manuscript-HTML-blue.svg)](https://greenelab.github.io/deep-review/)
4+
[![PDF Manuscript](https://img.shields.io/badge/manuscript-PDF-blue.svg)](https://greenelab.github.io/deep-review/manuscript.pdf)
5+
[![Build Status](https://travis-ci.org/greenelab/deep-review.svg?branch=master)](https://travis-ci.org/greenelab/deep-review)
36
[![Code Climate](https://codeclimate.com/github/greenelab/deep-review/badges/gpa.svg)](https://codeclimate.com/github/greenelab/deep-review)
47

8+
## Manuscript description
59

6-
The most current version of the `master` branch is built by continuous integration
7-
and [available via gh-pages](https://greenelab.github.io/deep-review/). To see
8-
what's incoming, check the
9-
[open pull requests](https://github.com/greenelab/deep-review/pulls).
10+
To see what's incoming, check the [open pull requests](https://github.com/greenelab/deep-review/pulls).
1011

11-
## Current Status - Submitted
12+
#### Current Status - Submitted
1213

1314
We have submitted the manuscript to the journal. A preprint is available at
1415
[bioRxiv](https://doi.org/10.1101/142760). We are still accepting contributions
1516
to improve this work. Feel free to create an issue, contribute some text via a
1617
pull request, and pitch in. Authorship criteria remain the same.
1718

18-
## More about the manuscript.
19+
#### More about the manuscript.
1920

2021
We have the opportunity to write a headline review for *Journal of the Royal
2122
Society Interface* on a topic overlapping the computer and life sciences in the
@@ -47,15 +48,15 @@ model. Anyone whose contributions meet the ICJME standards of authorship will be
4748
included as an author on the manuscript. I can't guarantee that it will be
4849
accepted, but I look forward to trying this approach out.
4950

50-
## Status Report on 12/21
51+
#### Status Report on 12/21
5152

5253
We are now actively writing the review. Markdown files can be found in the
5354
`sections/` folder. Please claim a section, create a fork, and contribute that
5455
section back via a pull request. To see what a pull request into the paper
5556
entails, check out [PR #147](https://github.com/greenelab/deep-review/pull/147)
5657
from [@evancofer](https://github.com/evancofer).
5758

58-
## Status Report on 10/26
59+
#### Status Report on 10/26
5960

6061
We are now actively outlining the review sections and will begin writing
6162
soon. The goal is to have a complete draft in about a month. The action items
@@ -69,7 +70,7 @@ from the 8/25 status report below are still applicable. In addition, you can:
6970
3. Outline sections that do not have stubs with a pull request and discuss
7071
them with other co-authors in the pull request comments.
7172

72-
## Status Report on 8/25
73+
#### Status Report on 8/25
7374

7475
Over the first three weeks of this project, we've developed an initial guiding
7576
question; collaboratively read, summarized, and discussed existing literature
@@ -94,21 +95,62 @@ argue about the answer to the question that we coalesce on with
9495
[#88](https://github.com/greenelab/deep-review/issues/88) for each area that the
9596
review will cover.
9697

97-
## Continuous Integration
98+
## Manubot
99+
100+
<!-- usage note: do not edit this section -->
101+
102+
Manubot is a system for writing scholarly manuscripts via GitHub.
103+
Manubot automates citations and references, versions manuscripts using git, and enables collaborative writing via GitHub.
104+
The [Manubot Rootstock repository](https://git.io/vQSvo) is a general purpose template for creating new Manubot instances, as detailed in [`SETUP.md`](SETUP.md).
105+
See [`USAGE.md`](USAGE.md) for documentation how to write a manuscript.
106+
107+
### Repository directories & files
108+
109+
The directories are as follows:
110+
111+
+ [`content`](content) contains the manuscript source, which includes markdown files as well as inputs for citations and references.
112+
See [`USAGE.md`](USAGE.md) for more information.
113+
+ [`output`](output) contains the outputs (generated files) from the manubot including the resulting manuscripts.
114+
You should not edit these files manually, because they will get overwritten.
115+
+ [`webpage`](webpage) is a directory meant to be rendered as a static webpage for viewing the HTML manuscript.
116+
+ [`build`](build) contains commands and tools for building the manuscript.
117+
+ [`ci`](ci) contains files necessary for deployment via continuous integration.
118+
For the CI configuration, see [`.travis.yml`](.travis.yml).
119+
120+
### Local execution
121+
122+
To run the Manubot locally, install the [conda](https://conda.io) environment as described in [`build`](build).
123+
Then, you can build the manuscript on POSIX systems by running the following commands.
124+
125+
```sh
126+
# Activate the manubot conda environment
127+
source activate manubot
128+
129+
# Build the manuscript
130+
sh build/build.sh
131+
132+
# Or monitor the content directory, and automatically rebuild the manuscript
133+
# when a change is detected.
134+
sh build/autobuild.sh
135+
136+
# View the manuscript locally at http://localhost:8000/
137+
cd webpage
138+
python -m http.server
139+
```
140+
141+
### Continuous Integration
98142

99143
[![Build Status](https://travis-ci.org/greenelab/deep-review.svg?branch=master)](https://travis-ci.org/greenelab/deep-review)
100144

101-
When you make a pull request, Travis CI will test whether your changes break the build process to generate the formatted manuscript.
102-
The build process aims to detect common errors, such as invalid references.
103-
If your build fails, see the Travis CI logs for the cause of failure and revise your pull request accordingly.
145+
Whenever a pull request is opened, Travis CI will test whether the changes break the build process to generate a formatted manuscript.
146+
The build process aims to detect common errors, such as invalid citations.
147+
If your pull request build fails, see the Travis CI logs for the cause of failure and revise your pull request accordingly.
104148

105-
When a pull request is merged, Travis CI performs the build and writes the results to the [`gh-pages`](https://github.com/greenelab/deep-review/tree/gh-pages) and [`references`](https://github.com/greenelab/deep-review/tree/references) branches.
106-
The `gh-pages` branch hosts the following URLs:
149+
When a commit to the `master` branch occurs (for example, when a pull request is merged), Travis CI builds the manuscript and writes the results to the [`gh-pages`](https://github.com/greenelab/deep-review/tree/gh-pages) and [`output`](https://github.com/greenelab/deep-review/tree/output) branches.
150+
The `gh-pages` branch uses [GitHub Pages](https://pages.github.com/) to host the following URLs:
107151

108-
+ **HTML manuscript** at https://greenelab.github.io/deep-review/<br>
109-
short URL: https://git.io/vytJN
110-
+ **PDF manuscript** at https://greenelab.github.io/deep-review/deep-review.pdf<br>
111-
short URL: https://git.io/vytJ5
152+
+ **HTML manuscript** at https://greenelab.github.io/deep-review/
153+
+ **PDF manuscript** at https://greenelab.github.io/deep-review/manuscript.pdf
112154

113155
For continuous integration configuration details, see [`.travis.yml`](.travis.yml).
114156

@@ -121,11 +163,11 @@ Except when noted otherwise, the entirety of this repository is licensed under a
121163
Please attribute by linking to https://github.com/greenelab/deep-review.
122164

123165
Since CC BY is not ideal for code and data, certain repository components are also released under the CC0 1.0 public domain dedication ([`LICENSE-CC0.md`](LICENSE-CC0.md)).
124-
All files matched by the following blog patterns are dual licensed under CC BY 4.0 and CC0 1.0:
166+
All files matched by the following glob patterns are dual licensed under CC BY 4.0 and CC0 1.0:
125167

126168
+ `*.sh`
127169
+ `*.py`
128-
+ `*.yml`
170+
+ `*.yml` / `*.yaml`
129171
+ `*.json`
130172
+ `*.bib`
131173
+ `*.tsv`
@@ -136,10 +178,10 @@ All other files are only available under CC BY 4.0, including:
136178
+ `*.md`
137179
+ `*.html`
138180
+ `*.pdf`
181+
+ `*.docx`
139182

140183
Except for the following files with different licenses:
141184

142-
+ `build/assets/anchors.js` which is [released](https://www.bryanbraun.com/anchorjs/)
143-
under an [MIT License](https://opensource.org/licenses/MIT)
185+
+ `build/assets/anchors.js` which is [released](https://www.bryanbraun.com/anchorjs/) under an [MIT License](https://opensource.org/licenses/MIT)
144186

145187
Please open [an issue](https://github.com/greenelab/deep-review/issues) for any question related to licensing.

0 commit comments

Comments
 (0)