Skip to content
Permalink
Browse files
Setup fonts, i18n, and links in navbar and footer
Signed-off-by: Xiaoyang Liu <siujoeng.lau@gmail.com>
  • Loading branch information
xiaoyang-sde committed Jul 13, 2021
1 parent ad46357 commit 74875f03b6ec1dfcd79722683c305085cf00d244
Showing 2 changed files with 68 additions and 36 deletions.
@@ -3,102 +3,133 @@ 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: [
{
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',
},
],
},
{
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'),
@@ -7,14 +7,15 @@

/* 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);
--ifm-color-primary-light: rgb(70, 203, 174);
--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 {

0 comments on commit 74875f0

Please sign in to comment.