DEV Community

Cover image for Generate offline documentation of reactjs in 5 minutes

Generate offline documentation of reactjs in 5 minutes

naveennamani on October 09, 2021

When it comes to learning a new language, framework or library, the first and important source of help comes from the documentation provided by the...
Collapse
 
tdamilola profile image
Taiwo Damilola

React-Native offline doc please....

Collapse
 
naveennamani profile image
naveennamani

Hey @tdamilola I've created a repo with a collection of scripts for generating offline-docs. Please go to the repository and create an issue if you require any other tools. I'll be updating the repo with script for react-native docs soon today.

Collapse
 
tdamilola profile image
Taiwo Damilola

Thanks Man. just seeing this, appreciate your good work bro.

Thread Thread
 
naveennamani profile image
naveennamani

😀 thanks for the compliment, just what I wanted to finish my 50 scripts landmark which is long pending 😅

Collapse
 
naveennamani profile image
naveennamani

Please check the repo, I just now added the script.
github.com/naveennamani/offline-do...

Consider giving a star to the repo if you like :)

Collapse
 
arielmeee profile image
arielmeee

How about offline docs for Laravel? That would be helpful if you're up to it.

Collapse
 
naveennamani profile image
naveennamani

For sure, I'll hack a way! :)

Collapse
 
arielmeee profile image
arielmeee

Thanks!

Collapse
 
aziz_sokhibov profile image
Aziz Sokhibov

I did everything what you said in the post, but i have files in the 'public' folder, but where is index.html? how to open the main page? i did not understand it

Collapse
 
naveennamani profile image
naveennamani

I've just seen the repo and it is no longer using gatsby for the website. Instead it is using nextjs. next build command will only build the code needed for production app. But for export of all pages as static HTML it has next export command. But the problem is the website is using next images for serving optimised images, which is not compatible for generating HTML pages. So the best thing you can do is serve the build files using nextjs itself.

Collapse
 
naveennamani profile image
naveennamani

I haven't updated this article from a long time. I'll text the instructions again and will update.
Thanks for informing about it.