Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: improve versiondropdown design & set docs main to /features #9994

Merged
merged 9 commits into from
Mar 15, 2024
14 changes: 11 additions & 3 deletions docs-website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = {
},
items: [
{
to: "docs/",
to: "docs/features",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a number of other pages where we link to the main docs/ page

it'd be easier to remove the existing page, and change the slug for "docs/features" to be "docs/"

however, I think we need to give the docs/features page a slight UI uplift before elevating it - it just looks slightly less crisp than the current docs/ main page

activeBasePath: "docs",
label: "Docs",
position: "right",
Expand Down Expand Up @@ -116,11 +116,19 @@ module.exports = {
dropdownActiveClassDisabled: true,
dropdownItemsAfter: [
{
href: "https://docs-website-irpoe2osc-acryldata.vercel.app/docs/",
type: 'html',
value: '<hr class="dropdown-separator" style="margin: 0.4rem;">',
},
{
type: 'html',
value: '<div style="font-size:0.875rem; padding: 0.25rem 0.5rem;"><b>Archived versions</b></div>',
},
{
href: "https://docs-website-irpoe2osc-acryldata.vercel.app/docs/features",
label: "0.11.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not strictly necessary, but we add a little external link icon
image

},
{
href: "https://docs-website-1gv2yzn9d-acryldata.vercel.app/docs/",
href: "https://docs-website-1gv2yzn9d-acryldata.vercel.app/docs/features",
label: "0.10.5",
},
],
Expand Down
Loading