Skip to content

Commit

Permalink
chore(docs): API docs stucture (#2014)
Browse files Browse the repository at this point in the history
This PR provides some structure for further api docs.

# Checklist:
Remove the checklist to signal you've completed it. Enable auto-merge if
the PR is ready to merge.
- [ ] If the pull request requires a cryptography review (e.g.
cryptographic algorithm implementations) I have added the 'crypto' tag.
- [ ] I have reviewed my diff in github, line by line and removed
unexpected formatting changes, testing logs, or commented-out code.
- [ ] Every change is related to the PR description.
- [ ] I have
[linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue)
this pull request to relevant issues (if any exist).
  • Loading branch information
PhilWindle authored Sep 6, 2023
1 parent 0c10958 commit 9aab9dd
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/api/aztec_rpc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Wallets and AztecRPC
---
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/api/contract_interaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Contract Interaction
---
9 changes: 9 additions & 0 deletions docs/docs/dev_docs/dapps/api/main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: API
---

## API Structure

- Discuss AztecRPC, it's purpose and what it's used for
- Discuss aztec.js and the generated typescript interfaces
- Links to other pages within this api section
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/tutorials/contract_deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Contract Deployment
---
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/tutorials/contract_interaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Contract Interactions
---
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/tutorials/creating_accounts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Creating Accounts
---
10 changes: 10 additions & 0 deletions docs/docs/dev_docs/dapps/tutorials/main.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Dapp Development Tutorials
---

Links to specific tutorials

- Connecting to the RPC Server
- Creating Accounts
- Deploying a contract
- Contract Interactions
3 changes: 3 additions & 0 deletions docs/docs/dev_docs/dapps/tutorials/rpc_server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Connecting to the RPC Server
---
36 changes: 36 additions & 0 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,42 @@ const sidebars = {
},
],
},
{
label: "DApp Development",
type: "category",
link: {
type: "doc",
id: "dev_docs/dapps/main",
},
items: [
{
label: "API",
type: "category",
link: {
type: "doc",
id: "dev_docs/dapps/api/main",
},
items: [
"dev_docs/dapps/api/aztec_rpc",
"dev_docs/dapps/api/contract_interaction",
],
},
{
label: "Tutorials",
type: "category",
link: {
type: "doc",
id: "dev_docs/dapps/tutorials/main",
},
items: [
"dev_docs/dapps/tutorials/rpc_server",
"dev_docs/dapps/tutorials/creating_accounts",
"dev_docs/dapps/tutorials/contract_deployment",
"dev_docs/dapps/tutorials/contract_interaction",
],
},
],
},

{
label: "Sandbox",
Expand Down

0 comments on commit 9aab9dd

Please sign in to comment.