DevDocsAPI 文檔瀏覽器
DevDocs 集合了多個(gè)開(kāi)發(fā)者文檔到一個(gè)簡(jiǎn)潔的 Web 界面中,提供即時(shí)搜索、離線瀏覽和移動(dòng)設(shè)備支持,提供黑暗模式,鍵盤(pán)快捷鍵等等特性。同時(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
主要命令:
# 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 Note: tests can be run quickly from within the console using the "test" command. Run "help test" for usage instructions. # Tests 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
評(píng)論
圖片
表情
