diff --git a/docusaurus.config.js b/docusaurus.config.js index f9bc30f7..d654517b 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -122,7 +122,7 @@ const config = { position: 'left', label: 'Project Information', items: [ - /* Temporarily commented out because these two documents are too large and depend on the Ambari project generation. + /* Temporarily commented out because these two documents are too large and depend on the Ambari project generation. They cannot be treated as static files pushed to git, and they also block the GitHub workflow process. { label: 'Old Version Website', @@ -157,10 +157,6 @@ const config = { target: '_blank', to: '/old/mail-lists.html', },*/ - { - label: "Project License", - href: 'https://www.apache.org/licenses/' - } ], }, { @@ -172,6 +168,46 @@ const config = { label: 'GitHub', position: 'right', }, + { + title: 'Legal', + type: 'dropdown', + position: 'left', + label: 'Apache', + items: [ + { + label: 'License', + href: 'https://www.apache.org/licenses/', + }, + { + label: 'Apache Software Foundation', + href: 'https://www.apache.org/', + }, + { + label: 'ApacheCon Events', + href: 'https://www.apachecon.com/', + }, + { + label: 'Privacy Policy', + href: 'https://privacy.apache.org/policies/privacy-policy-public.html', + }, + { + label: 'Security', + href: 'https://www.apache.org/security/', + }, + { + label: 'Trademarks', + href: 'https://www.apache.org/foundation/marks/', + }, + { + label: 'Sponsorship', + href: 'https://www.apache.org/foundation/sponsorship.html', + }, + { + label: 'Thanks our Sponsors', + href: 'https://www.apache.org/foundation/thanks.html', + }, + ], + }, ], }, footer: { @@ -182,12 +218,12 @@ const config = { theme: themes.github, darkTheme: themes.dracula, additionalLanguages: ['bash', 'diff', 'json'], - }, + } }), - plugins: [ - 'docusaurus-plugin-less', - require.resolve('./src/plugins/csp-plugin'), - ], -}; + plugins: [ + 'docusaurus-plugin-less', + require.resolve('./src/plugins/csp-plugin'), + ], + }; -export default config; +export default config; \ No newline at end of file diff --git a/sidebars.js b/sidebars.js index 9c43db40..8852d352 100644 --- a/sidebars.js +++ b/sidebars.js @@ -188,8 +188,56 @@ const sidebars = { "ambari-plugin-contribution/step-by-step" ] }, - "ambari-alerts" + "ambari-alerts", + { + "type": "category", + "label": "Apache", + "collapsible": true, + "collapsed": false, + "items": [ + { + "type": "link", + "label": "Foundation", + "href": "https://www.apache.org/" + }, + { + "type": "link", + "label": "Events", + "href": "https://www.apachecon.com/" + }, + { + "type": "link", + "label": "License", + "href": "https://www.apache.org/licenses/" + }, + { + "type": "link", + "label": "Thanks", + "href": "https://www.apache.org/foundation/thanks.html" + }, + { + "type": "link", + "label": "Security", + "href": "https://www.apache.org/security/" // if we have specific security.html, it should be here + }, + { + "type": "link", + "label": "Sponsorship", + "href": "https://www.apache.org/foundation/sponsorship.html" + }, + { + "type": "link", + "label": "Trademarks", + "href": "https://www.apache.org/foundation/marks/" + }, + { + "type": "link", + "label": "Privacy", + "href": "https://privacy.apache.org/policies/privacy-policy-public.html" + }, + ] + } ] }; -module.exports = sidebars; +module.exports = sidebars; \ No newline at end of file