Skip to content

Commit

Permalink
feat: added docfx build in nox file
Browse files Browse the repository at this point in the history
  • Loading branch information
vi3k6i5 committed Apr 28, 2021
1 parent b60b5cf commit 21e28a2
Showing 1 changed file with 1 addition and 40 deletions.
41 changes: 1 addition & 40 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def default(session):
"--cov-append",
"--cov-config=.coveragerc",
"--cov-report=",
"--cov-fail-under=25",
"--cov-fail-under=20",
os.path.join("tests", "unit"),
*session.posargs
)
Expand Down Expand Up @@ -127,45 +127,6 @@ def docs(session):
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
def docfx(session):
"""Build the docfx yaml files for this library."""

session.install("-e", ".")
session.install(
"sphinx",
"alabaster",
"recommonmark",
"sphinx-docfx-yaml",
"django==2.2",
)

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
"sphinx-build",
"-T", # show full traceback on exception
"-N", # no colors
"-D",
(
"extensions=sphinx.ext.autodoc,"
"sphinx.ext.autosummary,"
"docfx_yaml.extension,"
"sphinx.ext.intersphinx,"
"sphinx.ext.coverage,"
"sphinx.ext.napoleon,"
"sphinx.ext.todo,"
"sphinx.ext.viewcode,"
"recommonmark"
),
"-b",
"html",
"-d",
os.path.join("docs", "_build", "doctrees", ""),
os.path.join("docs", ""),
os.path.join("docs", "_build", "html", ""),
)


@nox.session(python=DEFAULT_PYTHON_VERSION)
def docfx(session):
"""Build the docfx yaml files for this library."""
Expand Down

0 comments on commit 21e28a2

Please sign in to comment.