A collection of scripts to build offline documentation for your favourite frameworks/libraries. Simply search, copy/paste the commands and enjoy.

Overview

Offline-docs

A collection of scripts to build offline documentation for your favourite frameworks/libraries. Simply search, copy/paste the commands and enjoy.

Available tools

Currently 27 tools available

But why? / Motivation

Learning or working on a new language often requires referring to the official docs multiple times. With the rise of Static Site Generation (SSG) many documentation sites are now open-source and can be built for offline usage. This project aims to collect all such websites and the build commands to have a knowledge of widely used SSG tools.

How to contribute

  • project_groups.yml file contains categories of websites and data_file pointing to a file in projects directory which contains a list of projects belonging to the corresponding group.
  • Every file in projects directory is a list of projects with each project consisting of following information.
    • name, website, description, repo, commands, output_dir, last_tested, note, license
  • Modify suitable file in projects directory and add all information for a new project.
  • If the project doesn't suits any existing category, add information about new category in project_groups.yml file.

How to complain about faulty scripts

Open an issue with as detailed error messages as possible.

Disclaimer

All the content generated using the scripts mentioned in this repository are copyright of the owners of the repo from which the documentation is generated. Only use the generated content for personal use. Terms and conditions for sharing/modifying/distributing the generated content will be applicable as per the license terms of the original repo.

How to use this repo

  1. Find the framework/library/tool for which you want to build the documentation (you can search in the Available Tools or with Ctrl+F)
  2. Open a new terminal
  3. Copy paste the commands shown
  4. Open the output dir as mentioned in the last command (or) unarchive the .tar.gz file in your preferred location and rename the folder
  5. Use any static site serving tools like serve (npm package) or simply python -m http.server. (We recommend using serve package)

Backend

nodejs

Source code repo

Javascript runtime built on Chrome's V8 JavaScript engine

git clone --depth=1 https://github.com/nodejs/node
cd node
./configure
mkdir out/Release
# Find out the location of the installed node binary
which node
# Copy the node binary to out/Release folder
cp node out/Release
make test-doc
cd ..
tar czf "nodejs.tar.gz" node/out/doc/api

Last tested on: 2022-04-23

Requires python and node installed.

Blockchain

Tools, projects, frameworks related to blockchain development

ethereum

Source code repo

Ethereum is a technology that's home to digital money, global payments, and applications.

git clone --depth=1 https://github.com/ethereum/ethereum-org-website
cd ethereum-org-website
npm install
npx gatsby build
cd ..
tar czf "ethereum.tar.gz" ethereum-org-website/public

Last tested on: 2022-04-15 (unable to completely build)

ethereum.org is really a very big website and statically building it will require lot of CPU resouces as well as deep node_modules folder.

hardhat

Source code repo

Ethereum development environment for professionals.

git clone --depth=1 https://github.com/NomicFoundation/hardhat
cd hardhat
yarn install
cd docs/
sh build-site.sh
cd ..
cd ..
tar czf "hardhat.tar.gz" hardhat/docs/.vuepress/dist

Last tested on: 2022-04-15

solidity

Source code repo

Solidity is an object-oriented, high-level language for implementing smart contracts. Smart contracts are programs which govern the behaviour of accounts within the Ethereum state.

git clone --depth=1 https://github.com/ethereum/solidity
cd solidity
cd docs
pip install -r requirements.txt
make html
cd ..
cd ..
tar czf "solidity.tar.gz" solidity/docs/dist/html

Direct links

Last tested on: 2022-04-19

waffle

Source code repo

The most advanced framework for testing smart contracts. Sweeter, simpler and faster.

git clone --depth=1 https://github.com/EthWorks/Waffle
cd Waffle
cd docs
pip install -r requirements.txt
make html
cd ..
cd ..
tar czf "waffle.tar.gz" Waffle/docs/dist/html

Direct links

Last tested on: 2022-04-19

Build tools

vite

Source code repo

vite: Next Generation Frontend Tooling

git clone --depth=1 https://github.com/vitejs/vite
cd vite
npm i -g pnpm
npx pnpm i --store=node_modules/.pnpm-store && npm run ci-docs
cd ..
tar czf "vite.tar.gz" vite/docs/.vitepress/dist

Last tested on: 2022-04-23

CSS frameworks/libraries

bootstrap 5

Source code repo

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.

git clone --depth=1 https://github.com/twbs/bootstrap
cd bootstrap
npm install
npm run docs-build
cd ..
tar czf "bootstrap 5.tar.gz" bootstrap/_site

Last tested on: 2022-04-23

Website of a css framework has broken css, I don't know?

daisyui

Source code repo

The most popular, free and open-source Tailwind CSS component library

git clone --depth=1 https://github.com/saadeghi/daisyui
cd daisyui
cd src/docs/
npm install
npm run build
cd ../..
cd ..
tar czf "daisyui.tar.gz" daisyui/src/docs/build

Last tested on: 2022-04-15

material ui

Source code repo

MUI offers a comprehensive suite of UI tools to help you ship new features faster.

git clone --depth=1 https://github.com/mui/material-ui/
cd material-ui
yarn
yarn docs:build && yarn docs:export
cd ..
tar czf "material ui.tar.gz" material-ui/docs/export

Last tested on: 2022-04-15

tailwindcss

Source code repo

Rapidly build modern websites without ever leaving your HTML. tailwindcss is a utility first CSS framework.

git clone --depth=1 https://github.com/tailwindlabs/tailwindcss.com
cd tailwindcss.com
yarn install
yarn export
cd ..
tar czf "tailwindcss.tar.gz" tailwindcss.com/out

Last tested on: 2022-04-15

windicss

Source code repo

Next generation utility-first CSS framework.

git clone --depth=1 https://github.com/windicss/docs
cd docs
npm install pnpm
npx pnpm i --store=node_modules/.pnpm-store
npm run build
cd ..
tar czf "windicss.tar.gz" docs/.vitepress/dist

Last tested on: 2022-04-19

Cross platform app development

Tools useful for development of crossplatform apps

React Native

Source code repo

Create native apps for Android and iOS using React

git clone --depth=1 https://github.com/facebook/react-native-website
cd react-native-website
yarn install
cd website
yarn build
cd ..
cd ..
tar czf "React Native.tar.gz" react-native=website/website/build

Last tested on: 2022-05-01

Frontend javascript frameworks/libraries

react-redux

Source code repo

Official React bindings for Redux

git clone --depth=1 https://github.com/reduxjs/react-redux
cd react-redux
cd website
npm install
npm run build
cd ..
cd ..
tar czf "react-redux.tar.gz" react-redux/website/build

Last tested on: 2022-04-30

reactjs

Source code repo

Do you really need an introduction to reactjs?

git clone --depth=1 https://github.com/reactjs/reactjs.org
cd reactjs.org
yarn install
yarn build
cd ..
tar czf "reactjs.tar.gz" reactjs.org/public

Last tested on: 2022-04-15

redux

Source code repo

Redux is a predictable state container for JavaScript apps.

git clone --depth=1 https://github.com/reduxjs/redux
cd redux
cd website
npm install
npm run build
cd ..
cd ..
tar czf "redux.tar.gz" redux/website/build

Last tested on: 2022-04-29

redux toolkit

Source code repo

The official, opinionated, batteries-included toolset for efficient Redux development.

git clone --depth=1 https://github.com/reduxjs/redux-toolkit
cd redux-toolkit
cd website
npm install
npm run build
cd ..
cd ..
tar czf "redux toolkit.tar.gz" redux-toolkit/website/build

Last tested on: 2022-04-30

vuejs V3

Source code repo

The Progressive JavaScript Framework. An approachable, performant and versatile framework for building web user interfaces.

git clone --depth=1 https://github.com/vuejs/docs
cd docs
npm i -g pnpm
npx pnpm i --store=node_modules/.pnpm-store && npm run ci-docs
cd ..
tar czf "vuejs V3.tar.gz" docs/.vitepress/dist

Last tested on: 2022-04-15

Javascript testing libraries

chaijs

Source code repo

Chai is a BDD / TDD assertion library for node and the browser that can be delightfully paired with any javascript testing framework.

