Skip to content

Commit

Permalink
Vendor: white-label context (platformsh#3425)
Browse files Browse the repository at this point in the history
* Add a beta sign-up CTA.

* Complete vendorization for Upsun alongside announcement.

* Retain a redirect until fully registered.

* Update sites/friday/config/_default/params.yaml
  • Loading branch information
chadwcarlson authored Sep 12, 2023
1 parent 9e9e5f8 commit b8fc647
Show file tree
Hide file tree
Showing 13 changed files with 198 additions and 56 deletions.
8 changes: 6 additions & 2 deletions .platform/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,15 @@ https://{default}/:
upstream: "search:http"
id: "search"

https://docs.deployfriday.net/:
https://docs.upsun.com/:
type: upstream
upstream: friday:http
id: friday
cache:
enabled: true
ssi:
enabled: false
enabled: false

"https://docs.deployfriday.net/":
type: redirect
to: "https://docs.upsun.com/"
11 changes: 7 additions & 4 deletions sites/friday/config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Basics
baseURL: /
title: Deploy Friday Docs
author: Deploy Friday
description: Deploy Friday User Documentation
title: Upsun documentation
author: Upsun
description: Upsun User Documentation

# Themes
theme: psh-docs
Expand All @@ -19,7 +19,7 @@ languages:

disableKinds: ["taxonomy", "taxonomyTerm"]

baseURL: "https://docs.deploy-friday.net"
baseURL: "https://docs.upsun.com"

summaryLength: 3

Expand Down Expand Up @@ -55,6 +55,7 @@ module:
excludeFiles:
- "registry/*"
- "get-started/*"
- "learn/resources.md"
lang: "en"

- source: "../platform/static/images"
Expand All @@ -68,6 +69,8 @@ module:

- source: "src"
target: "content"
- source: "static/images"
target: "static/images"



Expand Down
68 changes: 37 additions & 31 deletions sites/friday/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,51 +14,57 @@ theme:

# Vendorization
vendor:
name: Deploy Friday
cli: friday
env_prefix: FRIDAY
name: Upsun
cli: upsun
env_prefix: PLATFORM
recruit:
active: true
link: https://upsun.com/register/
cta: Sign up for early access
title: Upsun Beta access
description: "Platform.sh will soon open up early access to test and provide feedback for our newest offering - <a href=\"https://upsun.com/blog/upsun-origin-story/\">Upsun</a>.<br/><br/>You can register for the beta by clicking here and completing the form.<br/><br/>"
config:
version: 2
dir: .friday
dir: .upsun
files:
routes: .friday/config.yaml
services: .friday/config.yaml
app: .friday/config.yaml
apps: .friday/config.yaml
routes: .upsun/config.yaml
services: .upsun/config.yaml
app: .upsun/config.yaml
apps: .upsun/config.yaml
prefix:
apps: applications
services: services
routes: routes
urls:
main: https://deployfriday.net/
docs: https://docs.deployfriday.net/
support: https://support.deployfriday.net/
sales: https://deployfriday.net/contact
console: https://console.deployfriday.net/
api: https://api.deployfriday.net/
main: https://upsun.com
docs: https://docs.upsun.com
support: https://support.upsun.com
sales: https://upsun.com/contact
console: https://console.upsun.com/
api: https://proxy.upsun.com/

# Images (kept in static/)
logo: "images/logo.svg"
logolinksto: "https://deployfriday.net"
logoAlt: "Deploy Friday"
favicon: "images/logos/favicon.ico"
logolinksto: "https://upsun.com"
logoAlt: "Upsun"
favicon: "images/favicon-32x32.png"

gtm: "GTM-KRPJGT4"

# Actions in main header
headerActions:
headerActionPrimary:
destination: https://auth.api.platform.sh/register
linkText: Free trial
destination: https://upsun.com/register/
linkText: Sign up for early access
headerActionSecondary:
destination: https://console.platform.sh/
destination: https://console.upsun.com/
linkText: Log in

# Search
rank: 1
site: docs
# Don't include trailing slash. It's just easier that way.
rooturl: "https://docs.deployfriday.net"
rooturl: "https://docs.upsun.com"

# 404
_404:
Expand Down Expand Up @@ -87,22 +93,22 @@ navSections:
nonDocsSections:
apidocs:
title: API Documentation
link: https://api.platform.sh/docs
link: https://proxy.upsun.com/docs
weight: -80

# Metadata
meta:
sitename: "Deploy Friday User Documentation"
description: Deploy Friday is a second-generation Platform-as-a-Service built especially for continuous deployment. It allows you to host web applications on the cloud while making your development and testing workflows more productive.
image: "https://docs.deployfriday.net/images/logos/docs_social_2021.jpg"
url: "https://docs.deployfriday.net"
sitename: "Upsun User Documentation"
description: Upsun is a second-generation Platform-as-a-Service built especially for continuous deployment. It allows you to host web applications on the cloud while making your development and testing workflows more productive.
image: "https://docs.upsun.com/images/logos/docs_social_2021.jpg"
url: "https://docs.upsun.com"
twittercard:
card: "summary_large_image"
site: "@deployfriday"
title: "Deploy Friday User Documentation"
description: "Deploy Friday is a second-generation Platform-as-a-Service built especially for continuous deployment. It allows you to host web applications on the cloud while making your development and testing workflows more productive."
creator: "@deployfriday"
image: "https://docs.deployfriday.net/images/logos/docs_social_2021.jpg"
site: "@upsuncom"
title: "Upsun User Documentation"
description: "Upsun is a second-generation Platform-as-a-Service built especially for continuous deployment. It allows you to host web applications on the cloud while making your development and testing workflows more productive."
creator: "@upsuncom"
image: "https://docs.upsun.com/images/logos/docs_social_2021.jpg"
keywords:
- PaaS
- cloud hosting
Expand Down
22 changes: 11 additions & 11 deletions sites/friday/layouts/shortcodes/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ <h1>{{ .Site.Title }}</h1>
}

.start-cta {
/* color: white !important; */
color: #191C1E !important;
color: white !important;
/* color: #191C1E !important; */
text-decoration: none !important;
font-size: 16px !important;
font-weight: 700 !important;
letter-spacing: 0.48px !important;
/* background: #6046FF !important; */
background: #FFBDBB!important;
background: #6046FF !important;
/* background: #FFBDBB!important; */
padding: 10px 16px !important;
margin-right: 1rem;
border-radius: 0px !important;
/* border-radius: 80px !important; */
border-radius: 80px !important;
}
.start-cta:hover {
/* background: #4D38CC !important; */
background: #FF9F9F !important;
color: #191C1E !important;
/* color: white !important; */
background: #4D38CC !important;
/* background: #FF9F9F !important; */
/* color: #191C1E !important; */
color: white !important;
}

.info-cta {
Expand All @@ -64,8 +64,8 @@ <h1>{{ .Site.Title }}</h1>
letter-spacing: 0.48px !important;
background: white !important;
padding: 10px 16px !important;
/* border-radius: 80px !important; */
border-radius: 0px !important;
border-radius: 80px !important;
/* border-radius: 0px !important; */
border: 2px solid #191C1E;
border-color: #191C1E !important;
}
Expand Down
Binary file added sites/friday/static/images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions sites/friday/static/images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b8fc647

Please sign in to comment.