Skip to content

Commit 92e90ab

Browse files
committed
fix: sidebar looks
1 parent d165725 commit 92e90ab

File tree

3 files changed

+81
-31
lines changed

3 files changed

+81
-31
lines changed

docs/getting-started/setup.md

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,49 +42,57 @@ curl https://sh.rustup.rs -sSf | sh
4242
Install [`cargo-contract`](https://github.com/use-ink/cargo-contract), a CLI tool for setting up and managing smart contracts written with ink!. To install `cargo-contract`, run the following command in your terminal:
4343

4444
```bash
45+
rustup component add rust-src
4546
cargo install --force --locked --version 6.0.0-beta cargo-contract
4647
```
4748

48-
## ink-node
49+
In addition to Rust, installation requires a C++ compiler that supports C++17.
50+
Modern releases of gcc and clang, as well as Visual Studio 2019+ should work.
4951

50-
For Pop CLI users, Pop automatically manages the local node for you.
52+
:::tip
53+
Looking to run the ink! linter locally? Follow the steps in the [linter setup guide](../development/linter/overview.md).
54+
:::
5155

52-
For cargo-contract users, the [ink-node](https://github.com/use-ink/ink-node) is
53-
a simple Polkadot SDK blockchain with smart contract functionality. It's a comfortable option for local development and testing.
56+
## ink-node
5457

55-
There are two ways of installing the node:
58+
For Pop CLI users, Pop automatically manages the local node for you.
5659

57-
### (1) Download the Binary
58-
Go to the [ink-node releases page](https://github.com/use-ink/ink-node/releases). Under `Assets` of the latest release, download the appropriate binary for your platform:
59-
- **Linux (ARM64)**: `ink-node-linux-arm64.tar.gz`
60-
- **Linux (x86)**: `ink-node-linux.tar.gz`
61-
- **macOS**: `ink-node-mac-universal.tar.gz`
60+
For cargo-contract users, the [ink-node](https://github.com/use-ink/ink-node) is
61+
a simple Polkadot SDK blockchain with smart contract functionality. It's a comfortable option for local development and testing.
6262

63-
Make the binary executable:
64-
```bash
65-
chmod +x ./ink-node
66-
```
63+
There are two ways of installing the node:
6764

68-
**For macOS users:**
69-
When you first try to run `ink-node`, macOS may show a security warning.
65+
### (1) Download the Binary
66+
Go to the [ink-node releases page](https://github.com/use-ink/ink-node/releases). Under `Assets` of the latest release, download the appropriate binary for your platform:
67+
- **Linux (ARM64)**: `ink-node-linux-arm64.tar.gz`
68+
- **Linux (x86)**: `ink-node-linux.tar.gz`
69+
- **macOS**: `ink-node-mac-universal.tar.gz`
7070

71-
To allow the binary to run:
72-
1. Click the **question mark (?)** icon at the right top corner of the warning.
73-
2. Follow the Apple instructions that appear.
74-
3. Try running `ink-node` again and click **"Open Anyway"** when prompted.
71+
Make the binary executable:
72+
```bash
73+
chmod +x ./ink-node
74+
```
7575

76-
To confirm that `ink-node` is working correctly, run:
77-
```bash
78-
./ink-node --version
79-
```
80-
If you see version information, your installation is successful!
76+
**For macOS users:**
77+
When you first try to run `ink-node`, macOS may show a security warning.
78+
79+
To allow the binary to run:
80+
1. Click the **question mark (?)** icon at the right top corner of the warning.
81+
2. Follow the Apple instructions that appear.
82+
3. Try running `ink-node` again and click **"Open Anyway"** when prompted.
83+
84+
To confirm that `ink-node` is working correctly, run:
85+
```bash
86+
./ink-node --version
87+
```
88+
If you see version information, your installation is successful!
8189

82-
### (2) Build it yourself
90+
### (2) Build it yourself
8391

84-
Alternatively, you can build the node by yourself.
85-
This can take a while though!
92+
Alternatively, you can build the node by yourself.
93+
This can take a while though!
8694

87-
The build instructions and pre-requisites can be found
88-
[here](https://github.com/use-ink/ink-node?tab=readme-ov-file#build-locally).
95+
The build instructions and pre-requisites can be found
96+
[here](https://github.com/use-ink/ink-node?tab=readme-ov-file#build-locally).
8997
</TabItem>
9098
</Tabs>

docs/intro/sub0-hackathon.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: sub0 Hackathon 2025
2+
title: Sub0 Hackathon 2025
33
hide_title: true
44
slug: /sub0-hackathon-2025
55
hide_table_of_contents: true

src/css/docs.css

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,52 @@ ul.menu__list li a {
546546
border-radius: 8px;
547547
}
548548

549+
.theme-doc-sidebar-item-link-level-1.menu__list-item:not(:first-child),
549550
.theme-doc-sidebar-item-category-level-1.menu__list-item:not(:first-child) {
550551
margin-top: 0.55rem !important;
551552
}
552553

554+
.theme-doc-sidebar-item-link-level-1.menu__list-item {
555+
border: 1px solid rgba(140, 124, 247, 0.1);
556+
border-radius: 12px;
557+
background: linear-gradient(90deg, rgba(140, 124, 247, 0.06) 0%, rgba(255, 255, 255, 0) 84.6847%);
558+
}
559+
560+
.theme-doc-sidebar-item-link-level-1.menu__list-item > .menu__link {
561+
display: flex;
562+
align-items: center;
563+
gap: 0.75rem;
564+
font-weight: 600;
565+
}
566+
567+
.theme-doc-sidebar-item-link-level-1.menu__list-item > .menu__link::after {
568+
content: '';
569+
width: 14px;
570+
height: 14px;
571+
margin-left: auto;
572+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' style='transform: rotate(-90deg);' stroke='currentColor' fill='none' stroke-width='2' height='14' width='14' class='x:shrink-0 x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5 x:motion-reduce:*:transition-none origin-center rtl:-rotate-270'%3E%3Cpath d='M9 5l7 7-7 7' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/svg%3E")
573+
no-repeat center center;
574+
opacity: 0.7;
575+
transition:
576+
opacity 0.2s ease-in-out,
577+
transform 0.2s ease-in-out;
578+
}
579+
580+
.theme-doc-sidebar-item-link-level-1.menu__list-item > .menu__link:hover::after {
581+
opacity: 1;
582+
transform: translateX(4px);
583+
}
584+
585+
[data-theme='dark'] .theme-doc-sidebar-item-link-level-1.menu__list-item {
586+
background: linear-gradient(90deg, rgba(140, 124, 247, 0.08) 0%, rgba(255, 255, 255, 0) 84.6847%);
587+
border-color: rgba(140, 124, 247, 0.18);
588+
}
589+
590+
[data-theme='light'] .theme-doc-sidebar-item-link-level-1.menu__list-item {
591+
background: linear-gradient(90deg, rgba(140, 124, 247, 0.15) 0%, rgba(140, 124, 247, 0.05) 100%);
592+
border-color: rgba(140, 124, 247, 0.2);
593+
}
594+
553595
.theme-doc-sidebar-item-link-level-2.menu__list-item {
554596
margin-top: 0rem !important;
555597
}

0 commit comments

Comments
 (0)