That's a case the markdown plugin cannot handle very well, here is my PR in which I tried to update the existing vitepress docs with the new plugin: buschtoens/ember-link#793 (repro manual at the end of this post)
Markdown
there is ember-link/classes/Link.md (which is the LinkHelper)
that's the only of the two files created
Vitepress Integration
That's the error in the console, when I open Link:
Interesting to see, it comes to set -> Ember (or is it Ember.set ?) at the end. Even though that is quite old code (before there were classes in JS), that shouldn't break, no?
What works though, is the sidebar is correct:
Reproduction
Here is the reproduction with a manual:
Check out buschtoens/ember-link#793
Install pnpm install
Into ember-link folder: cd ember-link/ and generate API with: pnpm api
Go back into repo root: cd ../ and start vitepress: pnpm docs:dev
Open the link and navigate to the API (top right navigation)
Here is my situation
LinkHelper
class, that is exported aslink
Link
class, that is exported asLink
There is
link
vsLink
That's a case the markdown plugin cannot handle very well, here is my PR in which I tried to update the existing vitepress docs with the new plugin: buschtoens/ember-link#793 (repro manual at the end of this post)
Markdown
ember-link/classes/Link.md
(which is theLinkHelper
)Vitepress Integration
That's the error in the console, when I open
Link
:Interesting to see, it comes to
set
->Ember
(or is itEmber.set
?) at the end. Even though that is quite old code (before there were classes in JS), that shouldn't break, no?What works though, is the sidebar is correct:
Reproduction
Here is the reproduction with a manual:
pnpm install
cd ember-link/
and generate API with:pnpm api
cd ../
and start vitepress:pnpm docs:dev