Sha256: 6c2af435af9b777057223847ebe3371ab2977957cd03a3581d60002760143857
Contents?: true
Size: 1.04 KB
Versions: 25
Compression:
Stored size: 1.04 KB
Contents
# Demo document linking ::: * This is document 2 * ::: This document links to a matching document to demonstrate navigation between documents. ::: This Bash block displays the value of variables "page1_var_via_environment" and "page2_var_via_environment" ```bash :show_vars source bin/colorize_env_vars.sh colorize_env_vars 'vars for page2' PAGE2_VAR_VIA_INHERIT page2_var_via_environment colorize_env_vars 'vars for page3' PAGE3_VAR_VIA_INHERIT page3_var_via_environment ``` ::: This Link block requires a block that ::: 1. sets environment variable PAGE3_VAR_VIA_INHERIT, ::: 2. navigates to document 3, and ::: 3. executes block "show_vars" to display the imported PAGE3_VAR_VIA_INHERIT. ```bash :(vars3) PAGE3_VAR_VIA_INHERIT=for_page3_from_page2_via_inherited_code_blocks ``` ```link :linked3 +(vars3) file: examples/linked3.md ``` ```link :(linked3) +(vars3) file: examples/linked3.md ``` ```link :linked3_import_vars +(vars3) file: examples/linked3.md block: show_vars vars: page3_var_via_environment: for_page3_from_page2_via_current_environment ```
Version data entries
25 entries across 25 versions & 1 rubygems