From 9bea382fd4bcadbc34520001cfd1433bf2003db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Zl=C3=A1mal?= Date: Tue, 20 Feb 2024 13:36:24 +0100 Subject: [PATCH] Update Docusaurus configuration --- docusaurus.config.js | 67 ++++++++++------------- src/components/HomepageFeatures/index.js | 29 +++------- static/img/128-blue-crunch.png | Bin 0 -> 2438 bytes 3 files changed, 36 insertions(+), 60 deletions(-) create mode 100644 static/img/128-blue-crunch.png diff --git a/docusaurus.config.js b/docusaurus.config.js index 6a814d0d6..cd537f210 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -10,7 +10,7 @@ import { themes as prismThemes } from 'prism-react-renderer'; const config = { title: 'Rossum.ai Cookbook', tagline: 'Build something cool with Rossum.ai', - favicon: 'img/favicon.ico', + favicon: 'img/128-blue-crunch.png', // Set the production url of your site here url: 'https://rossumai-community.github.io', @@ -42,17 +42,11 @@ const config = { ({ docs: { sidebarPath: './sidebars.js', - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + editUrl: 'https://github.com/rossumai-community/cookbook/tree/master/', }, blog: { showReadingTime: true, - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + editUrl: 'https://github.com/rossumai-community/cookbook/tree/master/', }, theme: { customCss: './src/css/custom.css', @@ -67,10 +61,10 @@ const config = { // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', navbar: { - title: 'Cookbook', + title: 'Rossum.ai Cookbook', logo: { - alt: 'My Site Logo', - src: 'img/logo.svg', + alt: 'Rossum.ai Logo', + src: 'img/128-blue-crunch.png', }, items: [ { @@ -85,13 +79,21 @@ const config = { position: 'left', label: 'Extensions', }, - { - type: 'docSidebar', - sidebarId: 'docusaurusSidebar', - position: 'left', - label: 'Docusaurus', - }, - { to: '/blog', label: 'Blog', position: 'left' }, + + // See: http://localhost:3000/cookbook/docs/docusaurus/intro + // { + // type: 'docSidebar', + // sidebarId: 'docusaurusSidebar', + // position: 'left', + // label: 'Docusaurus', + // }, + + // http://localhost:3000/cookbook/blog + // { + // to: '/blog', + // label: 'Blog', + // position: 'left', + // }, { href: 'https://github.com/rossumai-community/cookbook', label: 'GitHub', @@ -111,23 +113,6 @@ const config = { }, ], }, - { - 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: [ @@ -137,16 +122,22 @@ const config = { }, { label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + href: 'https://github.com/rossumai-community/cookbook', }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} Rossum.ai`, + }, + announcementBar: { + content: '🚧 Work in progress. 🚧', + backgroundColor: '#fff8e6', + isCloseable: false, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, + additionalLanguages: ['json'], }, }), }; diff --git a/src/components/HomepageFeatures/index.js b/src/components/HomepageFeatures/index.js index acc762199..fc9c1ba94 100644 --- a/src/components/HomepageFeatures/index.js +++ b/src/components/HomepageFeatures/index.js @@ -4,38 +4,23 @@ import styles from './styles.module.css'; const FeatureList = [ { - title: 'Easy to Use', + title: 'WIP', Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - description: ( - <> - Docusaurus was designed from the ground up to be easily installed and - used to get your website up and running quickly. - - ), + description: <>Work in progress., }, { - title: 'Focus on What Matters', + title: 'WIP', Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default, - description: ( - <> - Docusaurus lets you focus on your docs, and we'll do the chores. Go - ahead and move your docs into the docs directory. - - ), + description: <>Work in progress., }, { - title: 'Powered by React', + title: 'WIP', Svg: require('@site/static/img/undraw_docusaurus_react.svg').default, - description: ( - <> - Extend or customize your website layout by reusing React. Docusaurus can - be extended while reusing the same header and footer. - - ), + description: <>Work in progress., }, ]; -function Feature({Svg, title, description}) { +function Feature({ Svg, title, description }) { return (
diff --git a/static/img/128-blue-crunch.png b/static/img/128-blue-crunch.png new file mode 100644 index 0000000000000000000000000000000000000000..038bf0c58eaaf80deb59e79f80d2980f95720f7e GIT binary patch literal 2438 zcmV;133>L3P)C0001cP)t-sM{rC4 zXwLv`Tu&0B`63Z|DGT=m2l%0B`63Z|MMT=m2l&0B`63Z|DGW z?f`Z40Cx8PcliKw@c?k^0B`63Z|MMU=m2i$0B`63c>4fu=m2l&0B`94Z|DGT=m2l% z0B`63ap?eW=>Tr%0B`6|LOfdl001d;QchC<0RjaeJzag8tiaLS)000P)NklNG51SDO(W~i{f>%*`~WJM`gQoyGhn@#C`-ZO533Ci!w@3MVVAt z%^M+wXcR}OM&KU}ud^yCi%#fQ#aR0-PSRRQp|r6mu)hTDZ$>L2n>tPQ>{tAk@vHcd zaVNAzdGAe6_%Dmn!tv}7ua;W~N>50X?6hkPfHxoIF`{vNmqdhorx{jl-|dgJXz3?2 zLMH&zi2AtywRm~*tycw;w7Lr%-;zF!&`My%pW9BCcmq=A%7M3``wb4-{-pmqO z(8prF1&RyLwKQPOOj$6ZKBEIV^Z1vm)1UDkKR;X0?mDjyxFpfyfAHS_ynTMaZRhu) znGhzK?f|>5NS%h^4!6F&_1f!Kqg2!WuC%wqlLE%21(`OGl#=o`bbJqBln}h$RfqGs zjQ6OxT%QkBRx32*hi)nh;#T6GlhS`y{Cz76wsAafpE>=E5gL_AbyH5+0SmxY+lv$U z8)xiLL#gag-ha(VD~kI03u#q6Hd!MF8rOQa8SQ`(TDkrn-dZl}W66H8!-{tPd4Fs{ za%n5qxd@sZ#8t;iy`5k54aVE zU>cJAeS|>n(7_zOweEIi<1aMI(83d>wbLCi!mbkf*;kul6h3%{M%$)8NLYn`^Z_y| z*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