Replies: 2 comments 1 reply
-
Hey, I'm sorry but this issue is not detailed enough for me to understand what you are trying to do. Please show me an example file-system tree that you would like to have with all the md docs and versions, and how it should be represented in term of UI / Sidebar etc... Use https://excalidraw.com/ for mockups if needed. A concrete example is better than text.
You can create a doc plugin instance for a single page if you want, but that seems suspicious to me. If all your pages have different versioning schemes (like event guideline in v3 and API guidelines in v7) you'd rather use a single plugin instance and just create multiple files event-guideline-v1.md event-guideline-v2.md event-guideline-v3.md The versioning feature of Docusaurus mostly make sense when you want to version a set of docs
A sidebar can only reference docs of its current version, because a sidebar is also versioned alongside the versioned docs. It does not make sense by default to link event guidelines in v2 to API guidelines in v7 as those have separate versions. Sidebar default linking strategy is to link docs of the same version together with next/previous, not interleaving versions However, you can still create regular static links in any sidebar: https://docusaurus.io/docs/sidebar#sidebar-item-link in which can any page can link to any page through the sidebar.
It is not clear to me what you can't make work exactly. I can't help if you don't tell me :)
Yes but I'm not sure it's what you should do because a version is meant to be used for a set of docs with next/previous navigation inside that versioned doc set
Sidebar is for docs of the same version, but you can add any static link in such sidebar If all your docs have different version schemes/lifecycles, you'd rather not use the versioning feature in the first place imho, and just create multiple copies of your versioned doc in the ./docs folder directly. |
Beta Was this translation helpful? Give feedback.
-
hi @slorber ! maybe better will be to show you screenshot of that i have and then just paint what is missing there. and actually everything is explained there. is that currently possible? if so, can i ask for example / explanation ? otherwise, if that is not possible, what other approach we could take? thanks |
Beta Was this translation helpful? Give feedback.
-
Hi guys, i read
and still cannot get answer for my concerns.
I would like to achieve versioning, but for single page only because:
And, I would like to avoid new category on Top Bar -- i would like to include the page in the
docs
starndard sidebar.my idea was to create use the docs plugin again:
but i cannot make it working.
so my questions:
docs
sidebar?Beta Was this translation helpful? Give feedback.
All reactions