git clone --depth=1 https://github.com/chaijs/chaijs.github.io
cd chaijs.github.io
npm install
gem install bundler:1.16.1
bundle --update bundler
bundle install
make generated_data
bundle exec jekyll build
cd ..
tar czf "chaijs.tar.gz" chaijs.github.io/_site

Last tested on: 2022-04-15

mochajs

Source code repo

Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser, making asynchronous testing simple and fun.

git clone --depth=1 https://github.com/mochajs/mocha
cd mocha
npm install
npm run start docs.production
cd ..
tar czf "mochajs.tar.gz" mocha/docs/_site

Last tested on: 2022-04-15

Python

All python related libraries

fastapi

Source code repo

FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.

git clone --depth=1 https://github.com/tiangolo/fastapi
cd fastapi
pip install flit
flit install --user --extras doc
sh scripts/build-docs.sh
cd ..
tar czf "fastapi.tar.gz" fastapi/site

Last tested on: 2022-04-23

pydantic

Source code repo

pydantic enforces type hints at runtime, and provides user friendly errors when data is invalid.

git clone --depth=1 https://github.com/samuelcolvin/pydantic
cd pydantic
make install-docs
# Run the following line in case of errors with 'make docs'
echo "def exec_examples(): return 0" > docs/build/exec_examples.py
make docs
cd ..
tar czf "pydantic.tar.gz" pydantic/site

Last tested on: 2022-04-23

typer

Source code repo

Typer is a library for building CLI applications that users will love using and developers will love creating. Based on Python 3.6+ type hints.

git clone --depth=1 https://github.com/tiangolo/typer
cd typer
pip install flit
flit install --user --extras doc
sh scripts/build-docs.sh
cd ..
tar czf "typer.tar.gz" typer/site

Last tested on: 2022-04-23

SSG, SSR

Frameworks like nextjs, nuxtjs used for generating static sites

Nuxtjs

Source code repo

The Intuitive Vue Framework. Build your next Vue.js application with confidence using Nuxt. An open source framework making web development simple and powerful.

git clone --depth=1 https://github.com/nuxt/nuxtjs.org
cd nuxtjs.org
yarn install
yarn build
cd ..
tar czf "Nuxtjs.tar.gz" nuxtjs.org/dist

Last tested on: 2022-04-29

Due to the file name restrictions on windows, the build may not work properly with client side hydration. Disable the javascript for best experience.

Nuxtjs V3

Source code repo

The Intuitive Vue Framework. Build your next Vue.js application with confidence using Nuxt. An open source framework making web development simple and powerful.

git clone --depth=1 https://github.com/nuxt/framework
cd framework
cd docs
yarn install
yarn build:ci
cd ..
cd ..
tar czf "Nuxtjs V3.tar.gz" framework/docs/dist

Last tested on: 2022-04-29

Due to the file name restrictions on windows, the build may not work properly with client side hydration. Disable the javascript for best experience.

Other

All other uncategorized tools

eslint

Source code repo

Find and fix problems in your JavaScript code

git clone --depth=1 https://github.com/eslint/website
cd website
npm install
npm run build
cd ..
tar czf "eslint.tar.gz" website/_site

Last tested on: 2022-04-15

prettier

Source code repo

Opinionated code formatter

git clone --depth=1 https://github.com/prettier/prettier
cd prettier
yarn install
yarn build:website
cd ..
tar czf "prettier.tar.gz" prettier/website/build

Last tested on: 2022-04-23

typescript

Source code repo

TypeScript is JavaScript with syntax for types.

git clone --depth=1 https://github.com/microsoft/TypeScript-Website
cd TypeScript-Website
yarn install
yarn bootstrap
yarn build-site
cd ..
tar czf "typescript.tar.gz" TypeScript-Website/docs/build

Last tested on: 2022-04-23

Requires node >=13 and node < 15 for building


Todo

  • Auto update of README.md on push to main
  • Mozilla Developer Network

Visit my blog for latest articles related to web development https://naveennamani.github.io/blog and for projects like this.

Follow me on dev.to/naveennamani.

© Naveen Namani

You might also like...

