-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from CDRH/release/3.0.0
Release 3.0.0
- Loading branch information
Showing
79 changed files
with
2,972 additions
and
621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
ruby-2.5.1 | ||
|
||
ruby-2.6.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# Orchid | ||
|
||
Orchid is a generator which can be used to create a new CDRH API template site. The new site can either connect to the entire API's contents or filter by "type," meaning that the new site can be used for a specific collection. | ||
|
||
**Orchid Documentation can be found [in our documentation repository](https://github.com/CDRH/sneezewort/blob/master/docs/orchid/README.md)** | ||
|
||
**Documentation for entire publishing system can be found here: ([https://github.com/CDRH/sneezewort](https://github.com/CDRH/sneezewort))** | ||
|
||
Documentation on migration can be found [on the Migration page](migration.md) | ||
Orchid is a multi-lingual Rails engine which handles common functionality across | ||
Rails apps which rely on the CDRH API. It includes a generator for configuring | ||
new Rails apps, which can primarily connect to the endpoint for the entire API's | ||
contents, or connect to an endpoint that only searches a specific collection's | ||
contents. Apps can also configure additional "sections" which use independent | ||
API configurations and search filtering UI, as well as the ability to granularly | ||
overrides templates without the need to copy or create additional Rails | ||
controllers. | ||
|
||
**[Orchid Documentation](docs/README.md)** | ||
|
||
[Migration instructions](migration.md) are provided for upgrading after new | ||
releases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
// Compatible with Sprockets 3.x defaults to avoid breaking existing apps | ||
// https://github.com/rails/sprockets/blob/master/UPGRADING.md#manifestjs | ||
//= link_tree ../images | ||
//= link_directory ../javascripts .js | ||
//= link_directory ../stylesheets .css | ||
//= link application.css | ||
//= link application.js | ||
|
||
// Orchid engine's manifest: orchid/app/assets/config/orchid/manifest.js | ||
//= link orchid/manifest.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Declare Orchid's assets for auto and pre-compilation | ||
// which can't be declared with portable relative paths from the generated app | ||
//= link_tree ../../images/orchid | ||
//= link_tree ../../javascripts/orchid .js | ||
//= link_tree ../../stylesheets/orchid .css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
class ErrorsController < ApplicationController | ||
|
||
def not_found | ||
render :status => 404 | ||
render(status: 404) | ||
end | ||
|
||
def server_error | ||
render :status => 500 | ||
render(status: 500) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
class GeneralController < ApplicationController | ||
def about | ||
@title = t "about.title" | ||
render_overridable("general", "about") | ||
end | ||
|
||
def index | ||
render_overridable("general", "index") | ||
end | ||
end |
Oops, something went wrong.