docs(site): add ui-next component documentation and upgrade Docusaurus (#6102)

This commit is contained in:
Dan Rukas authored and GitHub committed 2026-06-29 12:33:16 -04:00
1 parent 03b180f185
commit ac45a9497f
112 files changed
+9665 -6674

No files matched your search

+17 -82
View File
@@ -1,6 +1,10 @@
// read this text file
const fs = require('fs');
const versions = fs.readFileSync('../../version.txt', 'utf8').split('\n');
const rawVersion = fs.readFileSync('../../version.txt', 'utf8').trim();
const [major, minor] = rawVersion.split('.');
const versionLabel = rawVersion.includes('beta')
? `${major}.${minor} Beta`
: `${major}.${minor}`;
const ArchivedVersionsDropdownItems = [
{
@@ -35,7 +39,11 @@ const baseUrl = process.env.BASE_URL || '/';
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
future: {
experimental_faster: true,
faster: true,
v4: {
removeLegacyPostBuildHeadAttribute: true,
useCssCascadeLayers: true,
},
},
title: 'OHIF',
tagline: 'Open-source web-based medical imaging platform',
@@ -49,7 +57,11 @@ module.exports = {
locales: ['en'],
},
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
favicon: 'img/favicon.ico',
themes: ['@docusaurus/theme-live-codeblock'],
plugins: [
@@ -97,7 +109,7 @@ module.exports = {
// : undefined,
versions: {
current: {
label: `${versions} (Latest)`,
label: `${versionLabel} (Latest)`,
},
},
},
@@ -181,12 +193,6 @@ module.exports = {
label: 'Help',
position: 'left',
},
{
to: '/migration-guide/3p10-to-3p11/',
//activeBaseRegex: '(^/help$)|(/help)',
label: '3.11 Migration Guides',
position: 'left',
},
{
type: 'docsVersionDropdown',
position: 'right',
@@ -229,78 +235,7 @@ module.exports = {
},
footer: {
style: 'dark',
links: [
{
title: ' ',
items: [
{
// This doesn't show up on dev for some reason, but displays in build
html: `
<a href="https://www.massgeneral.org/" target="_blank" rel="noreferrer noopener">
<img src="/img/mgh-logo.png" id="mgh-logo" alt="MGH" />
</a>
`,
},
],
},
{
title: 'Learn',
items: [
{
label: 'Introduction',
to: '/',
},
{
label: 'Getting Started',
to: 'development/getting-started',
},
{
label: 'FAQ',
to: '/faq',
},
{
label: 'Resources',
to: '/resources',
},
],
},
{
title: 'Community',
items: [
{
label: 'Discussion board',
href: 'https://community.ohif.org/',
},
{
label: 'Help',
to: '/help',
},
],
},
{
title: 'More',
items: [
{
label: 'Donate',
href: 'https://giving.massgeneral.org/ohif',
},
{
label: 'GitHub',
href: 'https://github.com/OHIF/Viewers',
},
{
label: 'Twitter',
href: 'https://twitter.com/OHIFviewer',
},
],
},
],
logo: {
alt: 'OHIF ',
src: 'img/netlify-color-accent.svg',
href: 'https://viewer.ohif.org/',
},
copyright: `OHIF is open source software released under the MIT license.`,
links: [],
},
}),
};