A set of scripts to test markdown processing speeds in various site generators/frameworks

bench-framework-markdown A set of scripts to test markdown processing speeds in various site generators/frameworks. Read the blog post: Which Generato

Nov 3, 2022

Minimal versions of popular analytics libraries. Reduce the impact of third-party scripts on your application.

minimal-analytics This project aims to provide minimal implementations of popular analytics libraries. It's aimed at users who want to reduce the impa

Dec 25, 2022

Tasty is a website that displays a number of recipes and allows users to leave likes and comments on their favourite meals.

Tasty is a website that displays a number of recipes and allows users to leave likes and comments on their favourite meals.

Tasty Tasty is a website that displays a number of recipes and allows users to leave likes and comments on their favourite meals. Requirements Build a

Aug 3, 2022

Music World is web3 app built over Solana where anyone can add their favourite songs and see the other songs that are added by different people from around the globe.

💥 Introduction Music World is web3 app built over Solana where anyone can add their favourite songs and see the other songs that are added by differe

Jun 10, 2022

Easiest way to build documentation for your project. No config or build required, hosted on @netlify.

Easiest way to build documentation for your project. No config or build required, hosted on @netlify.

Hyperdocs is the simplest way you can create documentation for your project. It blends the best of all the other documentation tools in one. Hyperdocs

Dec 22, 2022

JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.

JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.

JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.

Jan 4, 2023

With this plugin, you can easily make a stopwatch or timer on your site. Just init, style and enjoy.

TimezZ With this plugin, you can easily make a stopwatch or timer on your site. Just init, style and enjoy. Features Typescript support Support all en

Dec 5, 2022

This project is written in JavaScript with minimal npm scripts and commands

This is an Educational repository, for learning how to install and implement the Webpack, Webpack-CLI and the Webpack-dev-server for a project. This project is written in Javascript with minimal npm scripts and commands. It is a minimal implementation of a To Do list application.

Sep 23, 2022

To-do list" is a tool that helps to organize your day. It simply lists the things that you need to do and allows you to mark them as complete. I build a simple website that allows for doing that, and I do it using ES6 and Webpack!

To-do list

Project Name : TO-Do list "To-do list" is a tool that helps to organize your day. It simply lists the things that you need to do and allows you to mar

Aug 22, 2022
Comments
  • Hacktoberfest 2022

    Hacktoberfest 2022

    For contributing to this project, please check the following dev.to post

    https://dev.to/naveennamani/hacktoberfest-lets-contribute-to-my-project-offline-docs-60j

    opened by naveennamani 3
  • Tailwindcss doc can't yarn install

    Tailwindcss doc can't yarn install

    Thanks to the tutorial about offline documentation. But, i want to install tailwindcss offline doc, but this error can stop me to the next step.

    1. git clone https://github.com/tailwindlabs/tailwindcss.com.git
    2. cd tailwindcss.com/
    3. code .
    4. yarn install =============== STOP ============== build failed

    my version node,js, python node = v16.14.2 node-gyp = v8.4.1 python = 3.10.5

    The error like this : $ yarn install yarn install v1.22.15 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... [2/4] Fetching packages... info @next/[email protected]: The platform "win32" is incompatible with this module. info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info @next/[email protected]: The CPU architecture "x64" is incompatible with this module. info @next/[email protected]: The platform "win32" is incompatible with this module. info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info @next/[email protected]: The platform "win32" is incompatible with this module. info "@next/[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @docsearch/[email protected]" has unmet peer dependency "@types/react@>= 16.8.0 < 19.0.0". warning " > @next/[email protected]" has unmet peer dependency "@mdx-js/react@*". warning " > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0". warning " > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0". warning "@reach/rect > @reach/[email protected]" has incorrect peer dependency "react@^16.8.0". warning "@reach/rect > @reach/[email protected]" has incorrect peer dependency "react-dom@^16.8.0". warning "next > styled-jsx > @babel/[email protected]" has unmet peer dependency "@babel/core@^7.0.0-0". warning " > [email protected]" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0". warning "@typescript-eslint/eslint-plugin > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta". [4/4] Building fresh packages... error D:\PELATIHAN\tailwindcss.com\node_modules\deasync: Command failed. Exit code: 1 Command: node ./build.js Arguments: Directory: D:\PELATIHAN\tailwindcss.com\node_modules\deasync Output: D:\PELATIHAN\tailwindcss.com\node_modules\deasync>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info find Python using Python version 3.10.5 found at "C:\Users\Ansharullah\AppData\Local\Programs\Python\Python310\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8 gyp ERR! find VS gyp ERR! find VS ************************************************************** gyp ERR! find VS You need to install the latest version of Visual Studio gyp ERR! find VS including the "Desktop development with C++" workload. gyp ERR! find VS For more information consult the documentation at: gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows gyp ERR! find VS ************************************************************** gyp ERR! find VS gyp ERR! configure error gyp ERR! stack Error: Could not find any Visual Studio installation to use gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5) gyp ERR! stack at ChildProcess.emit (node:events:526:28) gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) gyp ERR! System Windows_NT 10.0.19044 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd D:\PELATIHAN\tailwindcss.com\node_modules\deasync gyp ERR! node -v v16.14.2 gyp ERR! node-gyp -v v8.4.1 gyp ERR! not ok Build failed info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

    opened by ansharw 2
  • add: material ng doc script generator

    add: material ng doc script generator

    (As second try hehe)

    Hello!! Are you fine?

    Pulling a material ng scripting file at this time.

    it was based on reactjs scripting I hope to be correct for now.

    hacktoberfest-accepted 
    opened by Nogueira-lucas 1
