Permalink
Browse files

autobuild.sh: include webpage.py execution (#113)

Most autobuild users will want to automatically update the webpage. See discussion at
#101 (comment)

Update README to better document autobuild.
  • Loading branch information...
dhimmel committed Feb 17, 2018
1 parent 29cd993 commit b7a9de896fa6e056a6adf983592166232349cf34
Showing with 10 additions and 7 deletions.
  1. +8 −5 README.md
  2. +2 −2 build/autobuild.sh
@@ -46,13 +46,9 @@ Then, you can build the manuscript on POSIX systems by running the following com
# Activate the manubot conda environment (assumes conda version >= 4.4)
conda activate manubot
# Build the manuscript
# Build the manuscript, saving outputs to the output directory
sh build/build.sh
# Or monitor the content directory, and automatically rebuild the manuscript
# when a change is detected.
sh build/autobuild.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.
@@ -64,6 +60,13 @@ cd webpage
python -m http.server
```

Sometimes it's helpful to monitor the content directory and automatically rebuild the manuscript when a change is detected.
The following command, while running, will trigger both the `build.sh` and `webpage.py` scripts upon content changes:

```sh
sh build/autobuild.sh
```

### Continuous Integration

[![Build Status](https://travis-ci.org/greenelab/manubot-rootstock.svg?branch=master)](https://travis-ci.org/greenelab/manubot-rootstock)
@@ -1,6 +1,6 @@
# Automatically rebuild manuscript when content changes
# 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' \
--command='sh build/build.sh && python build/webpage.py' \
content

0 comments on commit b7a9de8

Please sign in to comment.