Skip to content

Commit 8932d38

Browse files
Merge branch 'solana-foundation:main' into main
2 parents ddf79ce + 96587aa commit 8932d38

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1544
-1426
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.github/*.md
1+
.github/*.md
2+
CODEOWNERS

CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# This is a comment.
21
# Each line is a file pattern followed by one or more owners.
32

43
# These global owners will be the default owners for everything in
@@ -9,3 +8,5 @@
98
# This list owns any file in the `/docs` directory in the root of
109
# the repository and any of its subdirectories.
1110
# /docs/ @nickfrosty
11+
12+
/content/courses/ @mikemaccana

MAINTAINERS.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,35 @@ translated content from Crowdin.
5353
It will first upload all the new content in the base language (i.e. when a page
5454
gets edited or newly created), then download all translations for all languages.
5555
The `deploy` action will then continue to build the content api normally.
56+
57+
### Testing and fixing broken translation files
58+
59+
Crowdin will often return altered and incorrectly formatted content files back
60+
when performing `crowdin download`. It may be helpful (and faster) to work with
61+
a single content file at a time by altering the content locally, uploading it to
62+
Crowdin, the downloading the Crowdin-altered version to see if the changes will
63+
actually work and not break the site.
64+
65+
To upload single content file to Crowdin specify the source path (`-s` flag) and
66+
the translation path (`-t` flag). Be sure to include the `%locale%` wildcard in
67+
the translation path:
68+
69+
```shell
70+
yarn crowdin upload -s docs/intro/installation.md -t i18n/%locale%/docs/intro/installation.md
71+
```
72+
73+
To download the Crowdin formatted content, download the entire locale using the
74+
`-l` flag and passing the locale short code. For example, downloading only the
75+
German (DE) translated content:
76+
77+
```shell
78+
yarn crowdin download -l de
79+
```
80+
81+
It may be helpful to also run the prettier formatter on the translation files,
82+
since this is normally performed by a GitHub action on deployment to catch and
83+
fix many formatting issues that Crowdin causes due to altering content:
84+
85+
```shell
86+
yarn prettier:i18n
87+
```

content/cookbook/development/start-local-validator.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Testing your program code locally can be a lot more reliable than testing on
88
devnet, and can help you test before trying it out on devnet.
99

1010
You can setup your local-test-validator by installing the
11-
[solana tool suite](/getting-started/installation.md#install-cli) and running
11+
[Solana CLI tool suite](/docs/intro/installation.md) and running the following
12+
command:
1213

1314
```shell
1415
solana-test-validator

content/cookbook/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
sidebarSortOrder: 0
33
title: Solana Cookbook
4-
seoTitle: Code examples for Solana development
4+
seoTitle: Solana Cookbook - Code examples for Solana development
55
description:
6-
"The Solana cookbook is a collection of useful examples and references for
7-
building on Solana"
6+
"The Solana Cookbook is a collection of code snippets, useful examples, and
7+
references for building on Solana."
88
---
99

1010
The _Solana Cookbook_ is a developer resource that provides examples and

content/cookbook/tokens/create-mint-account.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: How to Create a Token
33
sidebarSortOrder: 1
44
description: "Learn how to create tokens on Solana."
5+
altRoutes:
6+
- /developers/cookbook/tokens
57
---
68

79
Creating tokens is done by creating what is called a "mint account". This mint

content/cookbook/tokens/manage-wrapped-sol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ and creating token accounts specifically on the `NATIVE_MINT` address.
1111

1212
## Create Token Account
1313

14-
Like
15-
[Create Token Account](#https://solana.com/developers/cookbook/tokens/create-token-accounts)
16-
but replace mint with `NATIVE_MINT`
14+
Like creating
15+
[SPL token accounts](/content/cookbook/tokens/create-token-account.md) but
16+
replace mint with `NATIVE_MINT`
1717

1818
```js
1919
import { NATIVE_MINT } from "@solana/spl-token";

content/cookbook/transactions/add-priority-fees.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Units (CU) \* number of instructions, with a max of 1.4M CU. The Base Fee is
1212
5,000 Lamports per signature. A microLamport is 0.000001 Lamports.
1313

1414
> You can find a detailed guide here on
15-
> [how to use priority fees](https://solana.com/developers/guides/advanced/how-to-use-priority-fees).
15+
> [how to use priority fees](/content/guides/advanced/how-to-use-priority-fees.md).
1616
1717
The total compute budget or Prioritization Fee for a single TX can be changed by
1818
adding instructions from the ComputeBudgetProgram.

content/cookbook/transactions/calculate-cost.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ description:
99
The number of signatures a transaction requires are used to calculate the
1010
transaction cost. As long as you are not creating an account, this will be the
1111
base transaction cost. To find out more about costs to create an account, check
12-
out
13-
[calculating rent costs](https://solana.com/developers/cookbook/accounts/calculate-rent).
12+
out [calculating rent costs](/content/cookbook/accounts/calculate-rent.md).
1413

1514
```typescript filename="calculate-cost.ts"
1615
import {

content/cookbook/transactions/optimize-compute.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ the transaction is both processed in a timely manner as well as to avoid paying
88
too much in priority fees.
99

1010
For more information about requesting optimal compute,
11-
[check out the full guide](https://solana.com/developers/guides/advanced/how-to-request-optimal-compute).
11+
[check out the full guide](/content/guides/advanced/how-to-request-optimal-compute.md).
1212
You can also find more information about
13-
[using priority fees](https://solana.com/developers/guides/advanced/how-to-use-priority-fees)
14-
in this detailed guide.
13+
[using priority fees](/content/guides/advanced/how-to-use-priority-fees.md) in
14+
this detailed guide.
1515

1616
```typescript filename="optimize-compute.ts"
1717
// import { ... } from "@solana/web3.js"

0 commit comments

Comments
 (0)