Copy/paste detecting GitHub Action for programming source code (jscpd)

dry-code Copy/paste detecting GitHub Action for programming source code with jscpd Action inputs Action input Description Default Value Required optio

null 5 Dec 14, 2022
4WEB is a collection & creation of codebase, frameworks, libraries and various resources dedicated to web development 📦🌐

?? Vous pouvez également contribuer à ajouter/créer votre propre collection dans ce référentiel ... Table des matières ?? Codebase ?? NPM packages ??

Raja Rakotonirina 5 Nov 14, 2022
4Web is a collection&creation of codebase, frameworks, libraries dedicated to web development 📦

?? You can also contribute to add / create your own collection in this repository Collection name Description ?? blinke

Raja Rakotonirina 5 Nov 14, 2022
tooldb is a (soon) massive collection of frameworks and tools. It's build on Flowbite, Next.js, Tailwind CSS and uses Supabase.

tooldb is a (soon) massive collection of frameworks and tools. It's build on Flowbite, Next.js, Tailwind CSS and uses Supabase.

Julian Yaman 12 Jul 14, 2022
Grupprojekt för kurserna 'Javascript med Ramverk' och 'Agil Utveckling'

JavaScript-med-Ramverk-Laboration-3 Grupprojektet för kurserna Javascript med Ramverk och Agil Utveckling. Utvecklingsguide För information om hur utv

Svante Jonsson IT-Högskolan 3 May 18, 2022
Hemsida för personer i Sverige som kan och vill erbjuda boende till människor på flykt

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

null 4 May 3, 2022
Kurs-repo för kursen Webbserver och Databaser

Webbserver och databaser This repository is meant for CME students to access exercises and codealongs that happen throughout the course. I hope you wi

null 14 Jan 3, 2023
An ongoing curated list of frameworks, books, articles, talks, screencasts, recordings, libraries, learning tutorials and shiny resources about Javascript Development.

Javascript Frameworks Development Welcome to the world of Javascript Frameworks. An ongoing curated list of frameworks, books, articles, talks, screen

Paul Veillard 3 Jul 31, 2022
Mini projects built with HTML5, CSS & JavaScript. No frameworks or libraries

20+ Web Projects With Vanilla JavaScript This is the main repository for all of the projects in the course. Course Link Course Info Website # Project

Brad Traversy 14.1k Jan 4, 2023
"Jira Search Helper" is a project to search more detail view and support highlight than original jira search

Jira Search Helper What is Jira Search Helper? "Jira Search Helper" is a project to search more detail view and support highlight than original jira s

null 41 Dec 23, 2022