Skip to content

Commit 6c907b2

Browse files
authored
fix mobile search issue + update llms.txt (#409)
* fix scrollbar issue * fix pixelated image * add redirect from a broken link * fix mobile footer 404 * fix #384 * add algolia search * remove the other search plugin * style search * remove nofollow * fix mobile search
1 parent 9a60c17 commit 6c907b2

File tree

2 files changed

+91
-87
lines changed

2 files changed

+91
-87
lines changed

src/css/docs.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,10 @@ details [class^='collapsibleContent_'] {
818818
@apply !flex !flex-row;
819819
}
820820

821+
.DocSearch-Reset {
822+
width: auto;
823+
}
824+
821825
[class^='navbarSearchContainer_'] {
822826
@apply lg:w-full;
823827
}

static/llms.txt

Lines changed: 87 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -11416,7 +11416,7 @@ pop --help
1141611416

1141711417
Start a new project quickly using Pop CLI `pop new contract` command:
1141811418

11419-
![pop new contract](/img/popnewcontract.gif)
11419+
<img src="/img/popnewcontract.gif" alt="pop new contract"/>
1142011420
Once the project is generated, move into the new directory and build your parachain:
1142111421

1142211422
```
@@ -11426,11 +11426,11 @@ pop build --release
1142611426

1142711427
Pop CLI integrates the [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) enabling you to easily spin up a local network for smart contract development and testing. This local environment is automatically launched when deploying your contract using the `pop up` command or running your e2e tests using the `pop test --e2e` command.
1142811428

11429-
![pop up contract](/img/popupcontract.gif)
11429+
<img src="/img/popupcontract.gif" alt="pop up contract"/>
1143011430
After deployment, you can easily interact with your smart contract using the `pop call contract` command:
1143111431

1143211432
### Interact with your contract
11433-
![pop call contract](/img/popcallcontract.gif)
11433+
<img src="/img/popcallcontract.gif" alt="pop call contract"/>
1143411434
## Where to Go Next
1143511435
For a comprehensive guide to all Pop CLI features and advanced usage, see the official [Pop CLI](https://learn.onpop.io/contracts) documentation.
1143611436

@@ -11604,6 +11604,90 @@ mod base_erc20 {
1160411604
```
1160511605
````
1160611606

11607+
## File: docs/getting-started/setup.md
11608+
````markdown
11609+
---
11610+
title: Setup
11611+
slug: /getting-started/setup
11612+
hide_title: true
11613+
---
11614+
11615+
![Setup Title Picture](/img/title/setup.svg)
11616+
11617+
# Setup
11618+
11619+
In case you are looking for a guided tutorial directed
11620+
towards beginners please check out our [Guided Tutorial](https://docs.substrate.io/tutorials/smart-contracts/).
11621+
11622+
## Rust & Cargo
11623+
11624+
A pre-requisite for compiling smart contracts is to have a stable Rust version and Cargo installed. Here's [an installation guide](https://doc.rust-lang.org/cargo/getting-started/installation.html).
11625+
11626+
## ink! CLI
11627+
11628+
The first tool we will be installing is [`cargo-contract`](https://github.com/use-ink/cargo-contract),
11629+
a CLI tool for helping setting up and managing WebAssembly smart contracts written with ink!.
11630+
11631+
You can find it [here on GitHub](https://github.com/use-ink/cargo-contract)
11632+
and [here on crates.io](https://crates.io/crates/cargo-contract).
11633+
11634+
The tool has a number of handy capabilities:
11635+
11636+
```
11637+
$ cargo contract
11638+
Utilities to develop Wasm smart contracts
11639+
11640+
Usage: cargo contract <COMMAND>
11641+
11642+
Commands:
11643+
new Setup and create a new smart contract project
11644+
build Compiles the contract, generates metadata, bundles both together in a `<name>.contract` file
11645+
check Check that the code builds as Wasm; does not output any `<name>.contract` artifact to the `target/` directory
11646+
test Test the smart contract off-chain
11647+
upload Upload contract code
11648+
instantiate Instantiate a contract
11649+
call Call a contract
11650+
decode Decodes a contracts input or output data (supplied in hex-encoding)
11651+
help Print this message or the help of the given subcommand(s)
11652+
11653+
Options:
11654+
-h, --help Print help information
11655+
-V, --version Print version information
11656+
```
11657+
11658+
:::tip Alternative
11659+
If you're looking for a more guided, all-in-one developer experience—including project scaffolding with multiple templates, local network setup, and contract interaction, you can also try [Pop CLI](../third-party-tools/pop-cli.md)
11660+
:::
11661+
### Installation
11662+
11663+
Please see the installation instructions in the `cargo-contract` repository [here](https://github.com/use-ink/cargo-contract#installation).
11664+
11665+
If everything worked, `cargo contract --help` should show you the above list of available commands.
11666+
11667+
## Installing `substrate-contracts-node`
11668+
11669+
The [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) is
11670+
a simple Substrate blockchain which is configured to include the Substrate module for
11671+
smart contract functionality – the `contracts` pallet (see [How it Works](../intro/how-it-works.md) for more).
11672+
It's a comfortable option if you want to get a quickstart.
11673+
11674+
There are two ways of installing the node:
11675+
11676+
### (1) Download the Binary
11677+
This is the recommended method, you can
11678+
[download a binary from our releases page](https://github.com/paritytech/substrate-contracts-node/releases)
11679+
(Linux and Mac).
11680+
11681+
### (2) Build it yourself
11682+
11683+
Alternatively you can build the node by yourself.
11684+
This can take quite a while though!
11685+
11686+
```bash
11687+
cargo install contracts-node
11688+
```
11689+
````
11690+
1160711691
## File: docs/third-party-tools/typink.md
1160811692
````markdown
1160911693
---
@@ -11717,90 +11801,6 @@ The following is a list of libraries which could be used to craft smart-contract
1171711801
- [polkascan/py-substrate-interface](https://github.com/polkascan/py-substrate-interface/blob/master/docs/usage/ink-contract-interfacing.md): Python library to interface with Substrate nodes.
1171811802
````
1171911803

11720-
## File: docs/getting-started/setup.md
11721-
````markdown
11722-
---
11723-
title: Setup
11724-
slug: /getting-started/setup
11725-
hide_title: true
11726-
---
11727-
11728-
![Setup Title Picture](/img/title/setup.svg)
11729-
11730-
# Setup
11731-
11732-
In case you are looking for a guided tutorial directed
11733-
towards beginners please check out our [Guided Tutorial](https://docs.substrate.io/tutorials/smart-contracts/).
11734-
11735-
## Rust & Cargo
11736-
11737-
A pre-requisite for compiling smart contracts is to have a stable Rust version and Cargo installed. Here's [an installation guide](https://doc.rust-lang.org/cargo/getting-started/installation.html).
11738-
11739-
## ink! CLI
11740-
11741-
The first tool we will be installing is [`cargo-contract`](https://github.com/use-ink/cargo-contract),
11742-
a CLI tool for helping setting up and managing WebAssembly smart contracts written with ink!.
11743-
11744-
You can find it [here on GitHub](https://github.com/use-ink/cargo-contract)
11745-
and [here on crates.io](https://crates.io/crates/cargo-contract).
11746-
11747-
The tool has a number of handy capabilities:
11748-
11749-
```
11750-
$ cargo contract
11751-
Utilities to develop Wasm smart contracts
11752-
11753-
Usage: cargo contract <COMMAND>
11754-
11755-
Commands:
11756-
new Setup and create a new smart contract project
11757-
build Compiles the contract, generates metadata, bundles both together in a `<name>.contract` file
11758-
check Check that the code builds as Wasm; does not output any `<name>.contract` artifact to the `target/` directory
11759-
test Test the smart contract off-chain
11760-
upload Upload contract code
11761-
instantiate Instantiate a contract
11762-
call Call a contract
11763-
decode Decodes a contracts input or output data (supplied in hex-encoding)
11764-
help Print this message or the help of the given subcommand(s)
11765-
11766-
Options:
11767-
-h, --help Print help information
11768-
-V, --version Print version information
11769-
```
11770-
11771-
:::tip Alternative
11772-
If you're looking for a more guided, all-in-one developer experience—including project scaffolding with multiple templates, local network setup, and contract interaction, you can also try [Pop CLI](../third-party-tools/pop-cli.md)
11773-
:::
11774-
### Installation
11775-
11776-
Please see the installation instructions in the `cargo-contract` repository [here](https://github.com/use-ink/cargo-contract#installation).
11777-
11778-
If everything worked, `cargo contract --help` should show you the above list of available commands.
11779-
11780-
## Installing `substrate-contracts-node`
11781-
11782-
The [substrate-contracts-node](https://github.com/paritytech/substrate-contracts-node) is
11783-
a simple Substrate blockchain which is configured to include the Substrate module for
11784-
smart contract functionality – the `contracts` pallet (see [How it Works](../intro/how-it-works.md) for more).
11785-
It's a comfortable option if you want to get a quickstart.
11786-
11787-
There are two ways of installing the node:
11788-
11789-
### (1) Download the Binary
11790-
This is the recommended method, you can
11791-
[download a binary from our releases page](https://github.com/paritytech/substrate-contracts-node/releases)
11792-
(Linux and Mac).
11793-
11794-
### (2) Build it yourself
11795-
11796-
Alternatively you can build the node by yourself.
11797-
This can take quite a while though!
11798-
11799-
```bash
11800-
cargo install contracts-node
11801-
```
11802-
````
11803-
1180411804
## File: docs/macros-attributes/contract.md
1180511805
````markdown
1180611806
---

0 commit comments

Comments
 (0)