Skip to content

Commit

Permalink
nox for docs (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
clonker authored Nov 12, 2021
1 parent a5d72f0 commit a99fafb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions deeptime/covariance/util/covar_c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ project(covartools CXX)

set(SRC covartools.hpp covartools.cpp)
pybind11_add_module(${PROJECT_NAME} ${SRC})
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${common_includes})
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sphinx-gallery
torch
memory_profiler
mdshare
nbconvert
8 changes: 8 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ def tests(session: nox.Session) -> None:
session.run("pytest", '-vv', '--doctest-modules', '--durations=20', *cov_args, '--pyargs', "tests/", 'deeptime')


@nox.session(reuse_venv=True)
def make_docs(session: nox.Session) -> None:
session.install("-r", "tests/requirements.txt")
session.install("-r", "docs/requirements.txt")
session.chdir("docs")
session.run("sphinx-build", "-M", "html", "source", "build", "-t", "notebooks")


@nox.session(reuse_venv=True)
def build(session: nox.Session) -> None:
session.install("build")
Expand Down

0 comments on commit a99fafb

Please sign in to comment.