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
Only the titles of the APIs load, nothing of the actual docs. The console logs the following error, so I guess it has something to do with SemVer:
semver.min.js?v=1588867787213:1 Uncaught (in promise) TypeError: Invalid Version: undefined
at new K (semver.min.js?v=1588867787213:1)
at K.compare (semver.min.js?v=1588867787213:1)
at ir (semver.min.js?v=1588867787213:1)
at Object.vr [as lte] (semver.min.js?v=1588867787213:1)
at HTMLElement.<anonymous> (main.js:561)
at Function.each (jquery.min.js?v=1588867787213:2)
at k.fn.init.each (jquery.min.js?v=1588867787213:2)
at setMainVersion (main.js:556)
at init (main.js:586)
at Object.active (main.js:61)
Steps to reproduce
All the APIs are documented with @apiversion 2.0.0
withCompare is set to false. If set to true, the docs do work.
Information
Version of apidoc: 0.22.1 (but also tried to downgrade to 0.18.0, which uses an older SemVer)
Operating system (e.g. GNU+Linux/MacOS/Windows): Linux for generating. Windows for testing.
Sorry, I see literally the last issue before mine reports the same thing: #878
I did not notice, because at first I did not know the issue was with withCompare. I'll leave my issue open, because I think it might have some additional info to resolve the bug.
It's not SemVer, the version is retrieved from the HTML, but the HTML containing the version isn't inserted with the option set to false. I'll make a PR soon.
Describe the bug
Only the titles of the APIs load, nothing of the actual docs. The console logs the following error, so I guess it has something to do with SemVer:
Steps to reproduce
Information
broken_docs.zip
"apidoc": {
"name": "Our name",
"title": "Our title",
"version": "2.0.0",
"description": "lorem ipsum",
"url": "url to our domain",
"template": {
"forceLanguage": "en",
"withGenerator": false,
"withCompare": false
},
"order": [
...(list of all the APIs here)
],
"header": {
"title": "General",
"filename": "header.md"
}
}
The text was updated successfully, but these errors were encountered: