Skip to content

Commit

Permalink
DOC: ReadTheDocs: disable LaTeX formats and cleanup version info (#184)
Browse files Browse the repository at this point in the history
* RTD config: Switch off building `all` formats, since LaTeX builds are failing (#167)
* Cleanup ESPEI development `|version|` information to remove the `.dirty` from the version since RTD dirties the version info
  • Loading branch information
bocklund committed May 8, 2021
1 parent e4913e0 commit 7684418
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docs/_build
# Editors
*.sublime-project
*.sublime-workspace
.vscode
.vscode
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ version: 2
conda:
environment: environment-dev.yml

formats: all
# PDF/LaTeX currently broken
# see: https://github.com/PhasesResearchLab/ESPEI/issues/167
formats: []
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
import sys
sys.path.insert(0, os.path.abspath('..')) # For autodoc and version loading
from espei import __version__ as espei_version
# Cleanup ESPEI version, since RTD dirties the repository
if espei_version.endswith('.dirty'):
espei_version = espei_version[:-6]

# -- General configuration ------------------------------------------------

Expand Down

0 comments on commit 7684418

Please sign in to comment.