Skip to content

Commit

Permalink
Fix Home Icon Issue (#654)
Browse files Browse the repository at this point in the history
* Fix Home Icon Issue

* Restore yarn.lock to its previous state
  • Loading branch information
andrewdmaclean authored May 7, 2024
1 parent 798afcd commit c96682f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 9 deletions.
4 changes: 1 addition & 3 deletions docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: Welcome to DevCycle
displayed_sidebar: home
title: Home
hide_table_of_contents: true
hide_title: false
---

import CustomDocCardList from '@site/src/components/CustomDocCardList'
Expand Down
3 changes: 1 addition & 2 deletions docs/sdk/index.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
title: SDK Overview
position: 1
sidebar_class_name: hidden
displayed_sidebar: sdks
hide_table_of_contents: true
---

import CustomDocCardList from '@site/src/components/CustomDocCardList'
Expand Down
8 changes: 4 additions & 4 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,15 +395,15 @@ const config = {
},
items: [
{
type: 'doc',
docId: 'index',
type: 'docSidebar',
sidebarId: 'home',
position: 'left',
collapse: 'false',
label: 'Home',
},
{
type: 'doc',
docId: 'sdk/index',
type: 'docSidebar',
sidebarId: 'sdks',
position: 'left',
collapse: 'false',
label: 'SDKs',
Expand Down
12 changes: 12 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
module.exports = {
home: [
{
type: 'doc',
label: 'Home',
className: 'section-title welcome',
id: 'index', // The internal path
},
{
type: 'category',
label: 'Introduction',
Expand Down Expand Up @@ -44,6 +50,12 @@ module.exports = {
},
],
sdks: [
{
type: 'doc',
label: 'SDK Overview',
className: 'section-title overview',
id: 'sdk/index', // The internal path
},
{
type: 'doc',
label: 'SDK Features',
Expand Down
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,14 @@ html[data-theme="dark"] .DocSearch {
background-image: url(../../static/sidebar/introduction.svg);
}

.section-title.welcome >a::before {
background-image: url(../../static/sidebar/hello.svg);
}

.section-title.overview >a::before {
background-image: url(../../static/sidebar/overview.svg);
}

.section-title.examples >a::before {
background-image: url(../../static/sidebar/examples.svg);
}
Expand Down
1 change: 1 addition & 0 deletions static/sidebar/hello.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/sidebar/overview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c96682f

Please sign in to comment.