Closed iboss-ptk closed 2 years ago
The idea here is to get the config struct documentation at runtime to generate md file that has details
md
README.md
get_docs
get_data_docs
derive_get_doc
data_doc_derive
data_doc
struct Docs(Vec<Doc>); struct DataDoc { ident: String, desc: Vec<String>, sub_docs: Vec<DataDoc> }; trait GetDataDocs { get_data_docs() -> Vec<DataDoc>; }
The idea here is to get the config struct documentation at runtime to generate md file that has details
md
gen into its own package so that md package only focus on generating md and use cli and get_docs as depsREADME.md
get_docs
->get_data_docs
;derive_get_doc
->data_doc_derive
,get_docs
->data_doc