|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|Devdocs||31,553||6 days ago||167||mpl-2.0||Ruby|
|API Documentation Browser|
|Redoc||20,229||112||68||11 days ago||217||September 13, 2022||426||mit||TypeScript|
|📘 OpenAPI/Swagger-generated API Reference Documentation|
|Zeal||10,313||a month ago||186||gpl-3.0||C++|
|Offline documentation browser inspired by Dash|
|Pdoc||1,547||144||53||4 days ago||88||June 08, 2022||16||unlicense||Python|
|API Documentation for Python Projects|
|Pdoc||913||45||72||6 months ago||34||August 03, 2021||114||agpl-3.0||Python|
|:snake: :arrow_right: :scroll: Auto-generate API documentation for Python projects|
|Pydoc Markdown||405||54||32||9 days ago||55||March 13, 2022||19||other||Python|
|Create Python API documentation in Markdown format.|
|A documentation theme for the Hexo blog framework|
|🧑💻 Developer Docs builder. Write guides in Markdown and references in API Blueprint. Comes with a built-in search engine.|
|Apicat||120||8 hours ago||mit||Vue|
|ApiCat is an API development tool based on AI technology. It analyzes and identifies API requirements input by users, and automatically generates corresponding API documents and codes to help developers develop APIs more quickly and efficiently.|
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.
Please reach out to the community on Discord if you would like to join the team!
Keep track of development news:
Table of Contents: Quick Start Vision App Scraper Commands Contributing Documentation Related Projects License Questions?
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.
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.
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.
Alternatively, DevDocs may be started as a Docker container:
# First, build the image git clone https://github.com/freeCodeCamp/devdocs.git && cd devdocs docker build -t thibaut/devdocs . # Finally, start a DevDocs container (access http://localhost:9292) docker run --name devdocs -d -p 9292:9292 thibaut/devdocs
DevDocs aims to make reading and searching reference documentation fast, easy and enjoyable.
The app's main goals are to:
Note: DevDocs is neither a programming guide nor a search engine. All our content is pulled from third-party sources and the project doesn't intend to compete with full-text search engines. Its backbone is metadata; each piece of content is identified by a unique, "obvious" and short string. Tutorials, guides and other content that don't meet this requirement are outside the scope of the project.
Many of the code's design decisions were driven by the fact that the app uses XHR to load content directly into the main frame. This includes stripping the original documents of most of their HTML markup (e.g. scripts and stylesheets) to avoid polluting the main frame, and prefixing all CSS class names with an underscore to prevent conflicts.
Another driving factor is performance and the fact that everything happens in the browser. A service worker (which comes with its own set of constraints) and
localStorage are used to speed up the boot time, while memory consumption is kept in check by allowing the user to pick his/her own set of documentations. The search algorithm is kept simple because it needs to be fast even searching through 100,000 strings.
DevDocs being a developer tool, the browser requirements are high:
This allows the code to take advantage of the latest DOM and HTML5 APIs and make developing DevDocs a lot more fun!
The scraper is responsible for generating the documentation and index files (metadata) used by the app. It's written in Ruby under the
There are currently two kinds of scrapers:
UrlScraper which downloads files via HTTP and
FileScraper which reads them from the local filesystem. They both make copies of HTML documents, recursively following links that match a set of rules and applying all sorts of modifications along the way, in addition to building an index of the files and their metadata. Documents are parsed using Nokogiri.
Modifications made to each document include:
<head>, etc.), comments, empty nodes, etc.
These modifications are applied via a set of filters using the HTML::Pipeline library. Each scraper includes filters specific to itself, one of which is tasked with figuring out the pages' metadata.
The end result is a set of normalized HTML partials and two JSON files (index + offline data). Because the index files are loaded separately by the app following the user's preferences, the scraper also creates a JSON manifest file containing information about the documentations currently available on the system (such as their name, version, update date, etc.).
More information about scrapers and filters is available in the
The command-line interface uses Thor. To see all commands and options, run
thor list from the project's root.
# Server rackup # Start the server (ctrl+c to stop) rackup --help # List server options # Docs thor docs:list # List available documentations thor docs:download # Download one or more documentations thor docs:manifest # Create the manifest file used by the app thor docs:generate # Generate/scrape a documentation thor docs:page # Generate/scrape a documentation page thor docs:package # Package a documentation for use with docs:download thor docs:clean # Delete documentation packages # Console thor console # Start a REPL thor console:docs # Start a REPL in the "Docs" module # Tests can be run quickly from within the console using the "test" command. # Run "help test" for usage instructions. thor test:all # Run all tests thor test:docs # Run "Docs" tests thor test:app # Run "App" tests # Assets thor assets:compile # Compile assets (not required in development mode) thor assets:clean # Clean old assets
If multiple versions of Ruby are installed on your system, commands must be run through
Contributions are welcome. Please read the contributing guidelines.
Made something cool? Feel free to open a PR to add a new row to this table! You might want to discover new projects via topics/devdocs.
|naquad/devdocs-shell||GTK shell with Vim integration|
|Sublime Text plugin||Sublime Text plugin|
|mohamed3nan/DevDocs-Tab||VS Code extension (view as tab)|
|deibit/vscode-devdocs||VS Code extension (open the browser)|
|mdh34/quickDocs||Vala/Python based viewer|
Copyright 20132023 Thibaut Courouble and other contributors
This software is licensed under the terms of the Mozilla Public License v2.0. See the COPYRIGHT and LICENSE files.
Please do not use the name DevDocs to endorse or promote products derived from this software without the maintainers' permission, except as may be necessary to comply with the notice/attribution requirements.
We also wish that any documentation file generated using this software be attributed to DevDocs. Let's be fair to all contributors by giving credit where credit's due. Thanks!
If you have any questions, please feel free to ask them on the contributor chat room on Discord.