@@ -22,7 +22,7 @@ def is_source_file(file: Path) -> bool:
22
22
"""Check if the provided file is a source file for Sparse Encoder.
23
23
24
24
Args:
25
- file (Path) : The file path to check.
25
+ file: The file path to check.
26
26
27
27
Returns:
28
28
bool: True if the file is a source file, False otherwise.
@@ -34,11 +34,10 @@ def process_path(path: Path) -> tuple[Path, Path, Path]:
34
34
"""Process the given path for documentation generation.
35
35
36
36
Args:
37
- path (Path) : The file path to process.
37
+ path: The file path to process.
38
38
39
39
Returns:
40
- tuple[Path, Path, Path]: A tuple containing module path, documentation path,
41
- and full documentation path.
40
+ A tuple containing module path, documentation path, and full documentation path.
42
41
"""
43
42
module_path = path .relative_to (PROJECT_ROOT ).with_suffix ("" )
44
43
doc_path = path .relative_to (PROJECT_ROOT ).with_suffix (".md" )
@@ -56,9 +55,9 @@ def generate_documentation(path: Path, module_path: Path, full_doc_path: Path) -
56
55
"""Generate documentation for the given source file.
57
56
58
57
Args:
59
- path (Path) : The source file path.
60
- module_path (Path) : The module path.
61
- full_doc_path (Path) : The full documentation file path.
58
+ path: The source file path.
59
+ module_path: The module path.
60
+ full_doc_path: The full documentation file path.
62
61
"""
63
62
if module_path .name == "__main__" :
64
63
return
@@ -77,8 +76,8 @@ def generate_nav_file(nav: mkdocs_gen_files.nav.Nav, reference_dir: Path) -> Non
77
76
"""Generate the navigation file for the documentation.
78
77
79
78
Args:
80
- nav (mkdocs_gen_files.Nav) : The navigation object.
81
- reference_dir (Path) : The directory to write the navigation file.
79
+ nav: The navigation object.
80
+ reference_dir: The directory to write the navigation file.
82
81
"""
83
82
with mkdocs_gen_files .open (reference_dir / "SUMMARY.md" , "w" ) as nav_file :
84
83
nav_file .writelines (nav .build_literate_nav ())
0 commit comments