Crates.io | documentation_generator |
lib.rs | documentation_generator |
version | 0.1.0 |
source | src |
created_at | 2024-07-23 17:54:26.029335 |
updated_at | 2024-07-23 17:54:26.029335 |
description | Rust-based documentation generator for C# codebases. It scans C# source files, extracts relevant constructs (classes, structs, enums, and interfaces), and generates documentation based on a provided template. |
homepage | |
repository | https://github.com/bornacvitanic/rust-csharp-doc-generator |
max_upload_size | |
id | 1313091 |
size | 51,359 |
This project is a Rust-based documentation generator for C# codebases. It scans C# source files, extracts relevant constructs (classes, structs, enums, and interfaces), and generates documentation based on a provided template.
Prepare a template file (e.g., template.md
):
# Documentation for [System Name]
## Overview
[Brief overview of the system]
## Key Interfaces
- **`[interface_name]`**: [summary]
## Main Classes
- [access_modifier] **`[class_name]`**: [one_sentence_summary]
## Structs
- **`[struct_name]`**: [one_sentence_summary]
## Enums
- **`[enum_name]`**: [one_sentence_summary]
## Usage
[Usage examples]
Run the documentation generator:
cargo run --release -- --package_dir path/to/csharp/code --template_file path/to/template.md --output_dir path/to/output --output_file documentation.md
--package_dir
: Directory containing C# source files.--template_file
: Path to the template file.--output_dir
: Directory to save the generated documentation.--output_file
: Name of the generated documentation file..
├── src
│ ├── cli.rs
│ ├── parser.rs
│ ├── documentation.rs
│ └── main.rs
├── Cargo.toml
└── README.md
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
structopt