2 Commits
Author SHA1 Message Date
jakob.scheid 8881f2d46a docs(changelog): add namespace error fix entry
Added a changelog entry for the namespace name error of the Python
project documentation generator.
2026-09-28 22:35:31 +02:00
jakob.scheid 6a4b5187e7 fix(python-generator): resolve directory path
The path to the directory is now completely resolved in
PythonDocumentationGenerator._namespace to prevent from empty path names
if the path is '.'. A fallback was also added for the case that the path
is '/'; the fallback value is irrelevant as the root namespace name is
not included in the output and only the root package path can be '/'.
2026-09-28 22:35:26 +02:00
+2 -1
View File
@@ -1100,7 +1100,8 @@ class PythonDocumentationGenerator:
# fallback for the case that the path it '/'. In this case, the # fallback for the case that the path it '/'. In this case, the
# name would be ''. The fallback value is irrelevant; the name is # name would be ''. The fallback value is irrelevant; the name is
# only specified because PythonPackageNamespace requires # only specified because PythonPackageNamespace requires
# specifying it. The name will not occur in the generated output. # specifying it. The name will not be included in the generated
# output.
directory.resolve().name or 'project', directory.resolve().name or 'project',
[], [],
) )