-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate from subdomain to www.clever-cloud.com/developers (#429)
## Describe your PR - [**PREVIEW**](https://documentation-pr-429.cleverapps.io/developers/) - [**PREVIEW**](https://stagingv6.cleverapps.io/developers) with cc staging website GitHub Action executes the workflow from the base branch, which won't be changed for security reasons. Hence, preview links in the comments aren't accurate, but the preview is accessible from `previw-link`/`developers`. ## Main changes Instead of hosting the static files in `/public`, they're hosted in `/public/developers` to create a route that will allow us to perform path routing from `www.clever-cloud.com`. Final domain for the doc should become `www.clever-cloud.com/developers`. For this reason, it's been opted in the following cases: - When the shortcode was already in use - When the path contained +3 levels (error prone) ### Considerations Replacing markdown links by Hugo links: `[value](link]` => `[value]({{< ref "file" >}})` gives more freedom to keep moving files and restructured as needed in the future, but anchors the doc in Hugo. If we want to change the stack in the future, we'll need to modify every link. ### Locations where the paths have been reworked/checked in `/content`: - [x] **doc** - [x] `/doc/*` - [x] `guides/*` - [x] **shortcodes** (`/layouts/shortcodes/content`) - [x] `/doc/*` - [x] `guides/*` - [x] **specific languages** (`/layouts/shortcodes/content/language-specific-deploy`) - [x] `/doc/*` - [x] `guides/*` - [x] **guides** - [x] `/doc/**` - [x] `guides/*` - [x] **changelog** - [x] `/doc/*` - [x] `guides/*` ## Checklist - [x] My PR is related to an opened issue : not indicated in the project, but coming from internal request. - [x] I've read the [contributing guidelines](/CleverCloud/documentation/blob/main/CONTRIBUTING.md) ### Tasks **before** merge - [x] Add to Ahrefs - [x] Fix 404 after Ahrefs audit - [x] Create prefix routing on prod app - [x] Redirect `developers.clever-cloud.com` => `www.clever-cloud.com/developers` - [x] Update GitHub action domain ### Tasks **after** merge - [ ] Delete `developers.clever-cloud.com` from prod app ## Reviewers _Who should review these changes?_ @
- Loading branch information
Showing
118 changed files
with
636 additions
and
466 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
- name: Manage review app | ||
uses: CleverCloud/[email protected].0 | ||
uses: CleverCloud/[email protected].1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }} | ||
|
@@ -34,7 +34,9 @@ jobs: | |
GH_HEXTRA_VERSION: 'v0.8.4' | ||
GH_HUGO_ENV: 'production' | ||
GH_HUGO_VERSION: '0.135.0' | ||
|
||
with: | ||
type: 'static-apache' | ||
set-env: true | ||
environment: 'review' | ||
domain: '${{ github.event.pull_request.base.repo.name }}-PR-${{ github.event.number }}.cleverapps.io/developers' |
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,6 +1,5 @@ | ||
.DS_Store | ||
.idea | ||
/public/* | ||
/public/developers/* | ||
/resources | ||
.clever.json | ||
.vale.ini | ||
|
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
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
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
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
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
Oops, something went wrong.