better-docs | Beautiful toolbox for jsdoc generated documentation | REST library
kandi X-RAY | better-docs Summary
kandi X-RAY | better-docs Summary
We're an open, friendly team that helps clients from all over the world to transform their businesses and create astonishing products.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of better-docs
better-docs Key Features
better-docs Examples and Code Snippets
Community Discussions
Trending Discussions on better-docs
QUESTION
I tried to use better-docs plugin for jsDoc to make documentation for my react.js project through this link: https://medium.com/@wojciechkrysiak/document-reactjs-components-with-preview-by-using-jsdoc-70d39d2cc777.
When i run bellow command to create my docs:
...ANSWER
Answered 2020-Jan-22 at 11:26I had a similar issue. Basically, the problem is that the path module puts "\" in paths for Windows instead of "/" which causes paths to break.
The file entry.js is created by bundler.js which can be found in node_modules/better-docs/bundler.js This is the file that puts the wrong paths in entry.js. To fix this, I manually replaced the "\" with "/" in multiple places in the bundler.js file by adding .replace(/\\/g,"/")
when paths are created.
How I changed the bundler.js file (just look for all the .replace(/\\/g,"/")
to see where you need to add them):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install better-docs
If you want to change the theme locally follow the steps:.
Clone the repo to the folder where you have the project:
Install the packages
Within the better-docs folder run the gulp script. It will regenerate documentation every time you change something.
DOCS_COMMAND - a command in your root repo which you use to generate documentation: i.e. DOCS_COMMAND='jsdoc -c jsdoc.json' or npm run docs if you have docs command defined in package.json file
DOCS_OUTPUT - where your documentation is generated. It should point to the same folder your jsdoc --destination conf. But make sure that it is relative to the path where you cloned better-docs.
DOCS - list of folders from your original repo what you want to watch for changes. Separated by comma.
If you want to see how to setup jsdoc in your project - take a look at these brief tutorials:.
JSDoc - https://www.youtube.com/watch?v=Yl6WARA3IhQ
better-docs and Mermaid: https://www.youtube.com/watch?v=UBMYogTzsBk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page