standardize packaging, tooling, docs, CI, and licensing
This commit is contained in:
@@ -7,7 +7,6 @@ structure defined by the user in the doc-forge navigation specification
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
import yaml
|
||||
|
||||
@@ -28,8 +27,8 @@ class NavSpec:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
home: Optional[str],
|
||||
groups: Dict[str, List[str]],
|
||||
home: str | None,
|
||||
groups: dict[str, list[str]],
|
||||
) -> None:
|
||||
"""
|
||||
Initialize a NavSpec instance.
|
||||
@@ -85,7 +84,7 @@ class NavSpec:
|
||||
|
||||
return cls(home=home, groups=groups)
|
||||
|
||||
def all_patterns(self) -> List[str]:
|
||||
def all_patterns(self) -> list[str]:
|
||||
"""
|
||||
Return all path patterns referenced by the specification.
|
||||
|
||||
@@ -93,7 +92,7 @@ class NavSpec:
|
||||
A list containing the home document (if defined) and all
|
||||
group pattern entries.
|
||||
"""
|
||||
patterns: List[str] = []
|
||||
patterns: list[str] = []
|
||||
|
||||
if self.home:
|
||||
patterns.append(self.home)
|
||||
|
||||
Reference in New Issue
Block a user