You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,36 @@ Production is hosted on Netlify, and is built from the `main` branch. The build
115
115
116
116
Review builds are automatically created for pull requests. These builds are created by Heroku, and only include advocacy content, no other sources.
117
117
118
+
## Redirects
119
+
120
+
The app is concerned with two different types of redirects that can be defined in frontmatter.
121
+
122
+
### Internal Redirects (within Docs 2.0)
123
+
124
+
#### `redirects`
125
+
126
+
The `redirects` frontmatter is to be used for redirects internal to Docs. For example, if you had a file `great_file.mdx` with this following frontmatter...
127
+
128
+
```yaml
129
+
redirects:
130
+
- '/old_path'
131
+
- '/another_old_path'
132
+
```
133
+
134
+
both `/old_path` and `/another_old_path` would redirect to `great_file.mdx`'s current path. This is perfect for setting up redirects when moving a file around within Docs. Redirects created with `redirects` are permanent (301).
135
+
136
+
### Docs 1.0 to Docs 2.0 redirects
137
+
138
+
This app builds a list of nginx style redirects that are loaded into a separate server. These redirects direct users from links to the old docs site, to the appropriate page on the new docs site.
139
+
140
+
#### `legacyRedirectsGenerated`
141
+
142
+
This frontmatter is an automatically generated list of redirects for Docs 1.0 to Docs 2.0 (this repo). These redirects are built by `scripts/legacy_redirects/add_legecy_redirects.py`, and **should not be manually edited**.
143
+
144
+
#### `legacyRedirects`
145
+
146
+
If you need to setup a redirect from Docs 1.0 to Docs 2.0 manually, this is the place to do it. If the `legacyRedirectsGenerated` frontmatter does not include the redirect you need, you should add it here.
147
+
118
148
# Advocacy Docs (left over from previous README, needs attention)
119
149
120
150
Advocacy doc files are in [advocacy_docs/getting-started](https://github.com/EnterpriseDB/docs/tree/master/advocacy_docs/getting-started)
Copy file name to clipboardExpand all lines: advocacy_docs/supported-open-source/postgresql/installer/02_installing_postgresql_with_the_graphical_installation_wizard/01_invoking_the_graphical_installer.mdx
Copy file name to clipboardExpand all lines: advocacy_docs/supported-open-source/postgresql/installer/02_installing_postgresql_with_the_graphical_installation_wizard/index.mdx
+2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
---
2
2
title: "Installing PostgreSQL with the Graphical Installation Wizard"
0 commit comments