diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index b8cc48b..22503ff 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -6,20 +6,20 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'My Site', - tagline: 'Dinosaurs are cool', + title: 'Tianji', + tagline: 'Insight into everything', favicon: 'img/favicon.ico', // Set the production url of your site here - url: 'https://your-docusaurus-test-site.com', + url: 'https://tianji.msgbyte.com', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' baseUrl: '/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'msgbyte', // Usually your GitHub org/user name. + projectName: 'tianji', // Usually your repo name. onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -45,7 +45,7 @@ const config = { sidebarPath: require.resolve("./sidebars.js"), routeBasePath: "/", editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/msgbyte/tianji/tree/main/website/', }, theme: { customCss: require.resolve("./src/css/custom.css"), @@ -58,23 +58,23 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ // Replace with your project's social card - image: 'img/docusaurus-social-card.jpg', + image: 'img/social-card.jpg', navbar: { - title: 'My Site', + title: 'Tianji', logo: { - alt: 'My Site Logo', + alt: 'Tianji Logo', src: 'img/logo.svg', }, items: [ - { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', - position: 'left', - label: 'Tutorial', - }, + // { + // type: 'docSidebar', + // sidebarId: 'tutorialSidebar', + // position: 'left', + // label: 'Tutorial', + // }, { to: '/api', label: 'API', position: 'left' }, { - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/msgbyte/tianji', label: 'GitHub', position: 'right', }, @@ -83,47 +83,47 @@ const config = { footer: { style: 'dark', links: [ - { - title: 'Docs', - items: [ - { - label: 'Tutorial', - to: '/docs/intro', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', - }, - { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', - }, - ], - }, + // { + // title: 'Docs', + // items: [ + // { + // label: 'Tutorial', + // to: '/docs/intro', + // }, + // ], + // }, + // { + // title: 'Community', + // items: [ + // { + // label: 'Stack Overflow', + // href: 'https://stackoverflow.com/questions/tagged/docusaurus', + // }, + // { + // label: 'Discord', + // href: 'https://discordapp.com/invite/docusaurus', + // }, + // { + // label: 'Twitter', + // href: 'https://twitter.com/docusaurus', + // }, + // ], + // }, { title: 'More', items: [ { - label: 'Blog', - to: '/blog', + label: 'API', + to: '/api', }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/msgbyte/tianji', }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} Tianji, Inc. Built with Msgbyte.`, }, prism: { theme: lightCodeTheme, diff --git a/website/package.json b/website/package.json index 88f9e3f..3a2ef0e 100644 --- a/website/package.json +++ b/website/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "docusaurus": "docusaurus", - "start": "docusaurus start", + "dev": "docusaurus start", "build": "docusaurus build", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy", diff --git a/website/static/img/logo.svg b/website/static/img/logo.svg index 9db6d0d..e452887 100644 --- a/website/static/img/logo.svg +++ b/website/static/img/logo.svg @@ -1 +1,9 @@ - \ No newline at end of file + + + + + + + + + diff --git a/website/static/img/social-card.png b/website/static/img/social-card.png new file mode 100644 index 0000000..7b43b6f Binary files /dev/null and b/website/static/img/social-card.png differ