Skip to content

Commit

Permalink
Timestamp manuscripts with OpenTimestamps (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhimmel authored Mar 4, 2017
1 parent bc72855 commit 3b763ff
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Generated manuscript output files
output/index.html
output/deep-review.pdf
output/*.ots

# Generated reference files
references/generated/*
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ci/opentimestamps-client"]
path = ci/opentimestamps-client
url = https://github.com/opentimestamps/opentimestamps-client.git
1 change: 1 addition & 0 deletions build/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ dependencies:
- arxiv2bib==1.0.7
- bibtexparser==0.6.2
- ghp-import==0.5.5
- python-bitcoinlib==0.7.0
10 changes: 10 additions & 0 deletions ci/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Exit on errors
set -o errexit

# Add commit hash to the README
envsubst < output/README.md > output/README.md

# Generate OpenTimestamps
python ci/opentimestamps-client/ots stamp \
output/index.html \
output/deep-review.pdf \
output/README.md

# Configure git
git config --global push.default simple
git config --global user.email `git log --max-count=1 --format='%ae'`
Expand Down
1 change: 1 addition & 0 deletions ci/opentimestamps-client
Submodule opentimestamps-client added at 9fc552
18 changes: 18 additions & 0 deletions output/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Output directory containing the formatted manuscript

The [`gh-pages`](https://github.com/greenelab/deep-review/tree/gh-pages) branch hosts the contents of this directory at https://greenelab.github.io/deep-review/.

## Files

This directory contains the following files, which are mostly ignored on the `master` branch:

+ [`index.html`](index.html) is an HTML manuscript.
+ [`github-pandoc.css`](github-pandoc.css) sets the display style for `index.html`.
+ [`deep-review.pdf`](deep-review.pdf) is a PDF manuscript.
+ `*.ots` files are OpenTimestamps which can be used to verify manuscript existence at or before a given time.
[OpenTimestamps](opentimestamps.org) uses the Bitcoin blockchain to attest to file hash existence.

## Source

The manuscripts in this directory were built from
[`$TRAVIS_COMMIT`](https://github.com/greenelab/deep-review/commit/$TRAVIS_COMMIT).

0 comments on commit 3b763ff

Please sign in to comment.