@@ -51,7 +51,7 @@ def _git_diff_changes_main() -> int:
5151 "--quiet" ,
5252 "origin/main" ,
5353 "--" ,
54- PROJECT_CONFIG .root / "doc/ changes" ,
54+ PROJECT_CONFIG .documentation_path / "changes" ,
5555 ],
5656 capture_output = True ,
5757 )
@@ -73,7 +73,7 @@ def build_docs(session: Session) -> None:
7373@nox .session (name = "docs:open" , python = False )
7474def open_docs (session : Session ) -> None :
7575 """Opens the built project documentation"""
76- docs_folder = PROJECT_CONFIG .root / DOCS_OUTPUT_DIR
76+ docs_folder = PROJECT_CONFIG .root_path / DOCS_OUTPUT_DIR
7777 if not docs_folder .exists ():
7878 session .error (f"No documentation could be found. { docs_folder } is missing" )
7979 index = docs_folder / "index.html"
@@ -83,7 +83,7 @@ def open_docs(session: Session) -> None:
8383@nox .session (name = "docs:clean" , python = False )
8484def clean_docs (_session : Session ) -> None :
8585 """Removes the documentations build folder"""
86- docs_folder = PROJECT_CONFIG .root / DOCS_OUTPUT_DIR
86+ docs_folder = PROJECT_CONFIG .root_path / DOCS_OUTPUT_DIR
8787 if docs_folder .exists ():
8888 shutil .rmtree (docs_folder )
8989
@@ -146,7 +146,7 @@ def _docs_links_check(doc_config: Path, args):
146146@nox .session (name = "links:list" , python = False )
147147def docs_list_links (session : Session ) -> None :
148148 """List all the links within the documentation."""
149- r_code , text = _docs_list_links (PROJECT_CONFIG .doc )
149+ r_code , text = _docs_list_links (PROJECT_CONFIG .documentation_path )
150150 print (text )
151151 if r_code != 0 :
152152 session .error ()
@@ -164,7 +164,7 @@ def docs_links_check(session: Session) -> None:
164164 "-o" , "--output" , type = Path , help = "path to copy the output json" , default = None
165165 )
166166 args = parser .parse_args (session .posargs )
167- r_code , problems = _docs_links_check (PROJECT_CONFIG .doc , args )
167+ r_code , problems = _docs_links_check (PROJECT_CONFIG .documentation_path , args )
168168 if r_code >= 2 :
169169 session .error (2 )
170170 if r_code == 1 or problems != "" :
0 commit comments