From 3121b108b081e346d27e8ad73394ffad5990aadd Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 25 Aug 2021 23:14:50 +0100 Subject: [PATCH] Sets site info and adds logo assets --- docusaurus.config.js | 49 +++++++++++++----------- static/img/{dashy-512.png => dashy.png} | Bin static/img/favicon.ico | Bin 3626 -> 0 bytes 3 files changed, 26 insertions(+), 23 deletions(-) rename static/img/{dashy-512.png => dashy.png} (100%) delete mode 100644 static/img/favicon.ico diff --git a/docusaurus.config.js b/docusaurus.config.js index 7a4d4ce9..57c17f62 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,32 +1,36 @@ const lightCodeTheme = require('prism-react-renderer/themes/github'); const darkCodeTheme = require('prism-react-renderer/themes/dracula'); -const licenseUrl = 'https://github.com/Lissy93/dashy/blob/master/LICENSE'; -const aliciaUrl = 'https://aliciasykes.com'; -const dashyUrl = 'https://dashy.to'; +/* External URLs */ +const externalUrl = { + editUrl: 'https://github.com/Lissy93/dashy/edit/gh-pages/docs/', + licenseUrl: 'https://github.com/Lissy93/dashy/blob/master/LICENSE', + aliciaUrl: 'https://aliciasykes.com', + dashyUrl: 'https://dashy.to', +}; -const footerText = `Dashy - The Self-Hosted Dashboard for your Homelab` - + `
License under MIT. ` - + `Copyright © ${new Date().getFullYear()} Alicia Sykes`; +const footerText = `Dashy - The Self-Hosted Dashboard for your Homelab` + + `
License under MIT. ` + + `Copyright © ${new Date().getFullYear()} Alicia Sykes`; /** @type {import('@docusaurus/types').DocusaurusConfig} */ module.exports = { title: 'Dashy', tagline: 'The Ultimate Homepage for your Homelab', - url: 'https://dashy.to', + url: externalUrl.dashyUrl, baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', favicon: 'img/favicon.ico', - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + organizationName: 'lissy93', // Usually your GitHub org/user name. + projectName: 'dashy', // Usually your repo name. plugins: ['docusaurus-plugin-sass'], themeConfig: { navbar: { title: 'Dashy', logo: { - alt: 'My Site Logo', - src: 'img/dashy-512.png', + alt: 'Dashy Logo', + src: 'img/dashy.png', }, items: [ @@ -59,26 +63,26 @@ module.exports = { { label: 'Authentication', to: '/docs/deployment' }, { label: 'Alternate Views', to: '/docs/configuring' }, { label: 'Backup & Restore', to: '/docs/management' }, - { label: 'Icons', to: '/docs/troubleshooting' }, + { label: 'Icons', to: '/docs/icons' }, ], }, { title: 'Feature Docs Pt 2', items: [ - { label: 'Language Switching', to: '/docs/troubleshooting' }, - { label: 'Status Indicators', to: '/docs/troubleshooting' }, - { label: 'Searching & Shortcuts', to: '/docs/troubleshooting' }, - { label: 'Theming', to: '/docs/troubleshooting' }, + { label: 'Language Switching', to: '/docs/multi-language-support' }, + { label: 'Status Indicators', to: '/docs/status-indicators' }, + { label: 'Searching & Shortcuts', to: '/docs/searching' }, + { label: 'Theming', to: '/docs/theming' }, ], }, { - title: 'Developing & Community', + title: 'Community', items: [ { label: 'Developing', to: '/docs/deployment' }, { label: 'Development Guides', to: '/docs/configuring' }, { label: 'Contributing', to: '/docs/management' }, - { label: 'Showcase', to: '/docs/troubleshooting' }, - { label: 'Credits', to: '/docs/troubleshooting' }, + { label: 'Showcase', to: '/docs/showcase' }, + { label: 'Credits', to: '/docs/credits' }, ], }, { @@ -87,8 +91,8 @@ module.exports = { { label: 'Privacy & Security', to: '/docs/deployment' }, { label: 'License', to: '/docs/configuring' }, { label: 'Legal', to: '/docs/management' }, - { label: 'Code of Conduct', to: '/docs/troubleshooting' }, - { label: 'Changelog', to: '/docs/troubleshooting' }, + { label: 'Code of Conduct', to: '/docs/code-of-conduct' }, + { label: 'Changelog', to: '/docs/changelog' }, ], }, ], @@ -106,8 +110,7 @@ module.exports = { docs: { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. - editUrl: - 'https://github.com/facebook/docusaurus/edit/master/website/', + editUrl: externalUrl.editUrl, }, theme: { customCss: [ diff --git a/static/img/dashy-512.png b/static/img/dashy.png similarity index 100% rename from static/img/dashy-512.png rename to static/img/dashy.png diff --git a/static/img/favicon.ico b/static/img/favicon.ico deleted file mode 100644 index c01d54bcd39a5f853428f3cd5aa0f383d963c484..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3626 zcmb`Je@s(X6vrR`EK3%b%orErlDW({vnABqA zcfaS{d+xbU5JKp0*;0YOg+;Fl!eT)XRuapIwFLL`=imZCSon$`se`_<%@MB=M~KG+ z=EW^FL`w|Bo>*ktlaS^(fut!95`iG5u=SZ8nfDHO#GaTlH1-XG^;vsjUb^gWTVz0+ z^=WR1wv9-2oeR=_;fL0H7rNWqAzGtO(D;`~cX(RcN0w2v24Y8)6t`cS^_ghs`_ho? z{0ka~1Dgo8TfAP$r*ua?>$_V+kZ!-(TvEJ7O2f;Y#tezt$&R4 zLI}=-y@Z!grf*h3>}DUL{km4R>ya_I5Ag#{h_&?+HpKS!;$x3LC#CqUQ8&nM?X))Q zXAy2?`YL4FbC5CgJu(M&Q|>1st8XXLZ|5MgwgjP$m_2Vt0(J z&Gu7bOlkbGzGm2sh?X`){7w69Y$1#@P@7DF{ZE=4%T0NDS)iH`tiPSKpDNW)zmtn( zw;4$f>k)4$LBc>eBAaTZeCM2(iD+sHlj!qd z2GjRJ>f_Qes(+mnzdA^NH?^NB(^o-%Gmg$c8MNMq&`vm@9Ut;*&$xSD)PKH{wBCEC z4P9%NQ;n2s59ffMn8*5)5AAg4-93gBXBDX`A7S& zH-|%S3Wd%T79fk-e&l`{!?lve8_epXhE{d3Hn$Cg!t=-4D(t$cK~7f&4s?t7wr3ZP z*!SRQ-+tr|e1|hbc__J`k3S!rMy<0PHy&R`v#aJv?`Y?2{avK5sQz%=Us()jcNuZV z*$>auD4cEw>;t`+m>h?f?%VFJZj8D|Y1e_SjxG%J4{-AkFtT2+ZZS5UScS~%;dp!V>)7zi`w(xwSd*FS;Lml=f6hn#jq)2is4nkp+aTrV?)F6N z>DY#SU0IZ;*?Hu%tSj4edd~kYNHMFvS&5}#3-M;mBCOCZL3&;2obdG?qZ>rD|zC|Lu|sny76pn2xl|6sk~Hs{X9{8iBW zwiwgQt+@hi`FYMEhX2