-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Standardize variable declaration (#743)
We use <span> to declare variables in include and global variables. <span> variables are difficult to differentiate from actual <span> tag uses. Furthermore, in places where this differentiation is important (e.g. pages where <span>s are extremely common), we are forced to use <variable> tags, rather than <span> tags. This results in two different (and confusing) ways of declaring variables. Let's standardize all variable declaration to use <variable> instead of <span>. The processing of <span> variables are currently left intact, but they are deprecated and should be removed in a subsequent release.
- Loading branch information
Showing
10 changed files
with
79 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
<span id="showBaseUrlCode"> | ||
<variable name="showBaseUrlCode"> | ||
<code>{<span></span>{ baseUrl }}</code> | ||
</span> | ||
</variable> | ||
|
||
<span id="showBaseUrlText">{<span></span>{ baseUrl }}</span> | ||
<variable name="showBaseUrlText">{<span></span>{ baseUrl }}</variable> | ||
|
||
<span id="markbind_blue">#00B0F0</span> | ||
<variable name="markbind_blue">#00B0F0</variable> | ||
|
||
<span id="icon_arrow_down">:fas-arrow-down:</span> | ||
<span id="icon_arrow_right">:fas-arrow-right:</span> | ||
<span id="icon_check_blue"><font color="{{ markbind_blue }}">:fas-check-circle:</font></span> | ||
<span id="icon_bulb_blue"><font color="{{ markbind_blue }}">:fas-lightbulb:</font></span> | ||
<span id="icon_dislike">:fas-thumbs-down:</span> | ||
<span id="icon_example"><big><span class='badge badge-pill badge-light' style="background-color: #d9d9d9; color: #737373; position:relative; left:-10px">Example:</span></big></span> | ||
<span id="icon_examples"><big><span class='badge badge-pill badge-light' style="background-color: #d9d9d9; color: #737373; position:relative; left:-10px">Examples:</span></big></span> | ||
<span id="icon_info">:fas-info-circle:</span> | ||
<span id="icon_ticked">:far-check-square:</span> | ||
<variable name="icon_arrow_down">:fas-arrow-down:</variable> | ||
<variable name="icon_arrow_right">:fas-arrow-right:</variable> | ||
<variable name="icon_check_blue"><font color="{{ markbind_blue }}">:fas-check-circle:</font></variable> | ||
<variable name="icon_bulb_blue"><font color="{{ markbind_blue }}">:fas-lightbulb:</font></variable> | ||
<variable name="icon_dislike">:fas-thumbs-down:</variable> | ||
<variable name="icon_example"><big><span class='badge badge-pill badge-light' style="background-color: #d9d9d9; color: #737373; position:relative; left:-10px">Example:</span></big></variable> | ||
<variable name="icon_examples"><big><span class='badge badge-pill badge-light' style="background-color: #d9d9d9; color: #737373; position:relative; left:-10px">Examples:</span></big></variable> | ||
<variable name="icon_info">:fas-info-circle:</variable> | ||
<variable name="icon_ticked">:far-check-square:</variable> | ||
|
||
<span id="link_live_preview">[live preview]({{ baseUrl }}/userGuide/glossary.html#live-preview)</span> | ||
<variable name="link_live_preview">[live preview]({{ baseUrl }}/userGuide/glossary.html#live-preview)</variable> | ||
|
||
<span id="tooltip_root_directory"><tooltip content="The directory that contains all the project files. It is also the directory in which the `site.json` configuration file is located.">root directory</tooltip></span> | ||
<variable name="tooltip_root_directory"><tooltip content="The directory that contains all the project files. It is also the directory in which the `site.json` configuration file is located.">root directory</tooltip></variable> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<span id="referenced_value">This variable can be referenced.</span> | ||
<span id="finalized_value">{{referenced_value}}</span> | ||
<variable name="referenced_value">This variable can be referenced.</variable> | ||
<variable name="finalized_value">{{referenced_value}}</variable> | ||
|
||
<span id="reference_level_1">References can be several levels deep.</span> | ||
<span id="reference_level_2">{{reference_level_1}}</span> | ||
<span id="reference_level_3">{{reference_level_2}}</span> | ||
<span id="reference_level_4">{{reference_level_3}}</span> | ||
<variable name="reference_level_1">References can be several levels deep.</variable> | ||
<variable name="reference_level_2">{{reference_level_1}}</variable> | ||
<variable name="reference_level_3">{{reference_level_2}}</variable> | ||
<variable name="reference_level_4">{{reference_level_3}}</variable> | ||
|
||
<span id="global_variable_overriding_included_variable">Global Variable Overriding Included Variable</span> | ||
<span id="global_variable">Global Variable</span> | ||
<span id="page_global_variable_overriding_page_variable">Global Variable Overriding Page Variable</span> | ||
<variable name="global_variable_overriding_included_variable">Global Variable Overriding Included Variable</variable> | ||
<variable name="global_variable">Global Variable</variable> | ||
<variable name="page_global_variable_overriding_page_variable">Global Variable Overriding Page Variable</variable> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters