Skip to content

Commit 538f3ca

Browse files
committed
attempt to hide viewer controls in diagram
1 parent 333dfa0 commit 538f3ca

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ class Foo(bd.Bitfield):
3737
c: str = bd.str_field(n_bytes=1)
3838
```
3939

40-
This defines a bitfield with three fields: `a` and `b` are 4-bit integers, and
41-
`c` is a 1-byte (8-bit) string:
40+
This defines a bitfield with three fields: `a` and `b` are 4-bit unsigned
41+
integers, and `c` is a 1-byte (8-bit) string:
4242

4343
```mermaid
4444
---
4545
title: "Foo Bitfield"
4646
---
47-
%%{init: {'theme': 'default', 'packet': { 'rowHeight': 50, 'bitWidth': 100, 'bitsPerRow': 8 }}}%%
47+
%%{init: {'theme': 'default', 'packet': { 'rowHeight': 50, 'bitWidth': 100, 'bitsPerRow': 8 }, 'themeCSS': '.mermaid-viewer-control-panel { display: none; }'}}%%
4848
packet-beta
4949
0-3: "a"
5050
4-7: "b"

docs/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class Foo(bd.Bitfield):
4343
c: str = bd.str_field(n_bytes=1)
4444
```
4545

46-
This defines a bitfield with three fields: `a` and `b` are 4-bit integers, and
47-
`c` is a 1-byte (8-bit) string:
46+
This defines a bitfield with three fields: `a` and `b` are 4-bit unsigned
47+
integers, and `c` is a 1-byte (8-bit) string:
4848

4949
```mermaid
5050
---
5151
title: "Foo Bitfield"
5252
---
53-
%%{init: {'theme': 'default', 'packet': { 'rowHeight': 50, 'bitWidth': 100, 'bitsPerRow': 8 }}}%%
53+
%%{init: {'theme': 'default', 'packet': { 'rowHeight': 50, 'bitWidth': 100, 'bitsPerRow': 8 }, 'themeCSS': '.mermaid-viewer-control-panel { display: none; }'}}%%
5454
packet-beta
5555
0-3: "a"
5656
4-7: "b"

0 commit comments

Comments
 (0)