Skip to content

add module-level doc comments and update doc generation workflow - #65

Merged
ermvrs merged 1 commit into
mainfrom
update-docs-2.16.1
Mar 5, 2026
Merged

add module-level doc comments and update doc generation workflow#65
ermvrs merged 1 commit into
mainfrom
update-docs-2.16.1

Conversation

@0xTitan

@0xTitan 0xTitan commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

Pull Request type

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build-related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Package landing pages in the generated documentation (via scarb doc) are blank because no lib.cairo files have //! module-level doc comments. The CI workflow (mdbook.yml) deploys an outdated,
manually-curated static site from docs/website/ instead of the auto-generated API docs.

Issue Number: N/A

What is the new behavior?

  • Added //! module-level doc comments to all 15 package lib.cairo files (ascii, btc, bytes, data_structures, encoding, evm, json, linalg, math, merkle_tree, numeric, searching, sorting, storage,
    utils)
  • Each package landing page now displays a meaningful description in the generated mdBook
  • Updated mdbook.yml workflow to install scarb and run scripts/generate_doc.sh instead of building the old static site
  • Added docs/book.toml and docs/intro.md used by the doc generation script as custom intro page and book configuration

Does this introduce a breaking change?

  • Yes
  • No

Add //! doc comments to all 15 package lib.cairo files so scarb doc
generates meaningful package descriptions. Update mdbook.yml workflow
to use scarb doc via generate_doc.sh instead of the old static site.
Fix sed compatibility for Linux CI (GNU sed vs BSD sed).
@0xTitan
0xTitan force-pushed the update-docs-2.16.1 branch from 1a1c3d6 to cb67228 Compare March 4, 2026 21:55
@0xTitan
0xTitan requested a review from ermvrs March 4, 2026 21:57
@ermvrs
ermvrs merged commit 61d2c30 into main Mar 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants