From 2f223f1b2833b737e448930f0ed6292b260e7e2f Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Sat, 17 Feb 2024 21:00:42 +0000 Subject: [PATCH] feat: remove categories link pages --- docs/architecture-concepts/_category_.json | 6 +----- docs/cli-application/_category_.json | 6 +----- docs/database/_category_.json | 6 +----- docs/digging-deeper/_category_.json | 6 +----- docs/getting-started/_category_.json | 6 +----- docs/orm/_category_.json | 6 +----- docs/rest-api-application/_category_.json | 6 +----- docs/testing/_category_.json | 6 +----- docs/the-basics/_category_.json | 6 +----- docusaurus.config.js | 7 +++++++ src/pages/index.module.css | 8 ++++++++ static/css/icons.css | 22 ++++++++++------------ static/css/root.css | 2 +- static/css/sidebar.css | 6 +++++- 14 files changed, 40 insertions(+), 59 deletions(-) diff --git a/docs/architecture-concepts/_category_.json b/docs/architecture-concepts/_category_.json index a1f3ea81..9db8e586 100644 --- a/docs/architecture-concepts/_category_.json +++ b/docs/architecture-concepts/_category_.json @@ -2,9 +2,5 @@ "label": "Architecture Concepts", "position": 3, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/architecture-concepts", - "description": "Understand how Athenna Framework works under the hood." - } + "link": null } diff --git a/docs/cli-application/_category_.json b/docs/cli-application/_category_.json index 74f880e8..b5685230 100644 --- a/docs/cli-application/_category_.json +++ b/docs/cli-application/_category_.json @@ -2,9 +2,5 @@ "label": "CLI Application", "position": 7, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/cli-application", - "description": "Understand how the Athenna CLI application works." - } + "link": null } diff --git a/docs/database/_category_.json b/docs/database/_category_.json index 71e5b73b..391aea86 100644 --- a/docs/database/_category_.json +++ b/docs/database/_category_.json @@ -2,9 +2,5 @@ "label": "Database", "position": 8, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/database", - "description": "See how to use the Athenna database component." - } + "link": null } diff --git a/docs/digging-deeper/_category_.json b/docs/digging-deeper/_category_.json index 9feba067..4e65c9ef 100644 --- a/docs/digging-deeper/_category_.json +++ b/docs/digging-deeper/_category_.json @@ -2,9 +2,5 @@ "label": "Digging Deeper", "position": 5, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/digging-deeper", - "description": "Digging deeper into Athenna Framework." - } + "link": null } diff --git a/docs/getting-started/_category_.json b/docs/getting-started/_category_.json index 8a72701f..7a829588 100644 --- a/docs/getting-started/_category_.json +++ b/docs/getting-started/_category_.json @@ -2,9 +2,5 @@ "label": "Getting Started", "position": 2, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/getting-started", - "description": "Get started with Athenna Framework." - } + "link": null } diff --git a/docs/orm/_category_.json b/docs/orm/_category_.json index 63ebcb61..175ca9c6 100644 --- a/docs/orm/_category_.json +++ b/docs/orm/_category_.json @@ -2,9 +2,5 @@ "label": "ORM", "position": 9, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/orm", - "description": "See how to configure a model in Athenna Framework." - } + "link": null } diff --git a/docs/rest-api-application/_category_.json b/docs/rest-api-application/_category_.json index 2e4e0d8f..63c4c12c 100644 --- a/docs/rest-api-application/_category_.json +++ b/docs/rest-api-application/_category_.json @@ -2,9 +2,5 @@ "label": "REST API Application", "position": 6, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/rest-api-application", - "description": "Understand how the Athenna REST API application works." - } + "link": null } diff --git a/docs/testing/_category_.json b/docs/testing/_category_.json index 6b1f37c3..1e1c2c9f 100644 --- a/docs/testing/_category_.json +++ b/docs/testing/_category_.json @@ -2,9 +2,5 @@ "label": "Testing", "position": 10, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/testing", - "description": "Understand how to create efficient tests in any Athenna application." - } + "link": null } diff --git a/docs/the-basics/_category_.json b/docs/the-basics/_category_.json index cd7cc7c5..f844c287 100644 --- a/docs/the-basics/_category_.json +++ b/docs/the-basics/_category_.json @@ -2,9 +2,5 @@ "label": "The Basics", "position": 4, "collapsed": true, - "link": { - "type": "generated-index", - "slug": "/the-basics", - "description": "Get to know the basic Athenna Framework functionalities." - } + "link": null } diff --git a/docusaurus.config.js b/docusaurus.config.js index 64407f63..b74cffdd 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -89,6 +89,13 @@ const config = { position: 'right', html: '', }, + { + href: 'https://twitter.com/athennaio', + 'aria-label': 'Twitter', + className: 'navbar__icon navbar__twitter', + position: 'right', + html: '', + }, ], }, prism: { diff --git a/src/pages/index.module.css b/src/pages/index.module.css index edaefe8e..dfdadd9f 100644 --- a/src/pages/index.module.css +++ b/src/pages/index.module.css @@ -137,6 +137,10 @@ } @media (min-width: 640px) { + .heroBanner { + padding: 10rem 5rem; + } + .imageSrc { max-width: 256px; max-height: 256px; @@ -189,6 +193,10 @@ } @media (min-width: 960px) { + .heroBanner { + padding: 10rem 5rem; + } + .container { flex-direction: row; } diff --git a/static/css/icons.css b/static/css/icons.css index f7c862f0..461f15e2 100644 --- a/static/css/icons.css +++ b/static/css/icons.css @@ -3,33 +3,31 @@ .navbar__icon { height: 2rem; width: 2rem; -} - -.navbar__github { -webkit-tap-highlight-color: transparent; display: flex; align-items: center; justify-content: center; border-radius: 50%; - font-size: 1.29rem; transition: background var(--ifm-transition-fast); } +.navbar__github { + font-size: 1.29rem; +} + .navbar__discord { - -webkit-tap-highlight-color: transparent; - display: flex; - align-items: center; - justify-content: center; - border-radius: 50%; font-size: 1.24rem; - transition: background var(--ifm-transition-fast); } -html[data-theme='light'] .navbar__github .navbar__discord { +.navbar__twitter { + font-size: 1.24rem; +} + +html[data-theme='light'] .navbar__github .navbar__discord .navbar__twitter { color: #000; } -html[data-theme='dark'] .navbar__github .navbar__discord { +html[data-theme='dark'] .navbar__github .navbar__discord .navbar__twitter { color: #fff; } diff --git a/static/css/root.css b/static/css/root.css index 00fd3e6f..b1957790 100644 --- a/static/css/root.css +++ b/static/css/root.css @@ -18,7 +18,7 @@ @media (min-width: 997px) { article > .markdown { - max-width: 78% !important; + max-width: 100% !important; font-size: 16px !important; margin-left: auto !important; margin-right: auto !important; diff --git a/static/css/sidebar.css b/static/css/sidebar.css index ec971597..5d051b28 100644 --- a/static/css/sidebar.css +++ b/static/css/sidebar.css @@ -23,4 +23,8 @@ .menu__link { padding: 10px !important; -} \ No newline at end of file +} + +.menu__link--sublist-caret:after { + background: none; +}