-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[site] fix unnecessary internal redirects (#713)
* [site] remove redirects for local builds * [site] fix unnecessary internal redirects
- Loading branch information
Showing
10 changed files
with
24 additions
and
13 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
:::warning JS → TS | ||
Please note that the [JavaScript](/developers/weaviate/client-libraries/javascript) client library is no longer maintained. Please migrate to the [TypeScript](/developers/weaviate/client-libraries/typescript) library. | ||
Please note that the [JavaScript](https://www.npmjs.com/package/weaviate-client) client library is no longer maintained. Please migrate to the [TypeScript](/developers/weaviate/client-libraries/typescript) library. | ||
::: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
let config = require('./docusaurus.config') | ||
|
||
const isRedirectPlugin = (plugin) => { | ||
// the redirect plugin is an array | ||
// with '@docusaurus/plugin-client-redirects' as the first item | ||
return Array.isArray(plugin) && plugin[0] == '@docusaurus/plugin-client-redirects'; | ||
} | ||
|
||
// remove the redirect plugin, to esure that | ||
// we don't use redirects for links within our docs | ||
config.plugins = config.plugins.filter(plugin => !isRedirectPlugin(plugin)); | ||
|
||
// use trailing slash, to be able to use link checker on a local build folder | ||
config.trailingSlash = true; | ||
|
||
module.exports = config; |
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