39,615
stars
+2
2,654
forks
685
watchers
1,437
prs
1,289
issues
0
releases
0
discussions
README
DevDocs — API Documentation Browser DevDocs combines multiple developer documentations in a clean and organized web UI with instant search, offline support, mobile version, dark theme, keyboard shortcuts, and more. DevDocs was created by Thibaut Courouble and is operated by freeCodeCamp. We are currently searching for maintainers Please reach out to the community on Discord if you would like to join the team! Keep track of development news: Join the contributors chat room on Discord Watch the repository on GitHub Table of Contents: Quick Start · Vision · App · Scraper · Commands · Contributing · Documentation · Related Projects · License · Questions? Quick Start Unless you wish to contribute to the project, we recommend using the hosted version at devdocs.io. It's up-to-date and works offline out-of-the-box. Using Docker (Recommended) The easiest way to run DevDocs locally is using Docker: sh docker run --name devdocs -d -p 9292:9292 ghcr.io/freecodecamp/devdocs:latest This will start DevDocs at localhost:9292. We provide both regular and Alpine-based images: - ghcr.io/freecodecamp/devdocs:latest - Standard image - ghcr.io/freecodecamp/devdocs:latest-alpine - Alpine-based (smaller size) Images are automatically built and updated monthly with the latest documentation. Alternatively, you can build the image yourself: sh git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs docker build -t devdocs . docker run --name devdocs -d -p 9292:9292 devdocs Manual Installation DevDocs is made of two pieces: a Ruby scraper that generates the documentation and metadata, and a JavaScript app powered by a small Sinatra app. DevDocs requires Ruby 4.0.9 (defined in Gemfile), libcurl, webp, bsdtar (included in macOS, the libarchive-tools package on Debian and Alpine), and a JavaScript runtime supported by ExecJS (included in OS X and Windows; Node.js on Linux). On Arch Linux run pacman -S ruby ruby-bundler ruby-erb ruby-irb. Once you have these installed, run the following commands: sh git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs gem install bundler bundle install bundle exec thor docs:download --default bundle exec rackup Finally, point your browser at localhost:9292 (the first request will take a few seconds to compile the assets). You're all set. The thor docs:download command is used to download pre-generated documentations from DevDocs's servers (e.g. thor docs:download html css). You can see the list of available documentations and versions by running thor docs:list. To update all downloaded documentations, run thor docs:download --installed. To download and install all documentation this project has available, run thor docs:download --all. Note: there is currently no update mechanism other than git pull origin main to update the code and thor docs:download --installed to download the latest version of the docs. To stay informed about new releases, be sure to watch this repository. Vision
Top issues
#6Current page's table of contents21 comments · 2013-10-28#584 Although your browser supports IndexedDB, DevDocs couldn't open the database.18 comments · 2017-02-16#728Add preference to hide announcements/reload-to-update notifications12 comments · 2017-11-27#234Intercept links to known documentation10 comments · 2015-07-15#1895Cannot download documentation offline9 comments · 2022-12-21#1396C++ docs: link not correctly extracted8 comments · 2020-12-02#725[Chrome] Cannot import config file in Chrome on Win108 comments · 2017-11-25#1752Add docs for mc-stan.org7 comments · 2022-05-17