Skip to content

Commit

Permalink
chore: seo (#64)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Apr 1, 2022
1 parent 0fd4603 commit 46945a2
Showing 1 changed file with 130 additions and 127 deletions.
257 changes: 130 additions & 127 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ const config = {
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: function ({ locale, docPath }) {
Expand All @@ -53,141 +52,145 @@ const config = {
trackingID: 'G-TZ94NZD7TN',
anonymizeIP: false,
},
}),
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
apiKey: '3ea338c2dd7e413e35e4075a48707fcb',
appId: '50KU9JDRGZ',
indexName: 'd7y.io',
contextualSearch: true,
algoliaOptions: {
hitsPerPage: 10,
},
themeConfig: {
metadata: [
{
name: 'keywords',
content: 'dragonfly, nydus, cncf, p2p, cloud-native, registry, containers, docker-image, accelerate-image',
},
navbar: {
title: 'Dragonfly',
logo: {
alt: 'Dragonfly',
src: 'img/logo.svg',
},
items: [
{
to: 'docs/',
label: 'Documentation',
position: 'left',
},
{
to: 'blog',
label: 'Blog',
position: 'left',
},
{
label: 'Community',
position: 'right',
href: 'https://github.com/dragonflyoss/Dragonfly2#community',
},
{
label: 'Nydus',
position: 'right',
href: 'https://nydus.dev/',
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/dragonflyoss/Dragonfly2',
className: 'header-github-link',
position: 'right',
},
],
],
algolia: {
apiKey: '3ea338c2dd7e413e35e4075a48707fcb',
appId: '50KU9JDRGZ',
indexName: 'd7y.io',
contextualSearch: true,
algoliaOptions: {
hitsPerPage: 10,
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Getting Started',
to: '/docs/',
},
{
label: 'Setup',
to: '/docs/setup/install/helm-charts',
},
{
label: 'Reference',
to: '/docs/reference/cli/cdn',
},
{
label: 'Contribute',
to: '/docs/contribute/development-guide/development',
},
{
label: 'Others',
to: '/docs/others/faqs',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack Channel',
href: 'https://cloud-native.slack.com/messages/dragonfly/',
},
{
html: '<div class="dingtalk"> <a class="dingtalk-label">DingTalk</a> <a class="dingtalk-img" aria-label="DingTalk"><img src="https://raw.githubusercontent.com/dragonflyoss/d7y.io/main/static/img/landing/dingtalk.jpg" alt="DingTalk Group"></div>',
},
{
label: 'Discussion Group',
href: 'mailto:[email protected]',
},
{
label: 'Developer Group',
href: 'mailto:[email protected]',
},
{
label: 'Github Discussions',
href: 'https://github.com/dragonflyoss/Dragonfly2/discussions',
},
{
label: 'Twitter',
href: 'https://twitter.com/dragonfly_oss',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/dragonflyoss/Dragonfly2',
},
],
},
],
copyright: `
},
navbar: {
title: 'Dragonfly',
logo: {
alt: 'Dragonfly',
src: 'img/logo.svg',
},
items: [
{
to: 'docs/',
label: 'Documentation',
position: 'left',
},
{
to: 'blog',
label: 'Blog',
position: 'left',
},
{
label: 'Community',
position: 'right',
href: 'https://github.com/dragonflyoss/Dragonfly2#community',
},
{
label: 'Nydus',
position: 'right',
href: 'https://nydus.dev/',
},
{
type: 'localeDropdown',
position: 'right',
},
{
href: 'https://github.com/dragonflyoss/Dragonfly2',
className: 'header-github-link',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Documentation',
items: [
{
label: 'Getting Started',
to: '/docs/',
},
{
label: 'Setup',
to: '/docs/setup/install/helm-charts',
},
{
label: 'Reference',
to: '/docs/reference/cli/cdn',
},
{
label: 'Contribute',
to: '/docs/contribute/development-guide/development',
},
{
label: 'Others',
to: '/docs/others/faqs',
},
],
},
{
title: 'Community',
items: [
{
label: 'Slack Channel',
href: 'https://cloud-native.slack.com/messages/dragonfly/',
},
{
html: '<div class="dingtalk"> <a class="dingtalk-label">DingTalk</a> <a class="dingtalk-img" aria-label="DingTalk"><img src="https://raw.githubusercontent.com/dragonflyoss/d7y.io/main/static/img/landing/dingtalk.jpg" alt="DingTalk Group"></div>',
},
{
label: 'Discussion Group',
href: 'mailto:[email protected]',
},
{
label: 'Developer Group',
href: 'mailto:[email protected]',
},
{
label: 'Github Discussions',
href: 'https://github.com/dragonflyoss/Dragonfly2/discussions',
},
{
label: 'Twitter',
href: 'https://twitter.com/dragonfly_oss',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/dragonflyoss/Dragonfly2',
},
],
},
],
copyright: `
<br />
<strong>© Dragonfly Authors ${new Date().getFullYear()} | Documentation Distributed under <a href="https://creativecommons.org/licenses/by/4.0">CC-BY-4.0</a> </strong>
<br />
<br />
© ${new Date().getFullYear()} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage/"> Trademark Usage</a> page.
`,
},
prism: {
theme: codeTheme,
},
}),
},
prism: {
theme: codeTheme,
},
},
};

module.exports = config;

0 comments on commit 46945a2

Please sign in to comment.