Skip to content

Commit 86f00db

Browse files
authored
Merge pull request #1193 from onekey-sec/handlers-doc
Added supported handlers to the documentation
2 parents 6297d8d + 71b4115 commit 86f00db

File tree

7 files changed

+49
-190
lines changed

7 files changed

+49
-190
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ build/
66
*.egg-info/
77
*.so
88
.idea
9+
.cache
910
.coverage*
1011
/.venv
1112
unblob.log

docs/extra.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,17 @@
1717
--md-typeset-a-color: #00FFC8;
1818
--md-hue: 210;
1919
}
20+
21+
.to_fit {
22+
23+
.md-typeset__table {
24+
table-layout: auto;
25+
width: 100%;
26+
margin-left: auto;
27+
margin-right: auto;
28+
29+
table {
30+
display: table;
31+
}
32+
}
33+
}

docs/formats.md

Lines changed: 13 additions & 172 deletions
Large diffs are not rendered by default.

docs/handlers.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
| [`SQUASHFS (V1)`](#squashfs-v1) | FILESYSTEM | :octicons-check-16: |
5151
| [`SQUASHFS (V2)`](#squashfs-v2) | FILESYSTEM | :octicons-check-16: |
5252
| [`SQUASHFS (V3)`](#squashfs-v3) | FILESYSTEM | :octicons-check-16: |
53-
| [`SQUASHFS (V3 - BROADCOM)`](#squashfs-v3---broadcom) | FILESYSTEM | :octicons-check-16: |
54-
| [`SQUASHFS (V3 - DDWRT)`](#squashfs-v3---ddwrt) | FILESYSTEM | :octicons-check-16: |
55-
| [`SQUASHFS (V3 - NON-STANDARD)`](#squashfs-v3---non-standard) | FILESYSTEM | :octicons-check-16: |
56-
| [`SQUASHFS (V4 - BE)`](#squashfs-v4---be) | FILESYSTEM | :octicons-check-16: |
57-
| [`SQUASHFS (V4 - LE)`](#squashfs-v4---le) | FILESYSTEM | :octicons-check-16: |
53+
| [`SQUASHFS (V3-BROADCOM)`](#squashfs-v3-broadcom) | FILESYSTEM | :octicons-check-16: |
54+
| [`SQUASHFS (V3-DDWRT)`](#squashfs-v3-ddwrt) | FILESYSTEM | :octicons-check-16: |
55+
| [`SQUASHFS (V3-NON-STANDARD)`](#squashfs-v3-non-standard) | FILESYSTEM | :octicons-check-16: |
56+
| [`SQUASHFS (V4-BE)`](#squashfs-v4-be) | FILESYSTEM | :octicons-check-16: |
57+
| [`SQUASHFS (V4-LE)`](#squashfs-v4-le) | FILESYSTEM | :octicons-check-16: |
5858
| [`STUFFIT SIT`](#stuffit-sit) | ARCHIVE | :octicons-check-16: |
5959
| [`STUFFIT SIT (V5)`](#stuffit-sit-v5) | ARCHIVE | :octicons-check-16: |
6060
| [`TAR (USTAR)`](#tar-ustar) | ARCHIVE | :octicons-check-16: |
@@ -878,7 +878,7 @@
878878

879879
- [SquashFS Documentation](https://dr-emann.github.io/squashfs/){ target="_blank" }
880880
- [SquashFS Wikipedia](https://en.wikipedia.org/wiki/SquashFS){ target="_blank" }
881-
## SquashFS (v3 - Broadcom)
881+
## SquashFS (v3-Broadcom)
882882

883883
!!! success "Fully supported"
884884

@@ -895,7 +895,7 @@
895895

896896
- [SquashFS Documentation](https://dr-emann.github.io/squashfs/){ target="_blank" }
897897
- [SquashFS Wikipedia](https://en.wikipedia.org/wiki/SquashFS){ target="_blank" }
898-
## SquashFS (v3 - DDWRT)
898+
## SquashFS (v3-DDWRT)
899899

900900
!!! success "Fully supported"
901901

@@ -912,7 +912,7 @@
912912

913913
- [SquashFS Documentation](https://dr-emann.github.io/squashfs/){ target="_blank" }
914914
- [SquashFS Wikipedia](https://en.wikipedia.org/wiki/SquashFS){ target="_blank" }
915-
## SquashFS (v3 - non-standard)
915+
## SquashFS (v3-non-standard)
916916

917917
!!! success "Fully supported"
918918

@@ -929,7 +929,7 @@
929929

930930
- [SquashFS Documentation](https://dr-emann.github.io/squashfs/){ target="_blank" }
931931
- [SquashFS Wikipedia](https://en.wikipedia.org/wiki/SquashFS){ target="_blank" }
932-
## SquashFS (v4 - BE)
932+
## SquashFS (v4-BE)
933933

934934
!!! success "Fully supported"
935935

@@ -946,7 +946,7 @@
946946

947947
- [SquashFS Documentation](https://dr-emann.github.io/squashfs/){ target="_blank" }
948948
- [SquashFS Wikipedia](https://en.wikipedia.org/wiki/SquashFS){ target="_blank" }
949-
## SquashFS (v4 - LE)
949+
## SquashFS (v4-LE)
950950

951951
!!! success "Fully supported"
952952

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@
111111

112112
deadnix
113113
statix
114-
114+
libz
115115
cargo
116116
rustc
117+
just
117118

118119
nodejs # for pyright
119120
] ++ unblob.runtimeDeps;

mkdocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nav:
1111
- About: index.md
1212
- User Guide: guide.md
1313
- installation.md
14-
- Supported Formats: formats.md
14+
- formats.md
1515
- extractors.md
1616
- development.md
1717
- API: api.md
@@ -25,13 +25,15 @@ markdown_extensions:
2525
- pymdownx.magiclink
2626
- def_list
2727
- attr_list
28+
- md_in_html
2829
- admonition
2930
- pymdownx.details
3031
- pymdownx.superfences
3132
- pymdownx.highlight:
3233
anchor_linenums: true
3334
- pymdownx.inlinehilite
34-
- pymdownx.snippets
35+
- pymdownx.snippets:
36+
base_path: docs
3537
- pymdownx.tabbed:
3638
alternate_style: true
3739
- pymdownx.emoji:

python/unblob/handlers/filesystem/squashfs.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ class SquashFSv3DDWRTHandler(SquashFSv3Handler):
283283
]
284284

285285
DOC = HandlerDoc(
286-
name="SquashFS (v3 - DDWRT)",
286+
name="SquashFS (v3-DDWRT)",
287287
description="SquashFS version 3 DD-WRT is a variant of the SquashFS v3 format used in DD-WRT firmware. It features a unique magic number and may include specific optimizations for embedded systems.",
288288
handler_type=HandlerType.FILESYSTEM,
289289
vendor="DDWRT",
@@ -329,7 +329,7 @@ class SquashFSv3BroadcomHandler(SquashFSv3Handler):
329329
]
330330

331331
DOC = HandlerDoc(
332-
name="SquashFS (v3 - Broadcom)",
332+
name="SquashFS (v3-Broadcom)",
333333
description="SquashFS version 3 Broadcom is a variant of the SquashFS v3 format used in Broadcom firmware. It features a unique magic number and may include specific optimizations for Broadcom devices.",
334334
handler_type=HandlerType.FILESYSTEM,
335335
vendor="Broadcom",
@@ -374,7 +374,7 @@ class SquashFSv3NSHandler(SquashFSv3Handler):
374374
]
375375

376376
DOC = HandlerDoc(
377-
name="SquashFS (v3 - non-standard)",
377+
name="SquashFS (v3-non-standard)",
378378
description="SquashFS version 3 is a compressed, read-only file system format designed for minimal storage usage. It is widely used in embedded systems and Linux distributions for efficient storage and fast access.",
379379
handler_type=HandlerType.FILESYSTEM,
380380
vendor="unknown",
@@ -433,7 +433,7 @@ class SquashFSv4LEHandler(_SquashFSBase):
433433
HEADER_STRUCT = "squashfs4_super_block_t"
434434

435435
DOC = HandlerDoc(
436-
name="SquashFS (v4 - LE)",
436+
name="SquashFS (v4-LE)",
437437
description="SquashFS version 4 is a compressed, read-only file system format designed for minimal storage usage and fast access. It is widely used in embedded systems and Linux distributions for efficient storage management.",
438438
handler_type=HandlerType.FILESYSTEM,
439439
vendor=None,
@@ -504,7 +504,7 @@ class SquashFSv4BEHandler(SquashFSv4LEHandler):
504504
EXTRACTOR = SquashFSv4BEExtractor()
505505

506506
DOC = HandlerDoc(
507-
name="SquashFS (v4 - BE)",
507+
name="SquashFS (v4-BE)",
508508
description="SquashFS version 4 is a compressed, read-only file system format designed for minimal storage usage and fast access. It supports both big-endian and little-endian formats and is widely used in embedded systems and Linux distributions.",
509509
handler_type=HandlerType.FILESYSTEM,
510510
vendor=None,

0 commit comments

Comments
 (0)