mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Add redirect for /styleguide
Adds a development-only route for `/styleguide` as an alias to `/assets/styleguide.html`.
This commit is contained in:
@@ -573,4 +573,9 @@ OpenProject::Application.routes.draw do
|
||||
get '/robots' => 'homescreen#robots', defaults: { format: :txt }
|
||||
|
||||
root to: 'account#login'
|
||||
|
||||
# Development route for styleguide
|
||||
if Rails.env.development?
|
||||
get '/styleguide' => redirect('/assets/styleguide.html')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -37,4 +37,4 @@ On the Rails side, both frameworks are included as gems - see the `./Gemfile` -
|
||||
|
||||
## Living Styleguide
|
||||
|
||||
The styleguide is rendered as part of the Rails stack at `/assets/styleguide.html`. Please see [their GitHub](https://github.com/livingstyleguide/livingstyleguide) for more information.
|
||||
The styleguide is rendered as part of the Rails stack at `/styleguide` (`RAILS_ENV=development` only). Please see [their GitHub](https://github.com/livingstyleguide/livingstyleguide) for more information.
|
||||
|
||||
@@ -8,7 +8,7 @@ once webpack has completed.
|
||||
|
||||
## Living Style Guide
|
||||
|
||||
The style guide is available as part of the Rails development server at: <http://localhost:5000/assets/styleguide.html>.
|
||||
The style guide is available as part of the Rails development server at: <http://localhost:5000/styleguide>.
|
||||
|
||||
## Changing or updating Dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user