This directory contains an mdBook
project for ZKsync Solidity Compiler Toolchain documentation.
This README will guide you on how to build and test the book locally.
Before you begin, ensure you have the mdbook
installed:
cargo install mdbook
To build the book, use the following command:
mdbook build
This command generates the static HTML files in the book/
directory. You can open book/index.html
in your browser to view the generated book.
For easier development and to preview changes as you edit, you can serve the book locally with:
mdbook serve
This will start a local web server and open the book in your default browser. Any changes made to the markdown files will automatically reload the book.
By default, the book will be accessible at: http://localhost:3000
.
To ensure your book is correctly built and formatted, you can use the built-in mdBook
linter by running:
mdbook test
This will check for common issues such as broken links or missing files.
src/
: This directory contains all the markdown files for the chapters.book/
: This is the output directory where the built HTML files are generated.book.toml
: Configuration file for themdBook
.
The book is automatically deployed each time a commit is pushed to the main
branch or a new release tag is created.
The generated HTML files are hosted on GitHub Pages and are accessible at:
- https://matter-labs.github.io/era-compiler-solidity/latest/ for the latest documentation.
- https://matter-labs.github.io/era-compiler-solidity/vX.Y.Z/ for the specific version documentation.