Feature/56 vuepress 2 support #62
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This resolves Vuepress 2 support #56 by changing the sidebar config output to be compatible with Vuepress 2.
It also adds the same fix as found in PR fix: from vue-docgen-cli v4.64.0 extractConfig method is async and we… #61 as I hit that issue during testing, and couldn't continue without resolving it.
This also resolves another, related issue with the
compileTemplates()
method call;It also looks like
compileTemplates
fromvue-docgen-cli/lib/compileTemplates
method signature has changed. It now expects aFileEventType
as the first argument.FileEventType
is defined as:The code currently looks like:
vuepress-jsdoc/src/lib/parser.ts
Line 127 in 8b596fb
I've just set the
FileEventType
to "add", which seems to work, but I'm not sure if that's correct:The tests have been updated to expect the Vuepress 2 config format.