Skip to content

Commit 2f054ee

Browse files
authored
fix: general fixes to the handbook and aztec handbook (#109)
Fix issues with aztec handbook sidebar
1 parent 94c2053 commit 2f054ee

11 files changed

Lines changed: 81 additions & 19 deletions

File tree

packages/common-config/src/components/CategoryCards/styles.module.css

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@
77
margin-top: 1.5rem;
88
padding: 0 0;
99
margin-bottom: 2rem;
10-
max-width: 66rem;
10+
max-width: 80rem;
1111
justify-items: center;
1212
}
1313

1414
.categoryCard {
1515
background: rgba(255, 255, 255, 0.08);
1616
height: 7.5rem;
17-
width: 15.6rem;
17+
width: 100%;
1818
border: 1px solid rgba(255, 255, 255, 0.2);
1919
border-radius: 10px;
2020
display: flex;
2121
align-items: center;
2222
justify-content: center;
2323
gap: 0.75rem;
24+
padding: 0 1rem; /* provide breathing room so long titles don't clip */
25+
box-sizing: border-box;
2426
transition: all 0.3s ease;
2527
text-decoration: none !important;
2628
position: relative;
@@ -84,7 +86,7 @@
8486
-apple-system,
8587
sans-serif;
8688
font-weight: 500;
87-
font-size: 1rem;
89+
font-size: 0.9rem;
8890
line-height: 1.2;
8991
padding-top: 0.15em;
9092
color: var(--wonderland-gray-100);
@@ -95,6 +97,7 @@
9597
position: relative;
9698
z-index: 1;
9799
text-decoration: none !important;
100+
white-space: nowrap;
98101
}
99102

100103
.categoryTitle::after {
@@ -116,7 +119,7 @@
116119
}
117120

118121
.categoryTitle {
119-
font-size: 0.8rem;
122+
font-size: 0.75rem;
120123
}
121124
.categoryIcon {
122125
width: 30px;
@@ -143,7 +146,7 @@
143146
}
144147

145148
.categoryTitle {
146-
font-size: 1rem;
149+
font-size: 0.75rem; /* keep smaller on narrower screens to prevent overflow */
147150
}
148151
.categoryIcon {
149152
width: 40px;

sites/aztec/docs/block-production/fallback-mechanisms.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

sites/aztec/docs/block-production/proving.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

sites/aztec/docs/consensus-block-production/overview.md

Whitespace-only changes.

sites/aztec/sidebars.ts

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,56 @@ const sidebars: SidebarsConfig = {
6565
'stack/wrapping-up'
6666
],
6767
},
68+
{
69+
type: 'category',
70+
label: 'Contracts',
71+
collapsible: false,
72+
collapsed: false,
73+
link: {
74+
type: 'doc',
75+
id: 'contracts/overview',
76+
},
77+
items: [
78+
{
79+
type: 'category',
80+
label: 'Account Contracts',
81+
items: [
82+
'contracts/account-contracts/overview',
83+
'contracts/account-contracts/account-contracts',
84+
'contracts/account-contracts/authwit'
85+
],
86+
},
87+
{
88+
type: 'category',
89+
label: 'Dumb Contracts',
90+
items: [
91+
'contracts/dumb-contracts/overview',
92+
'contracts/dumb-contracts/design',
93+
'contracts/dumb-contracts/state',
94+
],
95+
},
96+
{
97+
type: 'doc',
98+
label: 'Wrapping Up',
99+
id: 'contracts/wrapping-up',
100+
},
101+
],
102+
},
103+
// {
104+
// type: 'category',
105+
// label: 'Block Production',
106+
// collapsible: false,
107+
// collapsed: false,
108+
// link: {
109+
// type: 'doc',
110+
// id: 'block-production/overview',
111+
// },
112+
// items: [
113+
// 'block-production/sequencing',
114+
// 'block-production/proving',
115+
// 'block-production/fallback-mechanisms',
116+
// ],
117+
// },
68118
{
69119
type: 'category',
70120
label: 'Block Production',
@@ -76,8 +126,6 @@ const sidebars: SidebarsConfig = {
76126
},
77127
items: [
78128
'block-production/sequencing',
79-
'block-production/proving',
80-
'block-production/fallback-mechanisms',
81129
],
82130
},
83131
],

sites/aztec/src/css/local.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,19 @@
2121

2222
.menu__list-item-collapsible .menu__link[href^="/docs/stack"]::before {
2323
content: "";
24-
background-image: url("/img/icons/stack-icon-filled.svg");
24+
background-image: url("/img/icons/stack-icon.svg");
25+
background-size: 1rem 1rem;
26+
background-repeat: no-repeat;
27+
background-position: center;
28+
width: 1rem;
29+
height: 1rem;
30+
display: inline-block;
31+
margin-right: 0.5rem;
32+
}
33+
34+
.menu__list-item-collapsible .menu__link[href^="/docs/block-production"]::before {
35+
content: "";
36+
background-image: url("/img/icons/processes-icon.svg");
2537
background-size: 1rem 1rem;
2638
background-repeat: no-repeat;
2739
background-position: center;
@@ -96,6 +108,9 @@
96108
.theme-doc-sidebar-item-category
97109
.menu__list-item-collapsible
98110
.menu__link[href^="/docs/privacy"],
111+
.theme-doc-sidebar-item-category
112+
.menu__list-item-collapsible
113+
.menu__link[href^="/docs/block-production"],
99114
.theme-doc-sidebar-item-category
100115
.menu__list-item-collapsible
101116
.menu__link[href^="/docs/contracts"] {
Lines changed: 3 additions & 3 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)