Bug: Protocol-Relative URLs in typedoc-sidebar.json
when out and docsRoot are the same
#695
Labels
bug
Issue raised as a bug.
What package is the bug related to?
typedoc-vitepress-theme
Describe the issue
Description:
There's a bug in the
typedoc-vitepress-theme
extension when theout
anddocsRoot
configurations are set to the same directory. Specifically, when the following configurations are used:{ "out": "./docs/api" }
{ "docsRoot": "./docs/api" }
The resulting
typedoc-sidebar.json
file generated bytypedoc-vitepress-theme
contains protocol-relative URLs for links, such as:This causes an issue in
Vitepress
where clicking on a link attempts to navigate tohttp://namespaces/Base/
Expected Behavior:
When the
out
anddocsRoot
configurations are the same, the links should be absolute paths relative to the root of the documentation site, like so:Steps to Reproduce:
typedoc
with the configuration:{ "out": "./docs/api" }
typedoc-vitepress-theme
with the configuration:{ "docsRoot": "./docs/api" }
typedoc-sidebar.json
file for protocol-relative URLs.Minimal Reproduction URL:
https://stackblitz.com/edit/stackblitz-starters-jdb3ch?file=package.json
Environment:
typedoc
version:0.26.7
typedoc-plugin-markdown
version:4.2.8
5.5.4
5.5.4
TypeDoc configuration
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: