Skip to content

Commit 80419b6

Browse files
Alexandra Tranjflo
authored andcommitted
Add plugins docs outline
Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>
1 parent 6f02329 commit 80419b6

File tree

25 files changed

+301
-11
lines changed

25 files changed

+301
-11
lines changed

docs/plugins/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Extend Besu using plugins
3+
sidebar_position: 1
4+
sidebar_label: Introduction
5+
id: index
6+
description: Besu plugins overview
7+
---
8+
9+
# Extend Hyperledger Besu using plugins

docs/private-networks/_category_.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/public-networks/.meta.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

docusaurus.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,13 @@ const config = {
107107
position: "left",
108108
label: "Private networks",
109109
},
110+
{
111+
type: "docSidebar",
112+
sidebarId: "pluginsDocSidebar",
113+
docId: "index",
114+
position: "left",
115+
label: "Plugins",
116+
},
110117
{
111118
href: "/public-networks/chatbot",
112119
className: "header-chatbot-link",
@@ -190,6 +197,31 @@ const config = {
190197
},
191198
],
192199
},
200+
{
201+
title: "Plugins",
202+
items: [
203+
{
204+
label: "Introduction",
205+
to: "/plugins",
206+
},
207+
{
208+
label: "How to guides",
209+
to: "/plugins/how-to",
210+
},
211+
{
212+
label: "Concepts",
213+
to: "/plugins/concepts",
214+
},
215+
{
216+
label: "Tutorials",
217+
to: "/plugins/tutorials",
218+
},
219+
{
220+
label: "Reference",
221+
to: "/plugins/reference",
222+
},
223+
],
224+
},
193225
{
194226
title: "Community",
195227
items: [

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const sidebars = {
33
publicDocSidebar: [{ type: "autogenerated", dirName: "public-networks" }],
44
privateDocSidebar: [{ type: "autogenerated", dirName: "private-networks" }],
5+
pluginsDocSidebar: [{ type: "autogenerated", dirName: "plugins" }],
56
};
67

78
module.exports = sidebars;

src/components/HomepageCards/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,18 @@ const CardList: CardItem[] = [
4444
buttonName: "Get started",
4545
buttonType: "secondary",
4646
},
47+
{
48+
title: "🔌 Plugins",
49+
link: "/plugins",
50+
// prettier-ignore
51+
description: (
52+
<>
53+
Extend Besu's functionality on both public and private networks using the Plugin API.
54+
</>
55+
),
56+
buttonName: "Get started",
57+
buttonType: "secondary",
58+
},
4759
];
4860

4961
function Card({ title, link, description, buttonName, buttonType }: CardItem) {
@@ -82,7 +94,7 @@ export default function HomepageCards(): JSX.Element {
8294
<p>
8395
Besu is an open source Ethereum client developed under the
8496
Apache 2.0 license and written in Java. It runs on public and private
85-
networks:
97+
networks. You can also extend Besu's functionality using plugins.
8698
</p>
8799
<div className="row">
88100
{CardList.map((props, idx) => (
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "Concepts",
3+
"position": 4,
4+
"link": {
5+
"type": "generated-index",
6+
"slug": "/plugins/concepts"
7+
}
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
sidebar_position: 2
3+
description: Learn about best practices with creating a plugin.
4+
---
5+
6+
# Best practices
7+
8+
TO DO: This page should contain an overview of best practices when creating plugins.
9+
This can include performance considerations and security best practices.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
sidebar_position: 1
3+
description: Learn about the plugin lifecycle.
4+
---
5+
6+
# Plugin lifecycle
7+
8+
TO DO: This page should contain an explanation of the plugin lifecycle.
9+
It can include a diagram of the lifecycle.
10+
It might take
11+
[this plugin lifecycle overview](https://www.youtube.com/watch?feature=shared&t=919&v=78sa2WuA1rg)
12+
as a starting point, with updates as needed.
13+
14+
This page should also explain "hooks," and how they can alter the lifecycle events within Besu.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"label": "Get started",
3+
"position": 2,
4+
"collapsed": false,
5+
"link": {
6+
"type": "generated-index",
7+
"slug": "/plugins/get-started"
8+
}
9+
}

0 commit comments

Comments
 (0)