-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use docify export for parachain template hardcoded configuration and embed it in its README #6333
Comments
Had a word with @iulianbarbu about this. We will divide this into three parts:
We will track each step through this PR only |
Important example to look at This already uses a docify, I will study and understand how the template works here, and then use the knowledge gained to mirror it for the parachain template |
Following up on a topic I discussed previously with @seemantaggarwal , and putting my finding for reference here: I recall why we added the dollar sign ($) for $runtime_path example I showed you from We also run tests for the |
…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: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
…embed it in its README paritytech#6333 (paritytech#7093) Use docify export for parachain template hardcoded configuration and embed it in its README paritytech#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: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
…embed it in its README paritytech#6333 (paritytech#7093) Use docify export for parachain template hardcoded configuration and embed it in its README paritytech#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: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
…embed it in its README paritytech#6333 (paritytech#7093) Use docify export for parachain template hardcoded configuration and embed it in its README paritytech#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: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
…embed it in its README paritytech#6333 (paritytech#7093) Use docify export for parachain template hardcoded configuration and embed it in its README paritytech#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: Iulian Barbu <14218860+iulianbarbu@users.noreply.github.com>
closed in #7093 |
More details posted here: https://github.com/paritytech/polkadot-sdk/pull/5954/files/8b4884dc8a9d60d09d61b08ada0e645121c0d6b8#r1825695159. The idea is to keep parachain-template README.md in sync with the hardcoded configuration set in the Rust code.
The text was updated successfully, but these errors were encountered: