You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation generation fails if the package name has a "/" on it, because this "/" goes straight into the pathname name and thus it's interpreted like a directory separator.
(defundocument-package (package-index &key keep-rst (base-path #P"docs/"))
"Generates documentation in html form for :param:`package-index`.The documentation file will have the pathanme ``{{base-path}}{{package-name}}.html``, so a package named ``cool-package`` with :param:`base-dir` ``docs/`` will have the generated pathame ``docs/cool-package.html``.If :param:`keep-rst` is truthy, don't delete the intermediate restructured text file."
(let* ((pathname (make-pathname:defaults base-path
:name (-> package-index docparser:package-index-name string-downcase)
:type"rst":versionnil))
(coo.roles:*context-package* (find-package (docparser:package-index-name package-index)))
(args (list:variablesnil:functionsnil:macrosnil:generic-functionsnil:structuresnil:classesnil)))
The problem is at name (-> package-index docparser:package-index-name string-downcase) : pathname is not filtering the package-index's name.
If this package name has a slash (/) (for example "mypackage/utils", then it becomes part of the pathname. It shouldn't.
The system needs to filter the package names accordingly.
The text was updated successfully, but these errors were encountered:
The documentation generation fails if the package name has a "/" on it, because this "/" goes straight into the pathname name and thus it's interpreted like a directory separator.
The problem is at
name (-> package-index docparser:package-index-name string-downcase)
: pathname is not filtering the package-index's name.If this package name has a slash (/) (for example "mypackage/utils", then it becomes part of the pathname. It shouldn't.
The system needs to filter the package names accordingly.
The text was updated successfully, but these errors were encountered: