Skip to content

Commit

Permalink
Merge branch 'main' into INFRA3946--adding-linter
Browse files Browse the repository at this point in the history
  • Loading branch information
andgavavl committed Jul 2, 2024
2 parents b9e9d1e + 26aa667 commit 0495b81
Show file tree
Hide file tree
Showing 171 changed files with 3,820 additions and 395 deletions.
8 changes: 0 additions & 8 deletions app/(home)/course/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Link, { type LinkProps } from 'next/link';
import Image from 'next/image';
import { buttonVariants } from '@/components/ui/button';
import { cn } from '@/utils/cn';
import Spot from '@/public/spot.png';

const cardIconVariants = cva(
'mb-2 size-9 rounded-lg border p-1 shadow-sm shadow-primary/50',
Expand All @@ -24,13 +23,6 @@ export default function DocsPage(): React.ReactElement {
/>
</div>
<div className="absolute inset-0 z-[-1] select-none overflow-hidden opacity-30">
<Image
alt="spot"
src={Spot}
sizes="100vw"
className="size-full min-w-[800px] max-w-container"
priority
/>
</div>
<h1 className="mb-4 text-4xl font-semibold md:text-5xl">
Getting Started
Expand Down
2 changes: 1 addition & 1 deletion app/course/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function generateMetadata({ params }: { params: Param }): Metadata {
if (!page) notFound();

const description =
page.data.description ?? 'The library for building documentation sites';
page.data.description ?? 'Learn how to build on Avalanche blockchain with Academy';

const imageParams = new URLSearchParams();
imageParams.set('title', page.data.title);
Expand Down
27 changes: 27 additions & 0 deletions app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,30 @@
padding: 0 16px;
}

svg.lucide.lucide-box, svg.lucide.lucide-layers {
color: #E84142;
}

svg.lucide.lucide-bookmark {
color: #b821d5;
}

svg.lucide.lucide-terminal {
color: #ff5e13;
}

svg.lucide.lucide-users {
color: #8b54ff;
}

svg.lucide.lucide-binary {
color: #ce3427;
}

svg.lucide.lucide-rocket {
color: #ff2e2ec4;
}

svg.lucide.lucide-send {
color: #0070ff;
}
18 changes: 18 additions & 0 deletions components/gallery.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export default function Gallery({ url1, url2 } : { url1 : string, url2 : string }){
return (
<div className="row" style={{display: "flex"}}>
<div className="column">
<img
src={url1}
style={{ border: '1px solid rgb(220, 220, 220)' }}
/>
</div>
<div className="column">
<img
src={url2}
style={{ border: '1px solid rgb(220, 220, 220)' }}
/>
</div>
</div>
);
}
104 changes: 0 additions & 104 deletions content/blog/2024-5-15.mdx

This file was deleted.

51 changes: 0 additions & 51 deletions content/blog/2024-5-16.mdx

This file was deleted.

Binary file removed content/blog/img.png
Binary file not shown.
7 changes: 7 additions & 0 deletions content/blog/tbd.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Yet to Decide
description: TBD
author: TBD
---

TBD
84 changes: 0 additions & 84 deletions content/blog/why-docs.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion content/common/avalanche-starter-kit/set-up.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The Codespace will open in a new tab. Wait until it's fully built

Open the terminal with `` Ctrl + ` `` or by opening it through the menu:

![](/course-images/avalanche-starter-kit/new-terminal.png)
![](/common-images/avalanche-starter-kit/new-terminal.png)

Now enter avalanche -h to verify everything is working:

Expand Down
4 changes: 2 additions & 2 deletions content/common/codespaces/close-and-reopen-codespace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

The codespace time out after 30 minutes of inactivity by default. So if you are not too worried about the 30 hour/month limit, just close the window or the tab. Alternatively, you can open the command prompt (Cmd + Shift + P) and issue the Codespace: Stop Current Codespace.

![](/course-images/codespaces/stop-codespace.png)
![](/common-images/codespaces/stop-codespace.png)

# Reopen Codespaces
You can see your Codespaces on [github.com/codespaces/](https://github.com/codespaces/). There you can stop them, reopen them and delete them.

![](/course-images/codespaces/list-codespaces.png)
![](/common-images/codespaces/list-codespaces.png)
2 changes: 1 addition & 1 deletion content/common/evm-precompiles/precompiles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Precompiled contracts are a way to execute code written in the low-level coding

If you are familiar with Python programming, you might be familiar with a similar concept. Many Python functions and libraries are written in the programming language C, since it is much more efficient than Python. Python developers can import these precompile modules and call these functions just as if they were written in Python. The only difference is that the modules are faster and more efficient.

![Precompiles](/course-images/evm-precompiles/precompiles.png)
![Precompiles](/common-images/evm-precompiles/precompiles.png)

Precompiles can be called from a Solidity smart contract in the same way, as if they were another contract written in Solidity. The EVM keeps a list of addresses reserved and mapped to the precompiles. When a smart contract calls a function of a contract with an address on that list, the EVM executes the precompile written in Go instead of the smart contract.
For instance, if we mapped the address 0x030...01 to the SHA256 precompile that hashes its input using the SHA256 Hash Function, we can call the Precompile like this:
Expand Down
14 changes: 11 additions & 3 deletions content/common/intro/instructors.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Martin
## Martin Eckardt

# Andrea
Martin works as a Senior Developer Relations Engineer at Ava Labs.

# Ash
## Andrea

Andrea Vargas works as a DevRel Engineer at Ava Labs.

## Ash

Ash currently works as a DevRel Engineer at Ava Labs, the team behind Avalanche blockchain.

[Twitter](https://twitter.com/ashngmi) | [GitHub](https://github.com/ashucoder9) | [Website](https://ashngmi.xyz)
2 changes: 1 addition & 1 deletion content/common/primary-network/p-chain.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
In the Avalanche Network, the P-Chain of the Primary Network is responsible for all validator and Subnet-level operations. The P-Chain supports the creation of new blockchains and Subnets, the addition of validators to Subnets, staking operations, and other platform-level operations.

![P-Chain](/course-images/primary-network/p-chain.png)
![P-Chain](/common-images/primary-network/p-chain.png)

Each Avalanche validator can register a BLS public key alongside its NodeID on the Avalanche P-Chain. Validators of Subnets can stake different amounts of the Subnet's staking token. Through the P-Chain, we can determine a weighted set of BLS Public Keys that correspond to the validators of each Subnet on the Avalanche Network.

Expand Down
Loading

0 comments on commit 0495b81

Please sign in to comment.