Skip to content

Multiple components - single docs repo #3332

Answered by compojoom
compojoom asked this question in General
Discussion options

You must be logged in to vote

Ok, I got some time to experiment and I think that I managed to achieve what I wanted.

@slorber as you said the trickiest part was the UI. I still need to experiment a little, but currently I have it setup as follows.

doc plugin configured for componentX (it reads from componentX folder)

and the classic preset configured to read everything from docs - so basically all components that don't need versioning are in docs.

I wanted to show the dropdown with the versions onle when on the componentX page and not on the other docs.

I ended up swizzling the DocsVersionDropdownNavbarItem from classic-theme.

import React from 'react';
import OriginalDocsVersionDropdownNavbarItem from '@theme-origina…

Replies: 4 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by compojoom
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants