From 4b9b7dc5c14d224680c4ac391de57f5eecb95f33 Mon Sep 17 00:00:00 2001 From: decodersingh <107138786+decodersingh@users.noreply.github.com> Date: Sat, 27 Jan 2024 22:21:50 +0530 Subject: [PATCH 1/4] Fix:Homepage Header --- src/components/Sections/HomepageHeader.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/Sections/HomepageHeader.tsx b/src/components/Sections/HomepageHeader.tsx index 9de588dfeca..cc9dc869c05 100644 --- a/src/components/Sections/HomepageHeader.tsx +++ b/src/components/Sections/HomepageHeader.tsx @@ -162,28 +162,28 @@ export function HomepageHeader() { max-w-[90%]" >
- +
- +
- +
- +
- +
- +
- +
- +
From af0d0d13c500677ab0ff68c75f08e9a14d105e4f Mon Sep 17 00:00:00 2001 From: decodersingh <107138786+decodersingh@users.noreply.github.com> Date: Mon, 29 Jan 2024 16:18:49 +0530 Subject: [PATCH 2/4] Fixes:Supported Data Sources anchors --- src/components/Sections/WhyDevlake.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Sections/WhyDevlake.tsx b/src/components/Sections/WhyDevlake.tsx index 9f260f782cd..719438e013a 100644 --- a/src/components/Sections/WhyDevlake.tsx +++ b/src/components/Sections/WhyDevlake.tsx @@ -48,52 +48,52 @@ function Supports() { sm:gap-x-1" > - + - + - + - + - + - + - + - + - + - + From 17e62d0216509a1c421304490140863016aa32e7 Mon Sep 17 00:00:00 2001 From: decodersingh <107138786+decodersingh@users.noreply.github.com> Date: Tue, 30 Jan 2024 20:22:36 +0530 Subject: [PATCH 3/4] Fixes:docusaurus.config.js --- docusaurus.config.js | 601 +++++++++++++++++++++---------------------- 1 file changed, 299 insertions(+), 302 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index d6c215b97b5..74c719eb82d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -10,325 +10,322 @@ const versions = require('./versions.json'); // With JSDoc @type annotations, IDEs can provide config autocompletion /** @type {import('@docusaurus/types').DocusaurusConfig} */ (module.exports = { - title: 'Apache DevLake - Open-Source Dev Data Platform for Productivity', - tagline: 'Apache DevLake is an open-source platform that integrates and analyzes data from DevOps tools to provide insights for engineering productivity, DORA metrics, and more.', - url: 'https://devlake.apache.org', - - baseUrl: '/', - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'throw', - favicon: 'img/logo.svg', - organizationName: 'Apache', - projectName: 'Apache DevLake', + title: 'Apache DevLake - Open-Source Dev Data Platform for Productivity', + tagline: 'Apache DevLake is an open-source platform that integrates and analyzes data from DevOps tools to provide insights for engineering productivity, DORA metrics, and more.', + url: 'https://devlake.apache.org', - presets: [ - [ - '@docusaurus/preset-classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - path: 'docs', - sidebarPath: require.resolve('./sidebars.js'), - // set to undefined to remove Edit this Page - editUrl: 'https://github.com/apache/incubator-devlake-website/edit/main', - remarkPlugins: [math, [require('mdx-mermaid'), { - theme: { light: 'neutral', dark: 'forest' } - }]], - rehypePlugins: [katex], - lastVersion: 'current', - versions: { - current: { - label: 'Next', - path: '', - banner: 'none', - }, - "v0.19": { - banner: 'none', - }, - "v0.18":{ - banner: 'none', - }, - "v0.17":{ - banner: 'none', + baseUrl: '/', + onBrokenLinks: 'throw', + onBrokenMarkdownLinks: 'throw', + favicon: 'img/logo.svg', + organizationName: 'Apache', + projectName: 'Apache DevLake', + + presets: [ + [ + '@docusaurus/preset-classic', + /** @type {import('@docusaurus/preset-classic').Options} */ + ({ + docs: { + path: 'docs', + sidebarPath: require.resolve('./sidebars.js'), + // set to undefined to remove Edit this Page + editUrl: 'https://github.com/apache/incubator-devlake-website/edit/main', + remarkPlugins: [math, [require('mdx-mermaid'), { + theme: { light: 'neutral', dark: 'forest' } + }]], + rehypePlugins: [katex], + lastVersion: 'current', + versions: { + current: { + label: 'Next', + path: '', + banner: 'none', + }, + "v0.19": { + banner: 'none', + }, + "v0.18": { + banner: 'none', + }, + "v0.17": { + banner: 'none', + }, + "v0.16": { + banner: 'none', + }, + "v0.15": { + banner: 'none', + } + } + }, + gtag: { + trackingID: 'G-PKZLL38MQG', + anonymizeIP: true, + }, + blog: { + showReadingTime: true, + readingTime: ({ content, frontMatter, defaultReadingTime }) => + defaultReadingTime({ content, options: { wordsPerMinute: 300 } }), + // Please change this to your repo. + editUrl: 'https://github.com/apache/incubator-devlake-website/edit/main', + remarkPlugins: [math, [require('mdx-mermaid'), { + theme: { light: 'neutral', dark: 'forest' } + }]], + rehypePlugins: [katex], + blogSidebarTitle: 'All posts', + blogSidebarCount: 'ALL', + }, + theme: { + customCss: require.resolve('./src/css/custom.css'), + }, + }), + ], + ], + + plugins: [ + [ + '@docusaurus/plugin-content-docs', + { + id: 'community', + path: 'community', + routeBasePath: 'community', + sidebarPath: require.resolve('./sidebarsCommunity.js'), }, - "v0.16":{ - banner: 'none', + ], + [ + '@docusaurus/plugin-content-docs', + { + id: 'livedemo', + path: 'livedemo', + routeBasePath: 'livedemo', + sidebarPath: require.resolve('./sidebarsLivedemo.js'), }, - "v0.15":{ - banner: 'none', - } - } - }, - gtag: { - trackingID: 'G-PKZLL38MQG', - anonymizeIP: true, - }, - blog: { - showReadingTime: true, - readingTime: ({ content, frontMatter, defaultReadingTime }) => - defaultReadingTime({ content, options: { wordsPerMinute: 300 } }), - // Please change this to your repo. - editUrl: 'https://github.com/apache/incubator-devlake-website/edit/main', - remarkPlugins: [math, [require('mdx-mermaid'), { - theme: { light: 'neutral', dark: 'forest' } - }]], - rehypePlugins: [katex], - blogSidebarTitle: 'All posts', - blogSidebarCount: 'ALL', - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), + ], + function tailwindcss() { + return { + name: 'docusaurus-tailwindcss', + configurePostCss(postcssOptions) { + // Appends TailwindCSS and AutoPrefixer. + // @ts-ignore + postcssOptions.plugins.push(require('tailwindcss')); + postcssOptions.plugins.push(require('autoprefixer')); + postcssOptions.plugins.push(require('postcss-gap-properties')); + return postcssOptions; + }, + }; }, - }), ], - ], - - plugins: [ - [ - '@docusaurus/plugin-content-docs', - { - id: 'community', - path: 'community', - routeBasePath: 'community', - sidebarPath: require.resolve('./sidebarsCommunity.js'), - }, - ], - [ - '@docusaurus/plugin-content-docs', - { - id: 'livedemo', - path: 'livedemo', - routeBasePath: 'livedemo', - sidebarPath: require.resolve('./sidebarsLivedemo.js'), - }, - ], - function tailwindcss() { - return { - name: 'docusaurus-tailwindcss', - configurePostCss(postcssOptions) { - // Appends TailwindCSS and AutoPrefixer. - // @ts-ignore - postcssOptions.plugins.push(require('tailwindcss')); - postcssOptions.plugins.push(require('autoprefixer')); - postcssOptions.plugins.push(require('postcss-gap-properties')); - return postcssOptions; + i18n: { + defaultLocale: 'en', + locales: ['en', 'zh'], + localeConfigs: { + en: { + htmlLang: 'en-GB', + }, + // You can omit a locale (e.g. fr) if you don't need to override the defaults + fa: { + direction: 'rtl', + }, }, - }; - }, - ], - i18n: { - defaultLocale: 'en', - locales: ['en', 'zh'], - localeConfigs: { - en: { - htmlLang: 'en-GB', - }, - // You can omit a locale (e.g. fr) if you don't need to override the defaults - fa: { - direction: 'rtl', - }, }, - }, - themeConfig: + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ( - { - metadata: [{name: 'keywords', content: 'Engineering Productivity, Open-Source Engineering, Open-Source Integration Tools, Data Integrates Platform, Open-Source Dev Platform, Open-Source Data Integrates, DevOps Tools Integrates, Open-Source DevOps Tools'}], - navbar: { - title: 'Apache DevLake', - logo: { - alt: 'apache devlake', - src: 'img/logo.svg', - }, - items: [ - { - // type: 'doc', - // docId: 'Overview/Introduction', - position: 'right', - label: 'Docs', - items: [ - { - label: "Next", - to: "/docs/Overview/Introduction" - }, - { - label: versions[0] + ' (Beta)', - to: "/docs/"+versions[0]+"/Overview/Introduction" - }, - { - label: versions[1] + ' (Stable)', - to: "/docs/"+versions[1]+"/Overview/Introduction" - }, - ...versions.slice(2, versions.length).map((version) => ({ - label: version, - to: `docs/${version}/Overview/Introduction`, - })) - ] - }, - { - type: 'doc', - position: 'right', - label: 'Use Cases', - to: 'livedemo', - docsPluginId: 'livedemo', - docId: 'EngineeringLeads/DORA', - }, - { - type: 'doc', - docId: 'index', - position: 'right', - label: 'Community', - docsPluginId: 'community' - }, - { - to: '/team', - label: 'Team', - position: 'right' - }, - { - to: '/blogOverview', - label: 'Blog', - position: 'right' - }, - { - to: 'https://github.com/apache/incubator-devlake', - label: 'GitHub', - position: 'right', - }, - { - type: 'dropdown', - label: 'Download', - position: 'right', - items: [ - { - label: 'Latest Release', - to: 'https://dist.apache.org/repos/dist/release/incubator/devlake', - }, - { - label: 'Older Releases', - to: 'https://archive.apache.org/dist/incubator/devlake', - } - ], - }, - { - type: 'dropdown', - label: 'ASF', - position: 'right', - items: [ - { - label: 'Foundation', - to: 'https://www.apache.org/', - }, - { - label: 'License', - to: 'https://www.apache.org/licenses/', - }, - { - label: 'Events', - to: 'https://www.apache.org/events/current-event', - }, - { - label: 'Security', - to: 'https://www.apache.org/security/', - }, - { - label: 'Privacy', - to: 'https://privacy.apache.org/policies/privacy-policy-public.html', - }, - { - label: 'Sponsorship', - to: 'https://www.apache.org/foundation/sponsorship.html', - }, - { - label: 'Thanks', - to: 'https://www.apache.org/foundation/thanks.html', - } - ], - }, - // { - // type: 'localeDropdown', - // position: 'right', - // }, - ], - }, - footer: { - style: 'dark', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Getting Started', - to: 'docs/GettingStarted', - }, - { - label: 'Data Models', - to: 'docs/DataModels/DevLakeDomainLayerSchema', - }, - { - label: 'Engineering Metrics', - to: 'docs/Metrics', - } - ], - }, - { - title: 'Community', - items: [ - { - label: 'Slack', - to: 'https://join.slack.com/t/devlake-io/shared_invite/zt-20envwfbk-JUTZ4z9jSeRnrvNhBFLg9w', - }, - { - label: 'GitHub Issue Tracker', - to: 'https://github.com/apache/incubator-devlake/issues', - }, - { - label: 'GitHub Issue Tracker For Docs', - to: 'https://github.com/apache/incubator-devlake-website/issues', - }, + ({ + metadata: [{ name: 'keywords', content: 'Engineering Productivity, Open-Source Engineering, Open-Source Integration Tools, Data Integrates Platform, Open-Source Dev Platform, Open-Source Data Integrates, DevOps Tools Integrates, Open-Source DevOps Tools' }], + navbar: { + title: 'Apache DevLake', + logo: { + alt: 'apache devlake', + src: 'img/logo.svg', + }, + items: [{ + // type: 'doc', + // docId: 'Overview/Introduction', + position: 'right', + label: 'Docs', + items: [{ + label: "Next", + to: "/docs/Overview/Introduction" + }, + { + label: versions[0] + ' (Beta)', + to: "/docs/" + versions[0] + "/Overview/Introduction" + }, + { + label: versions[1] + ' (Stable)', + to: "/docs/" + versions[1] + "/Overview/Introduction" + }, + ...versions.slice(2, versions.length).map((version) => ({ + label: version, + to: `docs/${version}/Overview/Introduction`, + })) + ] + }, + { + type: 'doc', + position: 'right', + label: 'Use Cases', + to: 'livedemo', + docsPluginId: 'livedemo', + docId: 'EngineeringLeads/DORA', + }, + { + type: 'doc', + docId: 'index', + position: 'right', + label: 'Community', + docsPluginId: 'community' + }, + { + to: '/team', + target: "_blank", + label: 'Team', + position: 'right' + }, + { + to: '/blogOverview', + target: "_blank", + label: 'Blog', + position: 'right' + }, + { + to: 'https://github.com/apache/incubator-devlake', + label: 'GitHub', + position: 'right', + }, + { + type: 'dropdown', + label: 'Download', + position: 'right', + items: [{ + label: 'Latest Release', + to: 'https://dist.apache.org/repos/dist/release/incubator/devlake', + }, + { + label: 'Older Releases', + to: 'https://archive.apache.org/dist/incubator/devlake', + } + ], + }, + { + type: 'dropdown', + label: 'ASF', + position: 'right', + items: [{ + label: 'Foundation', + to: 'https://www.apache.org/', + }, + { + label: 'License', + to: 'https://www.apache.org/licenses/', + }, + { + label: 'Events', + to: 'https://www.apache.org/events/current-event', + }, + { + label: 'Security', + to: 'https://www.apache.org/security/', + }, + { + label: 'Privacy', + to: 'https://privacy.apache.org/policies/privacy-policy-public.html', + }, + { + label: 'Sponsorship', + to: 'https://www.apache.org/foundation/sponsorship.html', + }, + { + label: 'Thanks', + to: 'https://www.apache.org/foundation/thanks.html', + } + ], + }, + // { + // type: 'localeDropdown', + // position: 'right', + // }, ], - }, - { - title: 'More', - items: [ - { - label: 'GitHub', - to: 'https://github.com/apache/incubator-devlake', - }, - { - label: 'Twitter', - to: 'https://twitter.com/ApacheDevLake', - }, - { - label: 'Trademark Guidelines', - to: 'community/trademark', - }, + }, + footer: { + style: 'dark', + links: [{ + title: 'Docs', + items: [{ + label: 'Getting Started', + to: 'docs/GettingStarted', + target: '_blank', + }, + { + label: 'Data Models', + to: 'docs/DataModels/DevLakeDomainLayerSchema', + target: '_blank', + }, + { + label: 'Engineering Metrics', + to: 'docs/Metrics', + target: '_blank', + } + ], + }, + { + title: 'Community', + items: [{ + label: 'Slack', + to: 'https://join.slack.com/t/devlake-io/shared_invite/zt-20envwfbk-JUTZ4z9jSeRnrvNhBFLg9w', + }, + { + label: 'GitHub Issue Tracker', + to: 'https://github.com/apache/incubator-devlake/issues', + }, + { + label: 'GitHub Issue Tracker For Docs', + to: 'https://github.com/apache/incubator-devlake-website/issues', + }, + ], + }, + { + title: 'More', + items: [{ + label: 'GitHub', + to: 'https://github.com/apache/incubator-devlake', + }, + { + label: 'Twitter', + to: 'https://twitter.com/ApacheDevLake', + }, + { + label: 'Trademark Guidelines', + to: 'community/trademark', + target: '_blank', + }, + ], + }, ], - }, - ], - copyright: ` + copyright: `
Apache Software Foundation

Apache DevLake is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright ©${new Date().getFullYear()} Apache DevLake, DevLake, Apache, the Apache feather logo and the Apache DevLake project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.

`, - }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - }, + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + }, }), themes: [ - [ - require.resolve('@easyops-cn/docusaurus-search-local'), - /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ - ({ - docsRouteBasePath: ['docs','livedemo', 'community', 'blog'], - hashed: true, - explicitSearchResultPath: true, - }), - ], + [ + require.resolve('@easyops-cn/docusaurus-search-local'), + /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */ + ({ + docsRouteBasePath: ['docs', 'livedemo', 'community', 'blog'], + hashed: true, + explicitSearchResultPath: true, + }), + ], ], -}); +}); \ No newline at end of file From ba92deb460443be1991042c59ae0acb12928bf67 Mon Sep 17 00:00:00 2001 From: decodersingh <107138786+decodersingh@users.noreply.github.com> Date: Tue, 30 Jan 2024 21:53:19 +0530 Subject: [PATCH 4/4] Fixes:Navbar --- docusaurus.config.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 74c719eb82d..60bfb02e675 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -146,19 +146,23 @@ const versions = require('./versions.json'); label: 'Docs', items: [{ label: "Next", - to: "/docs/Overview/Introduction" + to: "/docs/Overview/Introduction", + target: "_blank", }, { label: versions[0] + ' (Beta)', - to: "/docs/" + versions[0] + "/Overview/Introduction" + to: "/docs/" + versions[0] + "/Overview/Introduction", + target: "_blank", }, { label: versions[1] + ' (Stable)', - to: "/docs/" + versions[1] + "/Overview/Introduction" + to: "/docs/" + versions[1] + "/Overview/Introduction", + target: "_blank", }, ...versions.slice(2, versions.length).map((version) => ({ label: version, to: `docs/${version}/Overview/Introduction`, + target: "_blank", })) ] }, @@ -169,13 +173,15 @@ const versions = require('./versions.json'); to: 'livedemo', docsPluginId: 'livedemo', docId: 'EngineeringLeads/DORA', + target: "_blank", }, { type: 'doc', docId: 'index', position: 'right', label: 'Community', - docsPluginId: 'community' + docsPluginId: 'community', + target: "_blank", }, { to: '/team',