Validate doc type data during build
This commit is contained in:
parent
373dfe4c3b
commit
f13e1e2ee2
7 changed files with 195 additions and 20 deletions
|
|
@ -10,12 +10,14 @@
|
|||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
import datetime
|
||||
import os
|
||||
import sys
|
||||
|
||||
SRC = os.path.abspath("../src")
|
||||
sys.path.insert(0, SRC)
|
||||
import datetime
|
||||
|
||||
from nrsk.documents.validate import validate_doc_types
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
company_name = "Applied Maritime Sciences, LLC"
|
||||
|
|
@ -198,3 +200,7 @@ intersphinx_mapping = {
|
|||
"pydantic": ("https://docs.pydantic.dev/latest", None),
|
||||
"python": ("https://docs.python.org/3", None),
|
||||
}
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect("builder-inited", validate_doc_types)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue