-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically update code snippets in /install to use the latest rele…
…ase (#838)
- Loading branch information
Showing
16 changed files
with
121 additions
and
37 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
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,2 +1,19 @@ | ||
{% assign c = {{include.class}} %}{% assign s = {{include.struct}} %}{% assign n = {{include.namespace}} %} | ||
{% if c %}{% if n %}<a href="https://root.cern/doc/master/class{{ n | replace: "::", "_1_1" }}_1_1{{c}}.html" target="_blank">{{c}}</a>{% else %}<a href="https://root.cern/doc/master/class{{ c | replace: "::", "_1_1" }}.html" target="_blank">`{{c}}`</a>{% endif %}{% endif %}{% if s %}{% if n %}<a href="https://root.cern/doc/master/struct{{ n | replace: "::", "_1_1" }}_1_1{{s}}.html" target="_blank">`{{s}}`</a>{% else %}<a href="https://root.cern/doc/master/struct{{ s | replace: "::", "_1_1" }}.html" target="_blank">`{{s}}`</a>{% endif %}{% endif %} | ||
{%- assign c = {{include.class}} -%} | ||
{%- assign s = {{include.struct}} -%} | ||
{%- assign n = {{include.namespace}} -%} | ||
|
||
{%- if c -%} | ||
{%- if n -%} | ||
<a href="https://root.cern/doc/master/class{{ n | replace: "::", "_1_1" }}_1_1{{c}}.html" target="_blank">{{c}}</a> | ||
{%- else -%} | ||
<a href="https://root.cern/doc/master/class{{ c | replace: "::", "_1_1" }}.html" target="_blank">`{{c}}`</a> | ||
{%- endif -%} | ||
{%- endif -%} | ||
|
||
{%- if s -%} | ||
{%- if n -%} | ||
<a href="https://root.cern/doc/master/struct{{ n | replace: "::", "_1_1" }}_1_1{{s}}.html" target="_blank">`{{s}}`</a> | ||
{%- else -%} | ||
<a href="https://root.cern/doc/master/struct{{ s | replace: "::", "_1_1" }}.html" target="_blank">`{{s}}`</a> | ||
{%- endif -%} | ||
{%- endif -%} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{%- assign content = release.content -%} | ||
{%- assign pieces = content | split: '| [' -%} | ||
{%- assign str = content -%} | ||
{%- assign a = str | split: '.tar.gz">' -%} | ||
{%- assign b = a[2] | split: '</a></td>' -%} | ||
{%- assign c = b[0] | split: '.' -%} | ||
{%- assign d = c[3] | split: '-' -%} | ||
{{d[2]}}-{{d[1]}}-{{d[3]}}.{{c[4]}}-opt | ||
{%- endif -%} | ||
{%- endfor -%} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{%- assign content = release.content -%} | ||
{%- assign pieces = content | split: '| [' -%} | ||
{%- assign str = content -%} | ||
{%- assign a = str | split: '.tar.gz">' -%} | ||
{%- assign b = a[2] | split: '</a></td>' -%} | ||
{%- assign c = b[0] | split: '.' -%} | ||
{%- assign d = c[3] | split: '-' -%} | ||
{{d[1] | capitalize }} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{%- assign content = release.content -%} | ||
{%- assign pieces = content | split: '| [' -%} | ||
{%- assign str = content -%} | ||
{%- assign a = str | split: '.tar.gz">' -%} | ||
{%- assign b = a[2] | split: '</a></td>' -%} | ||
{{ b[0] }} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 +1,6 @@ | ||
{% assign sorted = site.releases | reverse %}{% for release in sorted %}{% if release.state == "latest" %}{{release.version}}{% endif %}{% endfor %} | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{release.version}} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{ release.version | replace: ".","-" | replace: "/","-" }} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{release.release_date | date: "%b %d %Y"}} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{ release.version | replace: "/","." }} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 +1,6 @@ | ||
{% assign sorted = site.releases | reverse %}{% for release in sorted %}{% if release.state == "latest" %}{{ release.url | relative_url }}{% endif %}{% endfor %} | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{ release.url | relative_url }} | ||
{%- endif -%} | ||
{%- endfor -%} |
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 +1,6 @@ | ||
{% assign sorted = site.releases | reverse %}{% for release in sorted %}{% if release.state == "latest" %}{{release.version | replace:".","" | truncate: 3, "" }}{% endif %}{% endfor %} | ||
{%- assign sorted = site.releases | reverse -%} | ||
{%- for release in sorted -%} | ||
{%- if release.state == "latest" -%} | ||
{{release.version | replace:".","" | truncate: 3, "" }} | ||
{%- endif -%} | ||
{%- endfor -%} |
This file was deleted.
Oops, something went wrong.
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