Skip to content

Commit 410f1f3

Browse files
authored
docs: Fixup intra-doc links (#20)
#### Problem The intra-doc links are broken since they're still using the old-style relative paths from the Docusaurus days. #### Summary of changes Use absolute paths instead.
1 parent 74648ff commit 410f1f3

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

docs/content/docs/confidential-balances/encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ systems that are designed to work specifically for Pedersen commitments can be
2626
directly used on the twisted ElGamal ciphertexts.
2727

2828
We provide the formal description of the twisted ElGamal encryption in the
29-
[notes](./twisted_elgamal.pdf).
29+
[notes](/docs/confidential-balances/twisted_elgamal.pdf).
3030

3131
### Ciphertext Decryption
3232

docs/content/docs/confidential-balances/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ description: How to use the confidential transfer extension in Token-2022.
66
The Token-2022 program provides confidential transfer functionality through the
77
confidential transfer extension.
88

9-
Please see the [Token-2022 Introduction](../token-2022) for more general information
9+
Please see the [Token-2022 Introduction](/docs/token-2022) for more general information
1010
about Token-2022 and the concept of extensions.
1111

1212
## Setup
1313

14-
See the [Token Setup Guide](../token#setup) to install the client utilities.
14+
See the [Token Setup Guide](/docs/token#setup) to install the client utilities.
1515
Token-2022 shares the same CLI and NPM packages for maximal compatibility.
1616

1717
All of the commands here exist in a

docs/content/docs/confidential-balances/zkps.md renamed to docs/content/docs/confidential-balances/zkps.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ A public-key validity proof certifies that a twisted ElGamal public-key is a
271271
well-formed public key. The precise description of the system is specified in
272272
the following notes.
273273

274-
[[Notes]](./pubkey_proof.pdf)
274+
[[Notes]](/docs/confidential-balances/pubkey_proof.pdf)
275275

276276
The public-key validity proof is required for the `ConfigureAccount`
277277
instruction.
@@ -282,7 +282,7 @@ A ciphertext validity proof certifies that a twisted ElGamal ciphertext is a
282282
well-formed ciphertext. The precise description of the system is specified in
283283
the following notes.
284284

285-
[[Notes]](./validity_proof.pdf)
285+
[[Notes]](/docs/confidential-balances/validity_proof.pdf)
286286

287287
Validity proofs are required for the `Withdraw`, `Transfer`, and
288288
`TransferWithFee` instructions. These instructions require the client to include
@@ -296,7 +296,7 @@ A zero-balance proof certifies that a twisted ElGamal ciphertext encrypts the
296296
number zero. The precise description of the system is specified in the following
297297
notes.
298298

299-
[[Notes]](./zero_proof.pdf).
299+
[[Notes]](/docs/confidential-balances/zero_proof.pdf).
300300

301301
Zero-balance proofs are required for the `EmptyAccount` instruction, which
302302
prepares a token account for closing. An account may only be closed if the
@@ -315,7 +315,7 @@ _ciphertext-ciphertext_ equality proof certifies that two twisted ElGamal
315315
ciphertexts encrypt the same message. The precise description of the system is
316316
specified in the following notes.
317317

318-
[[Notes]](./equality_proof.pdf).
318+
[[Notes]](/docs/confidential-balances/equality_proof.pdf).
319319

320320
Ciphertext-commitment equality proofs are required for the `Transfer` and
321321
`TransferWithFee` instructions. Ciphertext-ciphertext equality proofs are

docs/content/docs/stake-pool/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ automatically use the latter address when targeting the devnet RPC.
2424
To get started with stake pools:
2525

2626
- [Install the Solana Tools](https://docs.solana.com/cli/install-solana-cli-tools)
27-
- [Install the Stake Pool CLI](./cli.md)
28-
- [Step through the quick start guide](./quickstart.md)
29-
- [Learn more about stake pools](./overview.md)
30-
- [Learn more about fees and monetization](./fees.md)
27+
- [Install the Stake Pool CLI](/docs/stake-pool/cli)
28+
- [Step through the quick start guide](/docs/stake-pool/quickstart)
29+
- [Learn more about stake pools](/docs/stake-pool/overview)
30+
- [Learn more about fees and monetization](/docs/stake-pool/fees)
3131

3232
## Source
3333

docs/content/docs/stake-pool/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ available at:
4949

5050
To reach a wider audience of users, stake pool managers are encouraged
5151
to provide a market for their pool's tokens, through an AMM
52-
like [Token Swap](../token-swap.md).
52+
like [Token Swap](/docs/token-swap).
5353

5454
Alternatively, stake pool managers can partner with wallet and stake account
5555
providers for direct SOL deposits.

docs/content/docs/token-2022/extensions.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
88
The Token-2022 program provides additional functionality on mints and token
99
accounts through an extension model.
1010

11-
Please see the [Token-2022 Introduction](.) for more general information
11+
Please see the [Token-2022 Introduction](/docs/token-2022) for more general information
1212
about Token-2022 and the concept of extensions.
1313

1414
## Setup
1515

16-
See the [Token Setup Guide](../token#setup) to install the client utilities.
16+
See the [Token Setup Guide](/docs/token#setup) to install the client utilities.
1717
Token-2022 shares the same CLI and NPM packages for maximal compatibility.
1818

1919
All JS examples are adapted from the tests, and available in full at the
@@ -111,7 +111,7 @@ possible to close the mint account and reclaim the lamports on the mint account.
111111
<Tab value="CLI">
112112

113113
```console
114-
$ spl-token close-mint C47NXhUTVEisCfX7s16KrxYyimnui7HpUXZecE2TmLdB
114+
$ spl-token close-mint C47NXhUTVEisCfX7s16KrxYyimnui7HpUXZecE2TmLdB
115115
Signature: 5nidwS9fJGJGdmaQjcwvNGVtk2ba5Zyu9ZLubjUKSsaAyzLUYvB6LK5RfUA767veBr45x7R1WW9N7WkYZ3Rqsb5B
116116
```
117117

@@ -1277,7 +1277,7 @@ it using the `authorize` command.
12771277

12781278
```console
12791279
$ spl-token authorize 7LUgoQCqhk3VMPhpAnmS1zdCFW4C6cupxgbqWrTwydGx permanent-delegate GFMniFoE5X4F87L9jzjHaW4MTkXyX1AYHNfhFencgamg
1280-
Updating 7LUgoQCqhk3VMPhpAnmS1zdCFW4C6cupxgbqWrTwydGx
1280+
Updating 7LUgoQCqhk3VMPhpAnmS1zdCFW4C6cupxgbqWrTwydGx
12811281
Current permanent delegate: 4SnSuUtJGKvk2GYpBwmEsWG53zTurVM8yXGsoiZQyMJn
12821282
New permanent delegate: GFMniFoE5X4F87L9jzjHaW4MTkXyX1AYHNfhFencgamg
12831283

@@ -1504,7 +1504,7 @@ harder.
15041504
#### Solution
15051505

15061506
To improve the situation, Token-2022 introduces the concept of the
1507-
[transfer-hook interface](../transfer-hook-interface)
1507+
[transfer-hook interface](/docs/transfer-hook-interface)
15081508
and extension. A token creator must develop and deploy a program that
15091509
implements the interface and then configure their token mint to use their program.
15101510

@@ -1544,7 +1544,7 @@ the transfer hook interface.
15441544

15451545
The example program and the interface are powered by the
15461546
[spl-tlv-account-resolution](https://github.com/solana-program/libraries/tree/main/tlv-account-resolution)
1547-
library, which is explained in detail in the repository's
1547+
library, which is explained in detail in the repository's
15481548
[README](https://github.com/solana-program/libraries/tree/main/tlv-account-resolution/README.md)
15491549

15501550
#### Example: Create a mint with a transfer hook

docs/content/docs/transfer-hook-interface/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Interface for an instruction called by token-2022 during transfers
55

66
During transfers, Token-2022 calls a mint's configured transfer hook program
77
using this interface, as described in the
8-
[Transfer Hook Extension Guide](../token-2022/extensions#transfer-hook).
8+
[Transfer Hook Extension Guide](/docs/token-2022/extensions#transfer-hook).
99
Additionally, a
1010
[reference implementation](https://github.com/solana-program/transfer-hook/tree/main/program)
1111
can be found in the SPL GitHub repository, detailing

docs/content/docs/transfer-hook-interface/specification.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ will live.
2727
- `n` number of additional accounts, written into the validation account
2828

2929
The **validation account** is a key piece of the Transfer Hook interface, and is
30-
covered in more detail in the [next section](./configuring-extra-accounts). In
30+
covered in more detail in the [next section](/docs/transfer-hook-interface/configuring-extra-accounts). In
3131
short, it's an account whose data stores configurations that can be deserialized
3232
to determine which additional accounts are required by the transfer hook
3333
program.

0 commit comments

Comments
 (0)