Skip to content

Commit

Permalink
docs: move DFIR playground to a sidebar item in the docs
Browse files Browse the repository at this point in the history
Fixes #1630
  • Loading branch information
shadaj committed Feb 11, 2025
1 parent 2fd6aa7 commit e4dd389
Show file tree
Hide file tree
Showing 9 changed files with 214 additions and 147 deletions.
2 changes: 1 addition & 1 deletion docs/docs/dfir/architecture/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Architecture",
"position": 6,
"position": 7,
"link": {
"type": "doc",
"id": "dfir/architecture/index"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/dfir/concepts/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Concepts",
"position": 5,
"position": 6,
"link": {
"type": "doc",
"id": "dfir/concepts/index"
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/dfir/ecosystem.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 4
sidebar_position: 5
---

# The Hydro Ecosystem
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/dfir/lattices_crate/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "The Lattices Crate",
"position": 6,
"position": 8,
"link": {
"type": "doc",
"id": "dfir/lattices_crate/index"
Expand Down
14 changes: 14 additions & 0 deletions docs/docs/dfir/playground.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: DFIR Playground
sidebar_position: 3
---

import { DfirSurfaceDemo, DatalogDemo } from '@site/src/components/playground';

In these interactive editors, you can experiment with the DFIR compiler by running it in your browser (through WebAssembly)! Try selecting one of the templates or edit the code yourself to see how DFIR logic is compiled into a dataflow graph and executable Rust.

## DFIR
<DfirSurfaceDemo />

## Datalog
<DatalogDemo />
2 changes: 1 addition & 1 deletion docs/docs/dfir/syntax/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Syntax",
"position": 3,
"position": 4,
"link": {
"type": "doc",
"id": "dfir/syntax/index"
Expand Down
13 changes: 4 additions & 9 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,17 @@ const config = {
sidebarId: "deploySidebar",
label: "Hydro Deploy",
},
{
href: "pathname:///rustdoc/hydro_lang/",
label: "Rustdoc",
},
{
type: "docSidebar",
sidebarId: "dfirSidebar",
label: "DFIR",
},
{
href: "pathname:///rustdoc/hydro_lang/",
label: "Rustdoc",
},
],
},
{
to: "/playground",
position: "left",
label: "Playground",
},
{
to: "/research",
position: "left",
Expand Down
Loading

0 comments on commit e4dd389

Please sign in to comment.