Skip to content

Conversation

qkaiser
Copy link
Contributor

@qkaiser qkaiser commented Apr 14, 2025

Early draft for handler documentation.

It introduces a HandlerDoc class that both Handler and DirectoryHandler requires under the DOC field. This class takes a name, a handler type, a description, and a list of references.

This is both useful for maintainers since the handlers will contain detailed information and references within the code (kinda like module info in Metasploit), and users as this is ultimately used to dynamically generate the documentation available on unblob.org

This is a very early draft. All the DOC fields were generated by copilot and must be reviewed. The markdown structure and what we do with the DOC content is still open to discussion.

@qkaiser qkaiser added the documentation Improvements or additions to documentation label Apr 14, 2025
@qkaiser qkaiser added this to the Internship 2025 milestone Apr 14, 2025
@qkaiser qkaiser self-assigned this Apr 14, 2025
@qkaiser qkaiser marked this pull request as draft April 14, 2025 20:46
@qkaiser qkaiser force-pushed the handlers-doc branch 2 times, most recently from a2c000f to fe7f288 Compare May 5, 2025 12:38
@qkaiser qkaiser marked this pull request as ready for review May 7, 2025 12:17
@rasakozi
Copy link
Contributor

rasakozi commented May 7, 2025

Looks good to me! I think we can merge this and make some adjustments once I create a proper page in the docs.

@rasakozi rasakozi self-requested a review May 7, 2025 12:25
@qkaiser
Copy link
Contributor Author

qkaiser commented May 7, 2025

Looks good to me! I think we can merge this and make some adjustments once I create a proper page in the docs.

I'd just wait for @e3krisztian approval too, then we merge :)

@qkaiser qkaiser requested a review from e3krisztian May 8, 2025 11:36
Copy link
Contributor

@e3krisztian e3krisztian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should revise the handler names for some formats to make the handler table more informative to people not knowing the formats by heart, it could be however in another PR.

Please take a look into why LZ4 is appearing 3 times - that looks strange/wrong.

@qkaiser qkaiser force-pushed the handlers-doc branch 2 times, most recently from e9eeac9 to 09310c6 Compare May 9, 2025 07:08
@qkaiser qkaiser requested a review from e3krisztian May 9, 2025 07:09
qkaiser added 4 commits May 9, 2025 17:18
We had to use --unsafe in check-yaml so that it checks syntax but does
not attempt to load the YAML itself. Otherwise an error gets triggered
by the emoji plugin of mkdocs.
Copy link
Contributor

@e3krisztian e3krisztian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fixes and the patience.
Looks good now! :)

@qkaiser qkaiser added this pull request to the merge queue May 11, 2025
Merged via the queue into main with commit 939abed May 11, 2025
22 checks passed
@qkaiser qkaiser deleted the handlers-doc branch May 11, 2025 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants