Use docify export for parachain template hardcoded configuration and embed it...
Use docify export for parachain template hardcoded configuration and embed it in its README #6333 (#7093) Use docify export for parachain template hardcoded configuration and embed it in its README #6333 Docify currently has a limitation of not being able to embed a variable/const in its code, without embedding it's definition, even if do something in a string like "this is a sample string ${sample_variable}" It will embed the entire string "this is a sample string ${sample_variable}" without replacing the value of sample_variable from the code Hence, the goal was just to make it obvious in the README where the PARACHAIN_ID value is coming from, so a note has been added at the start for the same, so whenever somebody is running these commands, they will be aware about the value and replace accordingly. To make it simpler, we added a rust ignore block so the user can just look it up in the readme itself and does not have to scan through the runtime directory for the value. --------- Co-authored-by...
Showing
- .github/scripts/generate-prdoc.py 2 additions, 2 deletions.github/scripts/generate-prdoc.py
- .github/workflows/misc-sync-templates.yml 6 additions, 0 deletions.github/workflows/misc-sync-templates.yml
- Cargo.lock 128 additions, 92 deletionsCargo.lock
- Cargo.toml 1 addition, 0 deletionsCargo.toml
- prdoc/pr_7093.prdoc 8 additions, 0 deletionsprdoc/pr_7093.prdoc
- templates/parachain/Cargo.toml 16 additions, 0 deletionstemplates/parachain/Cargo.toml
- templates/parachain/README.docify.md 254 additions, 0 deletionstemplates/parachain/README.docify.md
- templates/parachain/README.md 27 additions, 19 deletionstemplates/parachain/README.md
- templates/parachain/runtime/src/genesis_config_presets.rs 1 addition, 0 deletionstemplates/parachain/runtime/src/genesis_config_presets.rs
- templates/parachain/src/lib.rs 22 additions, 0 deletionstemplates/parachain/src/lib.rs
Please register or sign in to comment