-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change the index page? #69
Comments
The public website content comes from the api-umbrella-static-site repo. In the development setup this will be checked out in the This uses middleman as a static site generator. The general idea is that you can host the site on GitHub Pages, or any other static HTML hosting location (S3 bucket, etc). The website content is inside the However, if you'd like to use something besides Middleman for your website content, you can do that instead. This functionality isn't totally flushed out, but to start you would modify the static_site:
host: 127.0.0.1
port: 8080 This same proxying configuration would also be used if you wanted to host things on github pages. The one major caveat with either approach (using Middleman or some other CMS of your choosing), is that you'll currently face some hurdles in customizing the site if you want to introduce new webpage content. One of the first things the stack does when accepting an incoming request is determine where to send the request (is the request for an API, or for the admin tool, or for the website?). Right now, we have a hard-coded list of URL prefixes that we route to this public website content. This consists of paths like the home page or In the meantime, there's a couple quick and dirty options:
Neither approach is really ideal, but they might allow you start playing around in the near-term. And as I mentioned, this issue is definitely something we're looking to fix soon-ish. |
Issue #56 mentions that the existing /terms page does not exist. It seems like Umbrella may need some basic functionality for content management for a number of use cases. E.g.
|
Created administration guide based on #69
Specifically, what file/folder do we edit to change the static front page? I.e. on production, from where are the static files served? |
I found a couple of locations with the following command:
If we change the .erb file, how do we trigger a build of the site? Can we just edit the |
Well, this is absurdly belated (sorry!), but here's finally some documentation on how to configure website backends: https://api-umbrella.readthedocs.io/en/latest/admin/website-backends.html Website backends were originally added in the v0.8.0 release (released on 2015-04-26) as a way to make all this easier:
|
Well, this feature request pretty much spawned the APInf project, so "water under the bridge". In a somewhat funny twist, we are currently working on/planning features in APInf that allow admin users to customize the front page. 😆 |
Story
As an API Umbrella administrator
I would like to change the appearance of the portal front page
So that I can add specific colors, text, images, and other details for our particular instance
Specifics
We have a designer who has created a bootstrap template that we would like to use as our portal page. Where do we put this template so that it will be displayed instead of the default API Umbrella page? What file do we edit if we want to change the default API Umbrella page?
The text was updated successfully, but these errors were encountered: