This is an automated email from the ASF dual-hosted git repository. mikexue pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh-site.git
commit 74875f03b6ec1dfcd79722683c305085cf00d244 Author: Xiaoyang Liu <[email protected]> AuthorDate: Tue Jul 13 22:30:08 2021 +0800 Setup fonts, i18n, and links in navbar and footer Signed-off-by: Xiaoyang Liu <[email protected]> --- docusaurus.config.js | 101 +++++++++++++++++++++++++++++++++------------------ src/css/custom.css | 3 +- 2 files changed, 68 insertions(+), 36 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 0535857..a18363e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -3,20 +3,23 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { - title: 'My Site', - tagline: 'Dinosaurs are cool', - url: 'https://your-docusaurus-test-site.com', + title: 'Apache EventMesh', + tagline: 'Dynamic cloud-native eventing infrastruture', + url: 'https://eventmesh.apache.org', baseUrl: '/', - onBrokenLinks: 'throw', + onBrokenLinks: 'warn', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'apache', + projectName: 'incubator-eventmesh', + stylesheets: [ + 'https://fonts.googleapis.com/css2?family=Inter&display=swap', + ], themeConfig: { navbar: { - title: 'My Site', + title: 'Apache EventMesh', logo: { - alt: 'My Site Logo', + alt: 'Apache EventMesh Logo', src: 'img/logo.svg', }, items: [ @@ -24,25 +27,41 @@ module.exports = { type: 'doc', docId: 'intro', position: 'left', - label: 'Tutorial', + label: 'Docs', + }, + { + to: '/blog', + label: 'Blog', + position: 'left', }, - {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', - label: 'GitHub', - position: 'right', + to: '/contribute', + label: 'Contribute', + position: 'left', + }, + { + type: 'localeDropdown', + position: 'left', }, ], }, footer: { - style: 'dark', + style: 'light', links: [ { - title: 'Docs', + title: 'EventMesh', items: [ { - label: 'Tutorial', - to: '/docs/intro', + label: 'Documentation', + to: '/docs', + }, + { + label: 'Contribute', + to: '/contribute', + }, + { + label: 'Releases', + href: 'https://github.com/apache/incubator-eventmesh/releases', }, ], }, @@ -50,55 +69,67 @@ module.exports = { title: 'Community', items: [ { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', + label: 'GitHub', + href: 'https://github.com/apache/incubator-eventmesh', }, { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', + label: 'Issue Tracker', + href: 'https://github.com/apache/incubator-eventmesh/issues', }, { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', + label: 'Pull Requests', + href: 'https://github.com/apache/incubator-eventmesh/pulls', }, ], }, { - title: 'More', + title: 'Apache Software Foundation', items: [ { - label: 'Blog', - to: '/blog', + label: 'Foundation', + href: 'https://www.apache.org/', }, { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + label: 'License', + href: 'https://www.apache.org/licenses/LICENSE-2.0', + }, + { + label: 'Sponsorship', + href: 'https://www.apache.org/foundation/sponsorship.html', + }, + { + label: 'Code of Conduct', + href: 'https://www.apache.org/foundation/policies/conduct', + }, + { + label: 'Thanks', + href: 'http://www.apache.org/foundation/thanks.html', }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} The Apache Software Foundation.`, }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme, }, }, + i18n: { + defaultLocale: 'en', + locales: ['en', 'zh-hans'], + }, presets: [ [ '@docusaurus/preset-classic', { docs: { sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/', + editUrl: 'https://github.com/facebook/docusaurus/edit/master/', }, blog: { showReadingTime: true, - // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/blog/', + editUrl: 'https://github.com/facebook/docusaurus/edit/master/blog/', }, theme: { customCss: require.resolve('./src/css/custom.css'), diff --git a/src/css/custom.css b/src/css/custom.css index b3d3c3c..1e04591 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -7,7 +7,7 @@ /* You can override the default Infima variables here. */ :root { - --ifm-color-primary: #25c2a0; + --ifm-color-primary: #0077b6; --ifm-color-primary-dark: rgb(33, 175, 144); --ifm-color-primary-darker: rgb(31, 165, 136); --ifm-color-primary-darkest: rgb(26, 136, 112); @@ -15,6 +15,7 @@ --ifm-color-primary-lighter: rgb(102, 212, 189); --ifm-color-primary-lightest: rgb(146, 224, 208); --ifm-code-font-size: 95%; + --ifm-font-family-base: 'Inter', sans-serif; } .docusaurus-highlight-code-line { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
