Bug Description
As of 3.0.0-2
, I am able to build and serve the documentation site successfully. However, there appears to be an error with several of the JS files from Slate that get generated, namely "imagesloaded.min.js", "jquery.min.js", and "lunr.min.js". The error seems to stem from the call to npx reslate init
, where the code files that get generated are symlinks instead of the files themselves, and inspecting these symlinks reveals them to be broken. If I look in the "node_modules" directory for reslate, the source files for these files are broken symlinks as well.
The symlinks are copied to the output upon running npx reslate build
, which results in several aspects of the final site not working properly. For example, the code snippet column shows the sample code from all languages at once, and clicking the language tabs does nothing.
Here is the directory of my API description after having only run npx reslate init
(note the curled arrows by the aforementioned files indicating they are symlinks and inspecting the files results in a read error):
And here is the resulting web page (note the code samples for Ruby, Python, Shell, and JavaScript are all being displayed simultaneously):
And this is the console output from the web page (the errors regarding $
would be because the jQuery script isn't being loaded):
jquery.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
imagesloaded.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
lunr.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
jquery.highlight.js:46 Uncaught ReferenceError: jQuery is not defined
at jquery.highlight.js:46
imagesloaded.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
lunr.min.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
lang.js:172 Uncaught ReferenceError: $ is not defined
at lang.js:172
at lang.js:180
search.js:36 Uncaught ReferenceError: $ is not defined
at search.js:36
at search.js:101
(index):32 Uncaught ReferenceError: $ is not defined
at (index):32