Skip to content

Commit 6b8436c

Browse files
kerryweiorodio
authored andcommitted
use relative link when referring to FCL documents
1 parent be8dbcb commit 6b8436c

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ npm i -S @onflow/fcl @onflow/types
3333
yarn add @onflow/fcl @onflow/types
3434
```
3535

36-
### Learn to use `@onflow/fcl`: [Flow App Quickstart](https://docs.onflow.org/fcl/flow-app-quickstart/)
36+
### Learn to use `@onflow/fcl`: [Flow App Quickstart](./docs/tutorials/flow-app-quickstart.mdx)
3737

3838
---
3939
## Requirements

docs/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ npm i -S @onflow/fcl @onflow/types
5656

5757
```
5858

59-
### Learn to use `@onflow/fcl`: [Flow App Quickstart](https://docs.onflow.org/fcl/tutorials/flow-app-quickstart/)
59+
### Learn to use `@onflow/fcl`: [Flow App Quickstart](tutorials/flow-app-quickstart.mdx)
6060

6161
---
6262

docs/tutorials/flow-app-quickstart.mdx

+9-9
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ config({
6363
The `accessNode.api` key specifies the address of a Flow access node. Flow provides these, but in the future access to Flow may be provided by other 3rd parties, through their own access nodes.
6464
`discovery.wallet` is an address that points to a service that lists FCL compatible wallets. Flow's FCL Discovery service is a service that FCL wallet providers can be added to, and be made 'discoverable' to any application that uses the `discovery.wallet` endpoint.
6565

66-
Learn more about configuration values [here](https://docs.onflow.org/fcl/reference/api/#setting-configuration-values).
66+
Learn more about configuration values [here](../reference/api.md#setting-configuration-values).
6767

6868
To finish configuring our dapp, let's import the config file into the top of our `App.js` file, then swap out the default component in `App.js` to look like this:
6969

@@ -88,7 +88,7 @@ Now we're ready to start talking to Flow!
8888

8989
## Authentication
9090

91-
To authenticate a user, all an app has to do is call `fcl.logIn()`. Sign up and unauthenticate are all also as simple as `fcl.signUp()` and `fcl.unauthenticate()`. Once authenticated, FCL sets an object called `fcl.currentUser` which exposes methods for watching changes in user data, signing transactions, and more. For more information on the `currentUser`, read more [here](https://docs.onflow.org/fcl/reference/api/#current-user).
91+
To authenticate a user, all an app has to do is call `fcl.logIn()`. Sign up and unauthenticate are all also as simple as `fcl.signUp()` and `fcl.unauthenticate()`. Once authenticated, FCL sets an object called `fcl.currentUser` which exposes methods for watching changes in user data, signing transactions, and more. For more information on the `currentUser`, read more [here](../reference/api.md#current-user).
9292

9393
Let's add in a few buttons for sign up/login and also subscribe to changes on the `currentUser`. When the user is updated (which it will be after authentication), we'll set the user state in our component to reflect this. To demonstrate user authenticated sessions, we'll conditionally render a component based on if the user is or is not logged in.
9494

@@ -252,7 +252,7 @@ await fcl.query({
252252
253253
Inside the query you'll see we set two things: `cadence` and `args`. Cadence is Flow's smart contract language we mentioned. For this tutorial, when you look at it you just need to notice that it's importing the `Profile` contract from the account we named `0xProfile` earlier in our config file, then also taking an account address, and reading it. That's it until you're ready to [learn more Cadence](https://docs.onflow.org/cadence/tutorial/01-first-steps/).
254254
255-
In the `args` section, we are simply passing it our user's account address from the user we set in state after authentication and giving it a type of `Address`. For more possible types, [see this reference](https://docs.onflow.org/fcl/reference/api/#ftype).
255+
In the `args` section, we are simply passing it our user's account address from the user we set in state after authentication and giving it a type of `Address`. For more possible types, [see this reference](../reference/api.md#ftype).
256256
257257
Go ahead and click the "Send Query" button. You should see "No Profile." That's because we haven't initialized the account yet.
258258
@@ -555,7 +555,7 @@ export default App;
555555

556556
```
557557
558-
Now if you click the "Execute Transaction" button you'll see the statuses update next to "Transaction Status." When you see "4" that means it's sealed! Status code meanings [can be found here](https://docs.onflow.org/fcl/reference/api/#transaction-statuses).
558+
Now if you click the "Execute Transaction" button you'll see the statuses update next to "Transaction Status." When you see "4" that means it's sealed! Status code meanings [can be found here](../reference/api.md#transaction-statuses).
559559
560560
That's it! You now have a shippable Flow dapp that can auth, query, init accounts, and mutate the chain. This is just the beginning. There is so much more to know. We have a lot more resources to help you build. To dive deeper, here are a few good places for taking the next steps:
561561
@@ -569,11 +569,11 @@ That's it! You now have a shippable Flow dapp that can auth, query, init account
569569
- [Advanced Example: Kitty Items](https://github.com/onflow/kitty-items)
570570
571571
**More FCL**
572-
- [FCL API Quick Reference](https://docs.onflow.org/fcl/reference/api/)
573-
- [More on Scripts](https://docs.onflow.org/fcl/reference/scripts/)
574-
- [More on Transactions](https://docs.onflow.org/fcl/reference/transactions/)
575-
- [User Signatures](https://docs.onflow.org/fcl/reference/user-signatures/)
576-
- [Proving Account Ownership](https://docs.onflow.org/fcl/reference/proving-authentication/)
572+
- [FCL API Quick Reference](../reference/api.md)
573+
- [More on Scripts](../reference/scripts.mdx)
574+
- [More on Transactions](../reference/transactions.mdx)
575+
- [User Signatures](../reference/user-signatures.mdx)
576+
- [Proving Account Ownership](../reference/proving-authentication.mdx)
577577
578578
**Other**
579579
- [Flow Developer Onboarding Guide](https://docs.onflow.org/dapp-development/)

0 commit comments

Comments
 (0)