Skip to content

Commit

Permalink
add private and public sections tags (#1127)
Browse files Browse the repository at this point in the history
* add private and public sections tags
* Add private networks tag to some public pages

Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>
Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>
Co-authored-by: Alexandra Tran <12214231+alexandratran@users.noreply.github.com>
Co-authored-by: Alexandra Tran <alexandra.tran@consensys.net>
  • Loading branch information
3 people committed Aug 19, 2022
1 parent 144a6f3 commit d63f146
Show file tree
Hide file tree
Showing 45 changed files with 131 additions and 3 deletions.
6 changes: 6 additions & 0 deletions docs/private-networks/.meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# Meta idems setting with yaml files is an insider only feature
# see https://squidfunk.github.io/mkdocs-material/reference/#built-in-meta-plugin

tags:
- private networks
5 changes: 5 additions & 0 deletions docs/private-networks/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
# page icon, insider only, see https://squidfunk.github.io/mkdocs-material/reference/#setting-the-page-icon
icon: material/book-lock-outline
description: Private networks overview
# hide feedback on this page as it's just an index page with not much content
hide:
- feedback
---

# Hyperledger Besu for private networks
Expand Down
6 changes: 6 additions & 0 deletions docs/public-networks/.meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# Meta idems setting with yaml files is an insider only feature
# see https://squidfunk.github.io/mkdocs-material/reference/#built-in-meta-plugin

tags:
- public networks
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/events-and-logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu events and logs
tags:
- private networks
---

# Events and logs
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/genesis-file.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Configuring a network using the genesis file
tags:
- private networks
---

# Genesis file
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/network-and-chain-id.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Besu network ID and chain ID implementation
tags:
- private networks
---

# Network ID and chain ID
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/node-keys.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Private and public key, and node address used to identify nodes
tags:
- private networks
---

# Node keys and node address
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/transactions/pool.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Transaction pool overview
tags:
- private networks
---

# Transaction pool
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/transactions/types.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Description of the different transaction types
tags:
- private networks
---

# Transaction types
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/concepts/transactions/validation.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: What transaction validation and when
tags:
- private networks
---

# Transaction validation
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/configuration-file.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Using the Hyperledger Besu configuration file
tags:
- private networks
---

# Use the Hyperledger Besu configuration file
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/configure-ha/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu high availability
tags:
- private networks
---

# High availability of JSON-RPC and RPC Pub/Sub APIs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Sample load balancers
tags:
- private networks
---

# Sample load balancer configurations
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/connect/configure-ports.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: To enable communication you must expose Hyperledger Besu ports appropriately
tags:
- private networks
---

# Configure ports
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/connect/manage-peers.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Managing Hyperledger Besu peers
tags:
- private networks
---

# Manage peers
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/connect/specify-nat.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Configuring NAT with Hyperledger Besu
tags:
- private networks
---

# Specify the NAT method
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/connect/static-nodes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Configuring static nodes
tags:
- private networks
---

# Static nodes
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/develop/client-libraries.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu client libraries
tags:
- private networks
---

# Use client libraries
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/develop/truffle.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Using Hyperledger Besu with Truffle
tags:
- private networks
---

# Use Truffle
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/monitor/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Monitoring using metrics and logging
tags:
- private networks
---

# Monitor Besu
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/monitor/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
description: Hyperledger Besu log level setting and log formatting
path: blob/master/besu/src/main/resources/
source: log4j2.xml
tags:
- private networks
---

# Use logging
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/monitor/metrics.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Monitoring and metrics
tags:
- private networks
---

# Use metrics to monitor node performance
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/pass-jvm-options.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Passing Java virtual machine JVM options to Hyperledger Besu at runtime
tags:
- private networks
---

# Pass JVM options
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/troubleshoot/evm-tool.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu EVM tool
tags:
- private networks
---

# Use the EVM tool
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Using Java Flight Recorder with Hyperledger Besu
tags:
- private networks
---

# Use Java Flight Recorder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: How to trace transactions
tags:
- private networks
---

# Trace transactions
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/access-logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Accessing logs using the Hyperledger Besu API
tags:
- private networks
---

# Access logs using the Hyperledger Besu API
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/authenticate.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu authentication and authorization for JSON-RPC
tags:
- private networks
---

# Authenticate and authorize JSON-RPC
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/graphql.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: How to access the Hyperledger Besu API using GraphQL
tags:
- private networks
---

# Use GraphQL over HTTP
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu API
tags:
- private networks
---

# Access the Hyperledger Besu API
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/json-rpc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: How to access the Hyperledger Besu API using JSON-RPC
tags:
- private networks
---

# Use JSON-RPC over HTTP, WebSocket, and IPC
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-besu-api/rpc-pubsub.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Using RPC Pub/Sub with Hyperledger Besu WebSockets
tags:
- private networks
---

# Use RPC Pub/Sub over WebSockets
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/how-to/use-pow/mining.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Using Hyperledger Besu for PoW CPU mining
tags:
- private networks
---

# Configure mining
Expand Down
5 changes: 5 additions & 0 deletions docs/public-networks/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
# page icon, insider only, see https://squidfunk.github.io/mkdocs-material/reference/#setting-the-page-icon
icon: material/book-open-variant
description: Public networks overview
# hide feedback on this page as it's just an index page with not much content
hide:
- feedback
---

# Hyperledger Besu for public networks
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/api/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu JSON-RPC API methods reference
tags:
- private networks
---

# Besu API methods
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/api/objects.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu API objects reference
tags:
- private networks
---

# Besu API objects
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/cli/options.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu command line interface reference
tags:
- private networks
---

# Command line options
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/cli/subcommands.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu command line interface subcommands
tags:
- private networks
---

# Subcommands
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/disclosure.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu responsible disclosure statement
tags:
- private networks
---

# Security disclosure policy
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/evm-tool.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Hyperledger Besu EVM tool reference
tags:
- private networks
---

# EVM tool reference
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/genesis-items.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Configuration items specified in the Hyperledger Besu genesis file
tags:
- private networks
---

# Genesis file items
Expand Down
4 changes: 3 additions & 1 deletion docs/public-networks/reference/projects-using-besu.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Projects using Besu.
description: Projects using Besu
tags:
- private networks
---

# Projects using Besu
Expand Down
2 changes: 2 additions & 0 deletions docs/public-networks/reference/trace-types.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
description: Transaction trace types
tags:
- private networks
---

# Transaction trace types
Expand Down
13 changes: 13 additions & 0 deletions docs/tags-index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
description: List of tagged pages in this documentation
# hide feedback on this page as it's just a generated index page
hide:
- feedback
---

# Tags

List of tagged pages in this documentation:

<!-- This [TAGS] is an automatic placeholder for tags list -->
[TAGS]
19 changes: 17 additions & 2 deletions mkdocs-insider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,33 @@
INHERIT: mkdocs.yml # DO NOT MODIFY THIS LINE

plugins:
# Meta plugin to add meta content to pages in batch based on a .meta.yml file in the folder
# see
meta:
meta_file: '**/.meta.yml'

# tags plugin is not insider but has to be defined after meta plugin so has to be added here too
# to be loaded in the right order.
tags:
tags_file: tags-index.md
extra:
# indicates to the templating system that the current build uses insider
# used to display insider only features in templates and prevent build fail on the normal version.
is_insider: true

# tags ID, used for insider tag icons, see https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/#tag-icons
tags:
private networks: priv
public networks: pub
# The following has to be in this file and mkdocs.yml file because
# readthedocs.org is overriding it wrong if not in the initial config file but in a child file.
# The side effect is that it also allows us to have different scripts and CSS for insider theme
extra_css:
- assets/stylesheets/custom_theme.css
extra_javascript:
- assets/javascripts/custom_theme.js

theme:
# only used with insider, see https://squidfunk.github.io/mkdocs-material/setup/setting-up-tags/#tag-icons
icon:
tag:
priv: material/book-lock-outline
pub: material/book-open-variant

0 comments on commit d63f146

Please sign in to comment.