Skip to content

Commit

Permalink
Created redirects from old page (#7)
Browse files Browse the repository at this point in the history
* Installed redirect plugin

* Configured redirects from old page (/About)

* Added format test to CI build

* Fixed redirect from json file

* Fixed formatting

* Fixed redirect
  • Loading branch information
Grabauskas authored Dec 17, 2024
1 parent bf5b768 commit 96ff51f
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ jobs:

- name: Install dependencies
run: npm ci
- name: Test format
run: npm run test:format
- name: Test build website
run: npm run build
44 changes: 44 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,50 @@ const config: Config = {
type: "all"
}
}
],
[
"@docusaurus/plugin-client-redirects",
{
// Redirects for the old website
redirects: [
{
from: "/About",
to: "/"
},
{
from: ["/About/CHANGELOG.html", "/About/CHANGELOG"],
to: "/changelog"
},
{
from: ["/About/ApiVersions.html", "/About/ApiVersions"],
to: "/docs/api-versions"
},
{
from: ["/About/ClientID.html", "/About/ClientID"],
to: "/docs/usage-of-clientids"
},
{
from: ["/About/Authorisation.html", "/About/Authorisation"],
to: "/docs/authorizations"
},
{
from: ["/About/VersionHeader.html", "/About/VersionHeader"],
to: "/docs/version-header"
},
{
from: [
"/About/exampledocumentupload.html",
"/About/exampledocumentupload",
"/docs/example-document-upload/examplepm.json"
],
to: "/docs/example-document-upload"
},
{
from: ["/About/ztc1_3problemsandsolutions.html", "/About/ztc1_3problemsandsolutions"],
to: "/docs/ztc1_3problemsandsolutions"
}
]
}
]
]
};
Expand Down
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"dependencies": {
"@docusaurus/core": "3.6.3",
"@docusaurus/plugin-client-redirects": "^3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.0.0",
Expand Down

0 comments on commit 96ff51f

Please sign in to comment.