家政服务如何提升家庭生活质量与幸福感
778
2022-10-28
Documentation - Rails引擎提供文档添加到Rails应用程序的功能
Documentation
Documentation is a Rails engine which provides a complete system for managing a set of hierarchical documentation. Once installed in an application, you'll have a complete user interface for viewing as well as editing a set of markdown pages.
Installation
To get started, you need to add Documentation to your Gemfile and run bundle.
gem 'documentation', '~> 1.0.0'
Next, you'll need to run the setup generator which will add a route to your config/routes.rb file for the Documentation interface.
bundle exec rails generate documentation:setup
You now need to populate your database schema and load the initial documentation pages.
bundle exec rake db:migrate documentation:install_guides
Once this is done, you can go ahead and start up your Rails application and browse to /docs to view your documentation system.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~