Skip to content

Commit a99fafb

Browse files
authored
nox for docs (#166)
1 parent a5d72f0 commit a99fafb

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

deeptime/covariance/util/covar_c/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ project(covartools CXX)
22

33
set(SRC covartools.hpp covartools.cpp)
44
pybind11_add_module(${PROJECT_NAME} ${SRC})
5+
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include ${common_includes})

docs/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ sphinx-gallery
1212
torch
1313
memory_profiler
1414
mdshare
15+
nbconvert

noxfile.py

+8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ def tests(session: nox.Session) -> None:
2727
session.run("pytest", '-vv', '--doctest-modules', '--durations=20', *cov_args, '--pyargs', "tests/", 'deeptime')
2828

2929

30+
@nox.session(reuse_venv=True)
31+
def make_docs(session: nox.Session) -> None:
32+
session.install("-r", "tests/requirements.txt")
33+
session.install("-r", "docs/requirements.txt")
34+
session.chdir("docs")
35+
session.run("sphinx-build", "-M", "html", "source", "build", "-t", "notebooks")
36+
37+
3038
@nox.session(reuse_venv=True)
3139
def build(session: nox.Session) -> None:
3240
session.install("build")

0 commit comments

Comments
 (0)