Skip to content

Commit

Permalink
Draft developer docs in /docs/dev/
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed May 6, 2024
1 parent ae50ec4 commit 5c21c1c
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 8 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
7 changes: 0 additions & 7 deletions docs/core-concepts/index.md → docs/docs/dev/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,3 @@ A Hydra Head is formed by a group of online and responsive participants. Partici
While open, they can use the Hydra Head via a hydra-node to submit transactions over the Head network. Transactions have the same format and properties as on the main-chain: they are _isomorphic_. When UTXO entries are spent, and new UTXO entries are created in a Hydra Head, all participants are required to acknowledge and agree on the new state in so-called snapshots (`U1..Un`). Snapshots are _not_ posted back onto the layer 1, but are only kept around by the participants.

Any participant can **close** the Head using a snapshot, when for example they wish to cash out on the mainnet, or if another party misbehaves or stalls the Head's evolution. There is a mechanism to **contest** the final state on the main chain. Ultimately, a **fanout** transaction distributes the final agreed state and makes available on the layer 1 what only existed virtually in the Head.

```mdx-code-block
import DocCardList from '@theme/DocCardList';
import {useDocsSidebar} from '@docusaurus/theme-common/internal';
<DocCardList items={useDocsSidebar().items.filter(({ docId }) => docId != "index")}/>
```
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
7 changes: 6 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const config = {
docs: {
editUrl,
editLocalizedFiles: true,
sidebarPath: require.resolve("./sidebar.js"),
sidebarPath: require.resolve("./sidebars.js"),
sidebarCollapsible: false,
},
blog: {
Expand Down Expand Up @@ -165,6 +165,11 @@ const config = {
label: "User Manual",
position: "left",
},
{
to: "/docs/dev/overview",
label: "Developer Documentation",
position: "left",
},
{
href: "https://github.com/input-output-hk/hydra",
label: "GitHub",
Expand Down
12 changes: 12 additions & 0 deletions docs/sidebar.js → docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,16 @@ module.exports = {
label: "Benchmarks",
},
],

developerDocumentation: [
{
type: "autogenerated",
dirName: "dev",
},
{
type: "link",
href: "/adr",
label: "Architecture Decision Records",
},
],
};

0 comments on commit 5c21c1c

Please sign in to comment.