mirror of https://github.com/FOME-Tech/wiki.git
Add TS/HT redirections
This commit is contained in:
parent
d30cfb125b
commit
94d4ea27a6
|
@ -9,6 +9,7 @@
|
|||
"deadband",
|
||||
"Deadtime",
|
||||
"deadzone",
|
||||
"debugmode",
|
||||
"DFCO",
|
||||
"dyno",
|
||||
"FOME",
|
||||
|
|
12
README.md
12
README.md
|
@ -40,6 +40,18 @@ npm run build
|
|||
|
||||
This command generates static content into the `build` directory and can be served using any static contents hosting service.
|
||||
|
||||
### Redirection
|
||||
|
||||
Some addresses have client-side redirection set up here: [docusaurus.config.js](/docusaurus.config.js) (section `redirects: [...]`).
|
||||
|
||||
Those addresses come from the INI files (TS & HT). This gives more flexibility when wiki pages are moved or renamed.
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
https://wiki.fome.tech/r/fuel -> https://wiki.fome.tech/category/fuel/
|
||||
```
|
||||
|
||||
### Generate PDF
|
||||
|
||||
Required [Prince XML](https://www.princexml.com/).
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
# Debug Mode
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"label": "ETB",
|
||||
"position": 1,
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"description": "Electronic Throttle Body"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"label": "VVT",
|
||||
"position": 1,
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"description": "Variable Cam Timing"
|
||||
}
|
||||
}
|
|
@ -62,6 +62,46 @@ const config = {
|
|||
],
|
||||
],
|
||||
|
||||
plugins: [
|
||||
[
|
||||
'@docusaurus/plugin-client-redirects',
|
||||
{
|
||||
redirects: [
|
||||
// Client side redirect addresses specified in INI files (HT & TS)
|
||||
// eg. https://wiki.fome.tech/r/fuel -> https://wiki.fome.tech/category/fuel/
|
||||
{
|
||||
from: '/r/fuel',
|
||||
to: '/category/fuel/',
|
||||
},
|
||||
{
|
||||
from: '/r/vvt',
|
||||
to: '/category/vvt/',
|
||||
},
|
||||
{
|
||||
from: '/r/debugmode',
|
||||
to: '/Advanced-Features/Debug-Mode/',
|
||||
},
|
||||
{
|
||||
from: '/r/trigger',
|
||||
to: '/category/general-sensors/',
|
||||
},
|
||||
{
|
||||
from: '/r/etb',
|
||||
to: '/category/etb/',
|
||||
},
|
||||
{
|
||||
from: '/r/tsptsp',
|
||||
to: '/Fuel/Acceleration/TPS-Based/',
|
||||
},
|
||||
{
|
||||
from: '/r/lua',
|
||||
to: '/Advanced-Features/LUA-Scripting/',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"version": "0.0.0",
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "2.4.1",
|
||||
"@docusaurus/plugin-client-redirects": "^2.4.1",
|
||||
"@docusaurus/preset-classic": "2.4.1",
|
||||
"@easyops-cn/docusaurus-search-local": "^0.35.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
|
@ -2278,6 +2279,29 @@
|
|||
"react-dom": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@docusaurus/plugin-client-redirects": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@docusaurus/plugin-client-redirects/-/plugin-client-redirects-2.4.1.tgz",
|
||||
"integrity": "sha512-tp0j16gaLIJ4p+IR0P6KDOFsTOGGMY54MNPnmM61Vaqqt5omLqsuKUO8UlCGU1oW/4EIQOhXYy99XYY5MjE+7A==",
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "2.4.1",
|
||||
"@docusaurus/logger": "2.4.1",
|
||||
"@docusaurus/utils": "2.4.1",
|
||||
"@docusaurus/utils-common": "2.4.1",
|
||||
"@docusaurus/utils-validation": "2.4.1",
|
||||
"eta": "^2.0.0",
|
||||
"fs-extra": "^10.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"tslib": "^2.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.14"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^16.8.4 || ^17.0.0",
|
||||
"react-dom": "^16.8.4 || ^17.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@docusaurus/plugin-content-blog": {
|
||||
"version": "2.4.1",
|
||||
"resolved": "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.4.1.tgz",
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "2.4.1",
|
||||
"@docusaurus/plugin-client-redirects": "^2.4.1",
|
||||
"@docusaurus/preset-classic": "2.4.1",
|
||||
"@easyops-cn/docusaurus-search-local": "^0.35.0",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
|
|
Loading…
Reference in New Issue