Skip to content

Commit

Permalink
make all links dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
ankudinov committed May 3, 2024
1 parent 54fea3f commit 1924f76
Show file tree
Hide file tree
Showing 24 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .cc/cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"__demo_group": "{{ cookiecutter.demo_group.lower() }}",
"__demo_slug": "{{ cookiecutter.__demo_group }}-{{ cookiecutter.__demo_name }}",
"demo_author": "Petr Ankudinov",
"__gh_org_name": "arista-netdevops-community",
"__gh_repo_name": "one-click-se-demos",
"__gh_org_name": "{{gh.org_name}}",
"__gh_repo_name": "{{gh.repo_name}}",
"__gh_slug": "{{ cookiecutter.__gh_org_name }}/{{ cookiecutter.__gh_repo_name }}",
"from_image": "ghcr.io/aristanetworks/avd/universal",
"from_variant": "python3.11-avd-v4.7.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% raw %}{{% endraw %}
"image": "ghcr.io/{{ cookiecutter.__gh_slug }}/{{ cookiecutter.__demo_group }}:{{ cookiecutter.__demo_name }}",
"image": "ghcr.io/${localEnv:GITHUB_REPOSITORY}:{{ cookiecutter.__demo_name }}",
// containerEnv set the variables applied to entire container
"containerEnv": {% raw %}{{% endraw %}
"ARISTA_TOKEN": "${localEnv:ARTOKEN}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "ghcr.io/arista-netdevops-community/one-click-se-demos/avd:avd-extended-workshop--part-1",
"image": "ghcr.io/${localEnv:GITHUB_REPOSITORY}/avd:avd-extended-workshop--part-1",
// containerEnv set the variables applied to entire container
"containerEnv": {
"ARISTA_TOKEN": "${localEnv:ARTOKEN}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "ghcr.io/arista-netdevops-community/one-click-se-demos/avd-extended-workshop-part-1:latest",
"image": "ghcr.io/${localEnv:GITHUB_REPOSITORY}/avd-extended-workshop-part-1:latest",
// containerEnv set the variables applied to entire container
"containerEnv": {
"ARISTA_TOKEN": "${localEnv:ARTOKEN}",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cc.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def cookiecutter_load(data_input_directory):
)
args = parser.parse_args()

cookiecutter_dict = cc_config.get_config("/workspaces/one-click-se-demos/.cc/cookiecutter.json")
cookiecutter_dict = cc_config.get_config(".cc/cookiecutter.json")
cc_extras = cookiecutter_load(args.input_directory)
cookiecutter_dict.update({
'__lab': cc_extras
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "ghcr.io/arista-netdevops-community/one-click-se-demos/cvaas:cvaas-and-avd-demo--evpn-aa",
"image": "ghcr.io/${localEnv:GITHUB_REPOSITORY}/cvaas:cvaas-and-avd-demo--evpn-aa",
// containerEnv set the variables applied to entire container
"containerEnv": {
"ARISTA_TOKEN": "${localEnv:ARTOKEN}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"image": "ghcr.io/arista-netdevops-community/one-click-se-demos/cvaas:cvaas-and-avd-demo--evpn-mlag",
"image": "ghcr.io/${localEnv:GITHUB_REPOSITORY}/cvaas:cvaas-and-avd-demo--evpn-mlag",
// containerEnv set the variables applied to entire container
"containerEnv": {
"ARISTA_TOKEN": "${localEnv:ARTOKEN}",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Every good demo should only take one click to start!
The purpose of this repository is to provide a collection of demos and labs for Arista SEs and customers, that can be started in Github Codespaces by pressing a single button.

[Check the project documentation here](https://arista-netdevops-community.github.io/one-click-se-demos/)
[Check the project documentation here](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/)
6 changes: 3 additions & 3 deletions demos/avd-avd-extended-workshop--part-1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Last reviewed: 29/04/2024

Please check the lab materials:

- [Lab Documentation](https://arista-netdevops-community.github.io/one-click-se-demos/avd-avd-extended-workshop--part-1/avd-avd-extended-workshop--part-1/)
- [HTML Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/avd-avd-extended-workshop--part-1.html)
- [PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/avd-avd-extended-workshop--part-1.pdf)
- [Lab Documentation](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/avd-avd-extended-workshop--part-1/avd-avd-extended-workshop--part-1/)
- [HTML Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/avd-avd-extended-workshop--part-1.html)
- [PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/avd-avd-extended-workshop--part-1.pdf)
6 changes: 3 additions & 3 deletions demos/clab-build-containerlab-with-ceos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Last reviewed: 02/05/2024

Please check the lab materials:

- [Lab Documentation](https://arista-netdevops-community.github.io/one-click-se-demos/clab-build-containerlab-with-ceos/clab-build-containerlab-with-ceos/)
- [HTML Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/clab-build-containerlab-with-ceos.html)
- [PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/clab-build-containerlab-with-ceos.pdf)
- [Lab Documentation](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/clab-build-containerlab-with-ceos/clab-build-containerlab-with-ceos/)
- [HTML Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/clab-build-containerlab-with-ceos.html)
- [PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/clab-build-containerlab-with-ceos.pdf)
6 changes: 3 additions & 3 deletions demos/cvaas-cvaas-and-avd-demo--evpn-aa/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Last reviewed: 02/05/2024

Please check the lab materials:

- [Lab Documentation](https://arista-netdevops-community.github.io/one-click-se-demos/cvaas-cvaas-and-avd-demo--evpn-aa/cvaas-cvaas-and-avd-demo--evpn-aa/)
- [HTML Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/cvaas-cvaas-and-avd-demo--evpn-aa.html)
- [PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/cvaas-cvaas-and-avd-demo--evpn-aa.pdf)
- [Lab Documentation](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/cvaas-cvaas-and-avd-demo--evpn-aa/cvaas-cvaas-and-avd-demo--evpn-aa/)
- [HTML Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/cvaas-cvaas-and-avd-demo--evpn-aa.html)
- [PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/cvaas-cvaas-and-avd-demo--evpn-aa.pdf)
6 changes: 3 additions & 3 deletions demos/cvaas-cvaas-and-avd-demo--evpn-mlag/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Last reviewed: 01/05/2024

Please check the lab materials:

- [Lab Documentation](https://arista-netdevops-community.github.io/one-click-se-demos/cvaas-cvaas-and-avd-demo--evpn-mlag/cvaas-cvaas-and-avd-demo--evpn-mlag/)
- [HTML Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/cvaas-cvaas-and-avd-demo--evpn-mlag.html)
- [PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/cvaas-cvaas-and-avd-demo--evpn-mlag.pdf)
- [Lab Documentation](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/cvaas-cvaas-and-avd-demo--evpn-mlag/cvaas-cvaas-and-avd-demo--evpn-mlag/)
- [HTML Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/cvaas-cvaas-and-avd-demo--evpn-mlag.html)
- [PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/cvaas-cvaas-and-avd-demo--evpn-mlag.pdf)
6 changes: 3 additions & 3 deletions docs/avd-avd-extended-workshop--part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@

:material-checkbox-marked-outline: Works with default Codespaces sizing!

[Start "AVD Extended Workshop, Part 1" in Codespace](https://codespaces.new/arista-netdevops-community/one-click-se-demos?quickstart=1&devcontainer_path=.devcontainer%2Favd-avd-extended-workshop--part-1%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}
[Start "AVD Extended Workshop, Part 1" in Codespace](https://codespaces.new/{{gh.repository}}?quickstart=1&devcontainer_path=.devcontainer%2Favd-avd-extended-workshop--part-1%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}

[Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/avd-avd-extended-workshop--part-1.html){ target=_blank }
[PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/avd-avd-extended-workshop--part-1.pdf){ target=_blank }
[Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/avd-avd-extended-workshop--part-1.html){ target=_blank }
[PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/avd-avd-extended-workshop--part-1.pdf){ target=_blank }

!!! Info "Last reviewed: 29/04/2024"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

:material-checkbox-marked-outline: Works with default Codespaces sizing!

[Start "AVD Extended Workshop, Part 1" in Codespace](https://codespaces.new/arista-netdevops-community/one-click-se-demos?quickstart=1&devcontainer_path=.devcontainer%2Favd-extended-workshop-part-1%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}
[Start "AVD Extended Workshop, Part 1" in Codespace](https://codespaces.new/{{gh.repository}}?quickstart=1&devcontainer_path=.devcontainer%2Favd-extended-workshop-part-1%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}

[Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/avd-extended-workshop-part-1.html){ target=_blank }
[PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/avd-extended-workshop-part-1.pdf){ target=_blank }
[Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/avd-extended-workshop-part-1.html){ target=_blank }
[PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/avd-extended-workshop-part-1.pdf){ target=_blank }

!!! Info "Last reviewed: 15/04/2024"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

:material-checkbox-marked-outline: Works with default Codespaces sizing!

[Start The EVPN AA Demo](https://codespaces.new/arista-netdevops-community/one-click-se-demos?quickstart=1&devcontainer_path=.devcontainer%2Favd_extended_workshop%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank }
[Start The EVPN AA Demo](https://codespaces.new/{{gh.repository}}?quickstart=1&devcontainer_path=.devcontainer%2Favd_extended_workshop%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank }

[Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/avd_extended_workshop.html){ target=_blank }
[PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/avd_extended_workshop.pdf){ target=_blank }
[Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/avd_extended_workshop.html){ target=_blank }
[PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/avd_extended_workshop.pdf){ target=_blank }
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

:material-checkbox-marked-outline: Works with default Codespaces sizing!

[Start "CVaaS and AVD Demo, EVPN AA" in Codespace](https://codespaces.new/arista-netdevops-community/one-click-se-demos?quickstart=1&devcontainer_path=.devcontainer%2Fcvaas-cvaas-and-avd-demo--evpn-aa%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}
[Start "CVaaS and AVD Demo, EVPN AA" in Codespace](https://codespaces.new/{{gh.repository}}?quickstart=1&devcontainer_path=.devcontainer%2Fcvaas-cvaas-and-avd-demo--evpn-aa%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}

[Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/cvaas-cvaas-and-avd-demo--evpn-aa.html){ target=_blank }
[PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/cvaas-cvaas-and-avd-demo--evpn-aa.pdf){ target=_blank }
[Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/cvaas-cvaas-and-avd-demo--evpn-aa.html){ target=_blank }
[PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/cvaas-cvaas-and-avd-demo--evpn-aa.pdf){ target=_blank }

!!! Info "Last reviewed: 02/05/2024"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

:material-checkbox-marked-outline: Works with default Codespaces sizing!

[Start "CVaaS and AVD Demo, EVPN MLAG" in Codespace](https://codespaces.new/arista-netdevops-community/one-click-se-demos?quickstart=1&devcontainer_path=.devcontainer%2Fcvaas-cvaas-and-avd-demo--evpn-mlag%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}
[Start "CVaaS and AVD Demo, EVPN MLAG" in Codespace](https://codespaces.new/{{gh.repository}}?quickstart=1&devcontainer_path=.devcontainer%2Fcvaas-cvaas-and-avd-demo--evpn-mlag%2Fdevcontainer.json){ .md-button .md-button--primary target=_blank}

[Slides](https://arista-netdevops-community.github.io/one-click-se-demos/slides/cvaas-cvaas-and-avd-demo--evpn-mlag.html){ target=_blank }
[PDF Slides](https://arista-netdevops-community.github.io/one-click-se-demos/pdfs/cvaas-cvaas-and-avd-demo--evpn-mlag.pdf){ target=_blank }
[Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/slides/cvaas-cvaas-and-avd-demo--evpn-mlag.html){ target=_blank }
[PDF Slides](https://{{gh.org_name}}.github.io/{{gh.repo_name}}/pdfs/cvaas-cvaas-and-avd-demo--evpn-mlag.pdf){ target=_blank }

!!! Info "Last reviewed: 01/05/2024"

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ To set the token:

???+ "Step2: Go to `Codespaces > Codespaces secrets > New secret`"

- add ARTOKEN to auto-download EOS images from [arista.com](arista.com). Under `Repository access` select `arista-netdevops-community/one-click-se-demos`
- add CV_API_TOKEN if CVaaS is part of the demo. Keep in mind, this token has to be created under service account. Device onboarding token is not required as it will be generated automatically. Under `Repository access` select `arista-netdevops-community/one-click-se-demos`
- add ARTOKEN to auto-download EOS images from [arista.com](arista.com). Under `Repository access` select `{{gh.repository}}`
- add CV_API_TOKEN if CVaaS is part of the demo. Keep in mind, this token has to be created under service account. Device onboarding token is not required as it will be generated automatically. Under `Repository access` select `{{gh.repository}}`

![codespaces secrets](assets/img/codespaces-secrets.png){ .opacity09 }

Expand Down
4 changes: 2 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
site_name: One-Click SE Demos
site_url: https://arista-netdevops-community.github.io/one-click-se-demos/
site_url: https://{{gh.org_name}}.github.io/{{gh.repo_name}}/
repo_name: SE Demos on Github
repo_url: https://github.com/arista-netdevops-community/one-click-se-demos
repo_url: https://github.com/{{gh.org_name}}/{{gh.repo_name}}

extra_css:
- assets/stylesheets/extra.css
Expand Down
2 changes: 1 addition & 1 deletion slides/avd-avd-extended-workshop--part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Petr Ankudinov
# Q&A

- [Ansible AVD](https://avd.arista.com/)
- [This repository](https://github.com/arista-netdevops-community/one-click-se-demos)
- [This repository](https://github.com/{{gh.repository}})
2 changes: 1 addition & 1 deletion slides/avd-extended-workshop-part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ check topology on light
# Q&A

- [Ansible AVD](https://avd.arista.com/)
- [This repository](https://github.com/arista-netdevops-community/one-click-se-demos)
- [This repository](https://github.com/{{gh.repository}})
2 changes: 1 addition & 1 deletion slides/clab-build-containerlab-with-ceos.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ Petr Ankudinov
# Q&A

- [Ansible AVD](https://avd.arista.com/)
- [This repository](https://github.com/arista-netdevops-community/one-click-se-demos)
- [This repository](https://github.com/{{gh.repository}})
2 changes: 1 addition & 1 deletion slides/cvaas-cvaas-and-avd-demo--evpn-aa.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ Tool | Purpose
# Q&A

- [Ansible AVD](https://avd.arista.com/)
- [This repository](https://github.com/arista-netdevops-community/one-click-se-demos)
- [This repository](https://github.com/{{gh.repository}})
2 changes: 1 addition & 1 deletion slides/cvaas-cvaas-and-avd-demo--evpn-mlag.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ Tool | Purpose
# Q&A

- [Ansible AVD](https://avd.arista.com/)
- [This repository](https://github.com/arista-netdevops-community/one-click-se-demos)
- [This repository](https://github.com/{{gh.repository}})

0 comments on commit 1924f76

Please sign in to comment.