简体   繁体   中英

How do you install Slate in an existing Rails app?

I'd like to install Slate (API docs) in an existing Rails app and hopefully without running middleman. Are there tutorials on how to do this?

You can't "install" it. What you can do is run bundle exec middleman build --clean within the slate repo, then take the generated static files from the build directory and copy them to a Rails repo (the public folder), where you can then deploy them and set routes to them in routes.rb .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM