Skip to content

Commit

Permalink
Add prefix to slide numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jpetazzo committed Nov 3, 2019
1 parent 74ece65 commit 8320534
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 1 deletion.
2 changes: 2 additions & 0 deletions slides/intro-fullday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced

Expand Down
2 changes: 2 additions & 0 deletions slides/intro-selfpaced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- in-person

Expand Down
2 changes: 2 additions & 0 deletions slides/kadm-fullday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced
- static-pods-exercise
Expand Down
2 changes: 2 additions & 0 deletions slides/kadm-twodays.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced

Expand Down
2 changes: 2 additions & 0 deletions slides/kube-fullday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced

Expand Down
2 changes: 2 additions & 0 deletions slides/kube-halfday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced

Expand Down
2 changes: 2 additions & 0 deletions slides/kube-selfpaced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- in-person

Expand Down
2 changes: 2 additions & 0 deletions slides/kube-twodays.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced

Expand Down
3 changes: 2 additions & 1 deletion slides/markmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def flatten(titles):


def generatefromyaml(manifest, filename):
manifest = yaml.load(manifest)
manifest = yaml.safe_load(manifest)

markdown, titles = processchapter(manifest["chapters"], filename)
logging.debug("Found {} titles.".format(len(titles)))
Expand Down Expand Up @@ -111,6 +111,7 @@ def generatefromyaml(manifest, filename):
html = html.replace("@@GITREPO@@", manifest["gitrepo"])
html = html.replace("@@SLIDES@@", manifest["slides"])
html = html.replace("@@TITLE@@", manifest["title"].replace("\n", " "))
html = html.replace("@@SLIDENUMBERPREFIX@@", manifest.get("slidenumberprefix", ""))
return html


Expand Down
2 changes: 2 additions & 0 deletions slides/swarm-fullday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced
- snap
Expand Down
2 changes: 2 additions & 0 deletions slides/swarm-halfday.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- self-paced
- snap
Expand Down
2 changes: 2 additions & 0 deletions slides/swarm-selfpaced.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- in-person
- btp-auto
Expand Down
2 changes: 2 additions & 0 deletions slides/swarm-video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ gitrepo: github.com/jpetazzo/container.training

slides: http://container.training/

#slidenumberprefix: "#SomeHashTag — "

exclude:
- in-person
- btp-auto
Expand Down
1 change: 1 addition & 0 deletions slides/workshop.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ <h1 style="font-size: 3em;">Loading ...</h1>
var slideshow = remark.create({
ratio: '16:9',
highlightSpans: true,
slideNumberFormat: '@@SLIDENUMBERPREFIX@@%current%/%total%',
excludedClasses: [@@EXCLUDE@@]
});
</script>
Expand Down

0 comments on commit 8320534

Please sign in to comment.