Crates.io | generate-readme |
lib.rs | generate-readme |
version | 0.1.3 |
source | src |
created_at | 2023-10-23 02:54:33.045524 |
updated_at | 2024-03-27 22:04:50.489372 |
description | A command-line utlity to help you generate README.md files. |
homepage | |
repository | https://github.com/jacobschwantes/generate-readme |
max_upload_size | |
id | 1010926 |
size | 49,718 |
Generate README.md
files effortlessly using this lightweight command line utility. While it includes several default templates, its strength lies in its ability to work with your own custom templates.
Create a directory named readme-templates
inside the Documents
folder of your operating system (or specify a different directory using --template-dir
argument).
Add your markdown templates to this directory.
At the beginning of each template, specify placeholders by adding a line like Placeholders: [placeholder_name_1],[placeholder_name_2]
. Avoid spaces between placeholders.
For instance: Placeholders: [project_name],[author_name]
When you use the tool, it will prompt you to input values for each of these placeholders. The tool will then replace all occurrences of the placeholders throughout the file with your input.
If you would like to see some examples, check the templates folder.
Tip: To make a section in your template optional, simply prefix its heading with ?
. For example, ## ?Contributing
denotes an optional "Contributing" section.
cargo install generate-readme
git clone https://github.com/jacobschwantes/generate-readme.git
cd generate-readme
cargo install --path .
generate-readme
# To use a path to custom templates other than the default ~/Documents/readme-templates
generate-readme --template-dir path/to/custom/templates
Fork the repository Create a branch
git checkout -b fix/amazingFix
Commit your changes and push to your branch
git commit -m "made an amazingFix"
git push origin fix/amazingFix
Open a pull request