@@ -412,82 +412,94 @@ def prerelease_deps(session):
412412@nox .session (python = "3.10" )
413413def docs (session ):
414414 """Build the docs for this library."""
415-
416- session .install ("-e" , "." )
417- session .install (
418- # We need to pin to specific versions of the `sphinxcontrib-*` packages
419- # which still support sphinx 4.x.
420- # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
421- # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
422- "sphinxcontrib-applehelp==1.0.4" ,
423- "sphinxcontrib-devhelp==1.0.2" ,
424- "sphinxcontrib-htmlhelp==2.0.1" ,
425- "sphinxcontrib-qthelp==1.0.3" ,
426- "sphinxcontrib-serializinghtml==1.1.5" ,
427- "sphinx==4.5.0" ,
428- "alabaster" ,
429- "recommonmark" ,
430- )
431-
432- shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
433- session .run (
434- "sphinx-build" ,
435- "-W" , # warnings as errors
436- "-T" , # show full traceback on exception
437- "-N" , # no colors
438- "-b" ,
439- "html" ,
440- "-d" ,
441- os .path .join ("docs" , "_build" , "doctrees" , "" ),
442- os .path .join ("docs" , "" ),
443- os .path .join ("docs" , "_build" , "html" , "" ),
444- )
415+ session .skip ("docs builds are not yet supported" )
445416
446417
447418@nox .session (python = "3.10" )
448419def docfx (session ):
449420 """Build the docfx yaml files for this library."""
450-
451- session .install ("-e" , "." )
452- session .install (
453- # We need to pin to specific versions of the `sphinxcontrib-*` packages
454- # which still support sphinx 4.x.
455- # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
456- # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
457- "sphinxcontrib-applehelp==1.0.4" ,
458- "sphinxcontrib-devhelp==1.0.2" ,
459- "sphinxcontrib-htmlhelp==2.0.1" ,
460- "sphinxcontrib-qthelp==1.0.3" ,
461- "sphinxcontrib-serializinghtml==1.1.5" ,
462- "gcp-sphinx-docfx-yaml" ,
463- "alabaster" ,
464- "recommonmark" ,
465- )
466-
467- shutil .rmtree (os .path .join ("docs" , "_build" ), ignore_errors = True )
468- session .run (
469- "sphinx-build" ,
470- "-T" , # show full traceback on exception
471- "-N" , # no colors
472- "-D" ,
473- (
474- "extensions=sphinx.ext.autodoc,"
475- "sphinx.ext.autosummary,"
476- "docfx_yaml.extension,"
477- "sphinx.ext.intersphinx,"
478- "sphinx.ext.coverage,"
479- "sphinx.ext.napoleon,"
480- "sphinx.ext.todo,"
481- "sphinx.ext.viewcode,"
482- "recommonmark"
483- ),
484- "-b" ,
485- "html" ,
486- "-d" ,
487- os .path .join ("docs" , "_build" , "doctrees" , "" ),
488- os .path .join ("docs" , "" ),
489- os .path .join ("docs" , "_build" , "html" , "" ),
490- )
421+ session .skip ("docfx builds are not yet supported" )
422+
423+
424+ # @nox.session(python="3.10")
425+ # def docs(session):
426+ # """Build the docs for this library."""
427+
428+ # session.install("-e", ".")
429+ # session.install(
430+ # # We need to pin to specific versions of the `sphinxcontrib-*` packages
431+ # # which still support sphinx 4.x.
432+ # # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
433+ # # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
434+ # "sphinxcontrib-applehelp==1.0.4",
435+ # "sphinxcontrib-devhelp==1.0.2",
436+ # "sphinxcontrib-htmlhelp==2.0.1",
437+ # "sphinxcontrib-qthelp==1.0.3",
438+ # "sphinxcontrib-serializinghtml==1.1.5",
439+ # "sphinx==4.5.0",
440+ # "alabaster",
441+ # "recommonmark",
442+ # )
443+
444+ # shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
445+ # session.run(
446+ # "sphinx-build",
447+ # "-W", # warnings as errors
448+ # "-T", # show full traceback on exception
449+ # "-N", # no colors
450+ # "-b",
451+ # "html",
452+ # "-d",
453+ # os.path.join("docs", "_build", "doctrees", ""),
454+ # os.path.join("docs", ""),
455+ # os.path.join("docs", "_build", "html", ""),
456+ # )
457+
458+
459+ # @nox.session(python="3.10")
460+ # def docfx(session):
461+ # """Build the docfx yaml files for this library."""
462+
463+ # session.install("-e", ".")
464+ # session.install(
465+ # # We need to pin to specific versions of the `sphinxcontrib-*` packages
466+ # # which still support sphinx 4.x.
467+ # # See https://github.com/googleapis/sphinx-docfx-yaml/issues/344
468+ # # and https://github.com/googleapis/sphinx-docfx-yaml/issues/345.
469+ # "sphinxcontrib-applehelp==1.0.4",
470+ # "sphinxcontrib-devhelp==1.0.2",
471+ # "sphinxcontrib-htmlhelp==2.0.1",
472+ # "sphinxcontrib-qthelp==1.0.3",
473+ # "sphinxcontrib-serializinghtml==1.1.5",
474+ # "gcp-sphinx-docfx-yaml",
475+ # "alabaster",
476+ # "recommonmark",
477+ # )
478+
479+ # shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
480+ # session.run(
481+ # "sphinx-build",
482+ # "-T", # show full traceback on exception
483+ # "-N", # no colors
484+ # "-D",
485+ # (
486+ # "extensions=sphinx.ext.autodoc,"
487+ # "sphinx.ext.autosummary,"
488+ # "docfx_yaml.extension,"
489+ # "sphinx.ext.intersphinx,"
490+ # "sphinx.ext.coverage,"
491+ # "sphinx.ext.napoleon,"
492+ # "sphinx.ext.todo,"
493+ # "sphinx.ext.viewcode,"
494+ # "recommonmark"
495+ # ),
496+ # "-b",
497+ # "html",
498+ # "-d",
499+ # os.path.join("docs", "_build", "doctrees", ""),
500+ # os.path.join("docs", ""),
501+ # os.path.join("docs", "_build", "html", ""),
502+ # )
491503
492504
493505@nox .session
0 commit comments