Documentation - Rails引擎提供文档添加到Rails应用程序的功能

网友投稿 778 2022-10-28

Documentation - Rails引擎提供文档添加到Rails应用程序的功能

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小时内删除侵权内容。

上一篇:Spring Security实现自定义访问策略
下一篇:SSM框架(spring+springmvc+mybatis)+Mysql实现的高校运动会管理系统(角色分为管理员和普通用户 功能包含普通学生老师参赛、开幕广播信息查看、管理员广播器材用户赛事管理等)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~