This is a Python script that generates HTML documentation for Solidity smart contracts.
- Clone the repository:
git clone https://github.com/abhinavmir/soldocs.git
- Edit the
src/config.soldoc
file to specify the following:
directory
: The directory containing your Solidity files.css
: The path to your CSS file.output
: The path and name of the output HTML file.
Example config.soldoc
file:
directory = contracts/
css = css/style.css
output = docs/index.html
- Run the script:
python src/soldoc.py
- Generates HTML documentation for all Solidity contracts in a directory.
- Uses regular expressions to extract comments and function signatures from Solidity code.
- Supports markdown syntax in comments.
- Generates an index of all contracts and functions.
- Uses the Skeleton CSS framework for styling.
- Python 3
os
re
This code is licensed under the MIT License. See the LICENSE for details.