diff --git a/docusaurus.config.js b/docusaurus.config.js index db40fbbff6..d6d7d61c2c 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -39,7 +39,7 @@ const config = { /** this value must be changed if a new version is released */ label: '1.10', } - } + }, }, blog: { showReadingTime: true, @@ -55,6 +55,23 @@ const config = { ], ], + plugins: [ + [ + '@docusaurus/plugin-content-docs', + { + id: 'integrations', + path: 'integrations', + routeBasePath: 'integrations', + sidebarPath: './sidebarsIntegrations.js', + versions: { + current: { + label: '1.8', + } + } + }, + ], + ], + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ @@ -88,6 +105,13 @@ const config = { position: 'left', label: 'Data Packs', }, + { + type: 'doc', + docId: 'wiki/intro', + docsPluginId: 'integrations', + position: 'left', + label: 'Integrations', + }, {to: '/blog', label: 'Blog', position: 'left'}, { type: 'docsVersionDropdown', @@ -96,7 +120,16 @@ const config = { { to: 'https://github.com/TeamLapen/Vampirism/wiki', label: 'For MC 1.7.10' }, { to: 'https://github.com/TeamLapen/Vampirism/wiki', label: 'For MC 1.12' }, ], + dropdownActiveClassDisabled: true, + }, + { + type: 'docsVersionDropdown', + position: 'right', + dropdownItemsAfter: [ + { to: 'https://github.com/TeamLapen/VampirismIntegrations/wiki', label: 'For MC 1.19 or older' }, + ], dropdownActiveClassDisabled: false, + docsPluginId: 'integrations', }, { href: 'https://github.com/Teamlapen/Vampirism', diff --git a/integrations/wiki/intro.md b/integrations/wiki/intro.md new file mode 100644 index 0000000000..76499c3b78 --- /dev/null +++ b/integrations/wiki/intro.md @@ -0,0 +1,14 @@ +--- +title: Vampirism Integrations +sidebar_position: 1 +--- + +Vampirism Integrations is a compatibility mod that adds integration between Vampirism and other mods. Some mods like Just Enough Items (JEI) or Guide-API are supported out of the box, but other mods require this mod to be installed to some integration. + +In our quest to ensure continuous compatibility, we diligently maintain an updated list of supported mods and their associated features. Given the disparate update schedules of Vampirism and the mods it integrates with, we strive to keep pace with the emergence of new mods and the potential cessation of support for older ones. + +It's important to note that if you encounter a version of Vampirism Integrations predating the release of an integrated mod for a new Minecraft version, the integration may not be incorporated until the subsequent release. + +## Downloads +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/vampirism-integrations) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/vampirism-integrations) \ No newline at end of file diff --git a/integrations/wiki/mods/_category_.json b/integrations/wiki/mods/_category_.json new file mode 100644 index 0000000000..e4ada9005d --- /dev/null +++ b/integrations/wiki/mods/_category_.json @@ -0,0 +1,5 @@ +{ + "label": "Mods", + "collapsed": false, + "collapsible": true +} diff --git a/integrations/wiki/mods/assets/jade/blood.png b/integrations/wiki/mods/assets/jade/blood.png new file mode 100644 index 0000000000..4272ff5c5e Binary files /dev/null and b/integrations/wiki/mods/assets/jade/blood.png differ diff --git a/integrations/wiki/mods/assets/jade/blood_2.png b/integrations/wiki/mods/assets/jade/blood_2.png new file mode 100644 index 0000000000..bab341b1cb Binary files /dev/null and b/integrations/wiki/mods/assets/jade/blood_2.png differ diff --git a/integrations/wiki/mods/assets/jade/diffuser_1.png b/integrations/wiki/mods/assets/jade/diffuser_1.png new file mode 100644 index 0000000000..6046976767 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/diffuser_1.png differ diff --git a/integrations/wiki/mods/assets/jade/diffuser_2.png b/integrations/wiki/mods/assets/jade/diffuser_2.png new file mode 100644 index 0000000000..0bebd36752 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/diffuser_2.png differ diff --git a/integrations/wiki/mods/assets/jade/infusion.png b/integrations/wiki/mods/assets/jade/infusion.png new file mode 100644 index 0000000000..e7c38bb81b Binary files /dev/null and b/integrations/wiki/mods/assets/jade/infusion.png differ diff --git a/integrations/wiki/mods/assets/jade/inspiration.png b/integrations/wiki/mods/assets/jade/inspiration.png new file mode 100644 index 0000000000..3bb809b0ba Binary files /dev/null and b/integrations/wiki/mods/assets/jade/inspiration.png differ diff --git a/integrations/wiki/mods/assets/jade/pedestal.png b/integrations/wiki/mods/assets/jade/pedestal.png new file mode 100644 index 0000000000..951dd682d4 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/pedestal.png differ diff --git a/integrations/wiki/mods/assets/jade/pillar.png b/integrations/wiki/mods/assets/jade/pillar.png new file mode 100644 index 0000000000..14d49bbf90 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/pillar.png differ diff --git a/integrations/wiki/mods/assets/jade/player_1.png b/integrations/wiki/mods/assets/jade/player_1.png new file mode 100644 index 0000000000..6b4016764a Binary files /dev/null and b/integrations/wiki/mods/assets/jade/player_1.png differ diff --git a/integrations/wiki/mods/assets/jade/player_2.png b/integrations/wiki/mods/assets/jade/player_2.png new file mode 100644 index 0000000000..f40a888a42 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/player_2.png differ diff --git a/integrations/wiki/mods/assets/jade/potion_table.png b/integrations/wiki/mods/assets/jade/potion_table.png new file mode 100644 index 0000000000..b654bad272 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/potion_table.png differ diff --git a/integrations/wiki/mods/assets/jade/totem_1.png b/integrations/wiki/mods/assets/jade/totem_1.png new file mode 100644 index 0000000000..056ea27a68 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/totem_1.png differ diff --git a/integrations/wiki/mods/assets/jade/totem_2.png b/integrations/wiki/mods/assets/jade/totem_2.png new file mode 100644 index 0000000000..9c8fead149 Binary files /dev/null and b/integrations/wiki/mods/assets/jade/totem_2.png differ diff --git a/integrations/wiki/mods/assets/jade/weapon_table.png b/integrations/wiki/mods/assets/jade/weapon_table.png new file mode 100644 index 0000000000..92cde56ebb Binary files /dev/null and b/integrations/wiki/mods/assets/jade/weapon_table.png differ diff --git a/integrations/wiki/mods/assets/waila/blood_level.png b/integrations/wiki/mods/assets/waila/blood_level.png new file mode 100644 index 0000000000..37880fede7 Binary files /dev/null and b/integrations/wiki/mods/assets/waila/blood_level.png differ diff --git a/integrations/wiki/mods/assets/waila/blood_tank.png b/integrations/wiki/mods/assets/waila/blood_tank.png new file mode 100644 index 0000000000..3f01573119 Binary files /dev/null and b/integrations/wiki/mods/assets/waila/blood_tank.png differ diff --git a/integrations/wiki/mods/assets/waila/faction_level.png b/integrations/wiki/mods/assets/waila/faction_level.png new file mode 100644 index 0000000000..0ce7551e9f Binary files /dev/null and b/integrations/wiki/mods/assets/waila/faction_level.png differ diff --git a/integrations/wiki/mods/assets/waila/garlic_diffuser.png b/integrations/wiki/mods/assets/waila/garlic_diffuser.png new file mode 100644 index 0000000000..fc6ff2067b Binary files /dev/null and b/integrations/wiki/mods/assets/waila/garlic_diffuser.png differ diff --git a/integrations/wiki/mods/better-combat.md b/integrations/wiki/mods/better-combat.md new file mode 100644 index 0000000000..5a3b0dd48d --- /dev/null +++ b/integrations/wiki/mods/better-combat.md @@ -0,0 +1,14 @@ +--- +title: Better Combat +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/better-combat-by-daedelus) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/better-combat) +## Features +### Weapon Attributes + +The following Weapons have been given Weapon Attributes: +- Heart Seeker -> Claymore +- Heart Striker -> Claymore +- Hunter Axe -> Heavy Axe +- Pitchfork -> Spear +- Stake -> Soul Knife \ No newline at end of file diff --git a/integrations/wiki/mods/biomes-o-plenty.md b/integrations/wiki/mods/biomes-o-plenty.md new file mode 100644 index 0000000000..1b540ef8c2 --- /dev/null +++ b/integrations/wiki/mods/biomes-o-plenty.md @@ -0,0 +1,8 @@ +--- +title: Biomes O' Plenty +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/biomes-o-plenty) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/biomes-o-plenty) +## Features +### No sun damage +- [Omnious Woods](https://biomesoplenty.fandom.com/wiki/Ominous_Woods) \ No newline at end of file diff --git a/integrations/wiki/mods/choicetheorems-overhauled-villages.md b/integrations/wiki/mods/choicetheorems-overhauled-villages.md new file mode 100644 index 0000000000..8e8933b20d --- /dev/null +++ b/integrations/wiki/mods/choicetheorems-overhauled-villages.md @@ -0,0 +1,9 @@ +--- +title: Choice Theorems Overhauled Villages +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/choicetheorems-overhauled-village) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/ct-overhaul-village) +## Features +### Hunter Trainer + +Hunter Trainer houses are added to the new villages \ No newline at end of file diff --git a/integrations/wiki/mods/cold-sweat.md b/integrations/wiki/mods/cold-sweat.md new file mode 100644 index 0000000000..f6459320c0 --- /dev/null +++ b/integrations/wiki/mods/cold-sweat.md @@ -0,0 +1,9 @@ +--- +title: Cold Sweat +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/cold-sweat) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/cold-sweat) +## Features +### Temperature +- vampire players can resist colder temperatures +- vampire players' resistance to hotter temperatures is decreased \ No newline at end of file diff --git a/integrations/wiki/mods/consecration.md b/integrations/wiki/mods/consecration.md new file mode 100644 index 0000000000..d688ac4df9 --- /dev/null +++ b/integrations/wiki/mods/consecration.md @@ -0,0 +1,14 @@ +--- +title: Consecration +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/consecration) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/consecration) +## Features +### Damage Types +The following damage types are marked as holy damage: +- `vampirism:holy_water` +- `vampirism:vampire_on_fire` +- `vampirism:vampire_in_fire` + +### Entity Types +vampire entities are marked as undead for consecration \ No newline at end of file diff --git a/integrations/wiki/mods/crafttweaker.md b/integrations/wiki/mods/crafttweaker.md new file mode 100644 index 0000000000..d46ab144dc --- /dev/null +++ b/integrations/wiki/mods/crafttweaker.md @@ -0,0 +1,13 @@ +--- +title: CraftTweaker +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/crafttweaker) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/crafttweaker) +## Features + +### Recipes + +Custom recipes can be created / modified / removed by crafttweaker: + +- [Weapon Table Recipes](/docs/data/recipes/weapontable#craft-tweaker) +- [Alchemical Cauldron Recipes](/docs/data/recipes/alchemicalcauldron#craft-tweaker) \ No newline at end of file diff --git a/integrations/wiki/mods/diet.md b/integrations/wiki/mods/diet.md new file mode 100644 index 0000000000..d4b1c91e4c --- /dev/null +++ b/integrations/wiki/mods/diet.md @@ -0,0 +1,8 @@ +--- +title: Diet +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/diet) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/diet) +## Features + +- disables diet for vampire players \ No newline at end of file diff --git a/integrations/wiki/mods/evilcraft.md b/integrations/wiki/mods/evilcraft.md new file mode 100644 index 0000000000..8f43bfde60 --- /dev/null +++ b/integrations/wiki/mods/evilcraft.md @@ -0,0 +1,8 @@ +--- +title: EvilCraft +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/evilcraft) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/evilcraft) +## Features + +- [Evilcraft blood](https://ftb.fandom.com/wiki/Blood_(EvilCraft)) can be converted to Vampirism blood using a [Blood Sieve](/docs/wiki/content/blocks#blood-sieve) \ No newline at end of file diff --git a/integrations/wiki/mods/guard-villagers.md b/integrations/wiki/mods/guard-villagers.md new file mode 100644 index 0000000000..0612f96b4d --- /dev/null +++ b/integrations/wiki/mods/guard-villagers.md @@ -0,0 +1,7 @@ +--- +title: Guard Villagers +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/guard-villagers) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/guard-villagers) +## Features +- guards attack faction entities that are hostile to the village \ No newline at end of file diff --git a/integrations/wiki/mods/jade.md b/integrations/wiki/mods/jade.md new file mode 100644 index 0000000000..9bd2a885a8 --- /dev/null +++ b/integrations/wiki/mods/jade.md @@ -0,0 +1,34 @@ +--- +title: Jade +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/jade) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/jade) + +## Features + +### Entity Information +#### Blood +![](assets/jade/blood.png) +![](assets/jade/blood_2.png) +#### Player Faction +![](assets/jade/player_1.png) +![](assets/jade/player_2.png) +### Block Information +#### Garlic Diffuser +![](assets/jade/diffuser_1.png) +![](assets/jade/diffuser_2.png) +#### Altar of Infusion +![](assets/jade/infusion.png) +#### Altar of Inspiration +![](assets/jade/inspiration.png) +#### Blood Pedestal +![](assets/jade/pedestal.png) +#### Altar Pillar +![](assets/jade/pillar.png) +#### Potion Table +![](assets/jade/potion_table.png) +#### Village Totem +![](assets/jade/totem_1.png) +![](assets/jade/totem_2.png) +#### Weapon Table +![](assets/jade/weapon_table.png) \ No newline at end of file diff --git a/integrations/wiki/mods/minecraft-comes-alive.md b/integrations/wiki/mods/minecraft-comes-alive.md new file mode 100644 index 0000000000..078f0f1196 --- /dev/null +++ b/integrations/wiki/mods/minecraft-comes-alive.md @@ -0,0 +1,7 @@ +--- +title: Minecraft Comes Alive Reborn +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/minecraft-comes-alive-reborn) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/minecraft-comes-alive-reborn) +## Features +- allow mca villager to be converted to vampire \ No newline at end of file diff --git a/integrations/wiki/mods/nyctophobia.md b/integrations/wiki/mods/nyctophobia.md new file mode 100644 index 0000000000..d82d44f84e --- /dev/null +++ b/integrations/wiki/mods/nyctophobia.md @@ -0,0 +1,10 @@ +--- +title: Nyctophobia +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/nyctophobia-forge) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/nyctophobia) +## Features + +### No sun damage +- eroded haunted forest +- deep dark forest \ No newline at end of file diff --git a/integrations/wiki/mods/player-companions.md b/integrations/wiki/mods/player-companions.md new file mode 100644 index 0000000000..1852ab1bb5 --- /dev/null +++ b/integrations/wiki/mods/player-companions.md @@ -0,0 +1,7 @@ +--- +title: Player Companions +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/player-companions) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/player-companions) +## Features +- the blood level of the player companion is replenished on death \ No newline at end of file diff --git a/integrations/wiki/mods/survive.md b/integrations/wiki/mods/survive.md new file mode 100644 index 0000000000..a50f2482e0 --- /dev/null +++ b/integrations/wiki/mods/survive.md @@ -0,0 +1,10 @@ +--- +title: Survive +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/survive) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/survive) +## Features +- disable thirst for vampire players +- adds cold resistance to vampire players +- decrease heat resistance of vampire players +- disable stamina for vampire players \ No newline at end of file diff --git a/integrations/wiki/mods/tough-as-nails.md b/integrations/wiki/mods/tough-as-nails.md new file mode 100644 index 0000000000..10c74da1d7 --- /dev/null +++ b/integrations/wiki/mods/tough-as-nails.md @@ -0,0 +1,8 @@ +--- +title: Tough As Nails +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/tough-as-nails) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/tough-as-nails) +## Features +- disable thirst for vampire players +- ignore icy and cold temperatures for vampire players \ No newline at end of file diff --git a/integrations/wiki/mods/waila.md b/integrations/wiki/mods/waila.md new file mode 100644 index 0000000000..342dbff55d --- /dev/null +++ b/integrations/wiki/mods/waila.md @@ -0,0 +1,16 @@ +--- +title: WTHIT +--- +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/curseforge_vector.svg)](https://www.curseforge.com/minecraft/mc-mods/wthit) +[![](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/wthit) +## Features + +### Add Information +#### Blood Level +![](assets/waila/blood_level.png) +#### Garlic Diffuser +![](assets/waila/garlic_diffuser.png) +#### Blood Tank +![](assets/waila/blood_tank.png) +#### Faction Information +![](assets/waila/faction_level.png) \ No newline at end of file diff --git a/integrations/wiki/reasons.md b/integrations/wiki/reasons.md new file mode 100644 index 0000000000..a1e97674b0 --- /dev/null +++ b/integrations/wiki/reasons.md @@ -0,0 +1,12 @@ +--- +title: Reasons +sidebar_position: 2 +--- + +## Why is this in a separate mod? +1) Integrating mods poses a significant challenge when adapting to Minecraft updates. When Minecraft undergoes an update, and other mods are not yet compatible, it becomes necessary to uncomment relevant sections in the Vampirism code, eliminate dependencies, and repeat these adjustments once the mod is eventually updated. +2) I aim to avoid issuing frequent updates for Vampirism in response to changes in other mods. Releasing updates for every modification that requires adjustments can be cumbersome. +3) This practice maintains a higher level of organization within Vampirism's code. +4) It serves as a validation for the functionality of Vampirism's API, pinpointing areas for enhancement and offering a practical example. +5) Simplifying the process for others to contribute and integrate additional features becomes more accessible, fostering the potential for collaborative enhancements (although success in this regard has been elusive thus far). +6) If you are already installing many mods or a modpack it should not make that much difference anyway. \ No newline at end of file diff --git a/sidebarsIntegrations.js b/sidebarsIntegrations.js new file mode 100644 index 0000000000..8989d4d83a --- /dev/null +++ b/sidebarsIntegrations.js @@ -0,0 +1,19 @@ +/** + * Creating a sidebar enables you to: + - create an ordered group of docs + - render a sidebar for each doc of that group + - provide next/previous navigation + + The sidebars can be generated from the filesystem, or explicitly defined here. + + Create as many sidebars as you want. + */ + +// @ts-check + +/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ +const sidebars = { + wikiSidebar: [{type: 'autogenerated', dirName: 'wiki'}], +}; + +module.exports = sidebars; diff --git a/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js b/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js new file mode 100644 index 0000000000..a1548f85cc --- /dev/null +++ b/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js @@ -0,0 +1,20 @@ +import React from 'react'; +import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem'; +import { useLocation } from '@docusaurus/router'; +import { + useActivePluginAndVersion, +} from '@docusaurus/plugin-content-docs/client'; + +export default function DocsVersionDropdownNavbarItemWrapper(props) { + const {docsPluginId, className, type} = props + const {pathname} = useLocation() + const doesPathnameContainDocsPluginId = pathname.includes(docsPluginId) || (pathname.includes('docs') && docsPluginId === undefined) + if (!doesPathnameContainDocsPluginId) { + return null + } + return ( + <> + + + ); +} diff --git a/tsconfig.json b/tsconfig.json index 6f4756980d..11ef998ba2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,8 @@ // This file is not used in compilation. It is here just for a nice editor experience. "extends": "@tsconfig/docusaurus/tsconfig.json", "compilerOptions": { - "baseUrl": "." + "baseUrl": ".", + "allowSyntheticDefaultImports": true, + "jsx": "react" } }