Skip to content

Commit

Permalink
update readme, only test html build, not latex build
Browse files Browse the repository at this point in the history
  • Loading branch information
lheagy committed Jan 2, 2019
1 parent 0e0c801 commit 6ef3fef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
- pip install -r requirements.txt

script:
- pytest $TEST_DIR -v
- pytest $TEST_DIR -v -s

after_success:
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
Expand Down
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
[![Build Status](https://travis-ci.org/geoscixyz/em.svg?branch=master)](https://travis-ci.org/geoscixyz/em) [![license](https://img.shields.io/badge/license-CC%20BY%204.0-blue.svg)](/LICENSE)
[![DOI](https://zenodo.org/badge/42916308.svg)](https://zenodo.org/badge/latestdoi/42916308)

This repository is the source for the open-textbook EM-GeoSci: https://em.geosci.xyz. This was the main textbook-resource used
for the [Society of Exploration Geophysics 2017 Distinguished Instructor Short Course](https://seg.org/Education/Courses/DISC/2017-DISC-Doug-Oldenburg)

http://em.geosci.xyz

A resource for electromagnetic geophysics

**Resources for Contributors:**

Check out the wiki: https://github.com/geoscixyz/em/wiki

In it, we have included tips on reStructured text and Sphinx, GitHub as well as our development practices.

Add an [issue](https://github.com/geoscixyz/em/issues) for questions and problems.
1 change: 0 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
'purpose',
'question',
'geosciapp',
'sphinx.ext.imgconverter',
# 'sphinx_nbexamples'
# 'sphinx_gallery.gen_gallery',
]
Expand Down
18 changes: 9 additions & 9 deletions tests/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ def test_images(self):
assert img[-3:] in ['png', 'jpg', 'gif'], 'Figure file extension must be png, jpg, gif, not %s'%img


def test_latex(self):
doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
latex_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['latex'])

check = subprocess.call(["sphinx-build", "-nW", "-b", "latex", "-d",
"%s"%(doctrees_path),
"%s"%(self.path_to_docs),
"%s"%(latex_path)])
assert check == 0
# def test_latex(self):
# doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
# latex_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['latex'])

# check = subprocess.call(["sphinx-build", "-nW", "-b", "latex", "-d",
# "%s"%(doctrees_path),
# "%s"%(self.path_to_docs),
# "%s"%(latex_path)])
# assert check == 0

def test_linkcheck(self):
doctrees_path = os.path.sep.join(self.path_to_docs.split(os.path.sep) + ['_build']+['doctrees'])
Expand Down

0 comments on commit 6ef3fef

Please sign in to comment.