Skip to content

Guidance for doc versioning on specific parts of the site #11260

Closed Answered by Devon-White
Devon-White asked this question in General
Discussion options

You must be logged in to vote

I was able to solve this by pulling the docs out of the preset docs directory. Even though they were being excluded, it somehow behaves better when the versioned docs are in their standalone directory.

After doing that, I observed that the version drop down will still show on every doc (even if that specific doc isnt versioned).

So far i was able to solve this by swizzling the DocsVersionDropdownNavbarItem and adding the following logic:

import React from 'react';
import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem';
import type DocsVersionDropdownNavbarItemType from '@theme/NavbarItem/DocsVersionDropdownNavbarItem';
import type {WrapperProps} 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@slorber
Comment options

slorber Jun 12, 2025
Collaborator

Answer selected by Devon-White
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants