Skip to content

Commit 24ecc7b

Browse files
author
Sidney Andrews
authored
Merge pull request #3 from AzureTechCommunity/azure-pptx-template
Updated PPTX template and build process
2 parents 6b9e347 + a00547b commit 24ecc7b

9 files changed

Lines changed: 300 additions & 20 deletions

File tree

.assets/code.theme

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
{
2+
"text-color": "#D4D4D4",
3+
"background-color": "#1E1E1E",
4+
"line-number-color": null,
5+
"line-number-background-color": null,
6+
"text-styles": {
7+
"Other": {
8+
"text-color": "#efef8f",
9+
"background-color": null,
10+
"bold": false,
11+
"italic": false,
12+
"underline": false
13+
},
14+
"Attribute": {
15+
"text-color": null,
16+
"background-color": null,
17+
"bold": false,
18+
"italic": false,
19+
"underline": false
20+
},
21+
"SpecialString": {
22+
"text-color": "#CE9178",
23+
"background-color": null,
24+
"bold": false,
25+
"italic": false,
26+
"underline": false
27+
},
28+
"Annotation": {
29+
"text-color": "#7f9f7f",
30+
"background-color": null,
31+
"bold": true,
32+
"italic": false,
33+
"underline": false
34+
},
35+
"Function": {
36+
"text-color": "#569CD6",
37+
"background-color": null,
38+
"bold": false,
39+
"italic": false,
40+
"underline": false
41+
},
42+
"String": {
43+
"text-color": "#CE9178",
44+
"background-color": null,
45+
"bold": false,
46+
"italic": false,
47+
"underline": false
48+
},
49+
"ControlFlow": {
50+
"text-color": "#f0dfaf",
51+
"background-color": null,
52+
"bold": false,
53+
"italic": false,
54+
"underline": false
55+
},
56+
"Operator": {
57+
"text-color": "#f0efd0",
58+
"background-color": null,
59+
"bold": false,
60+
"italic": false,
61+
"underline": false
62+
},
63+
"Error": {
64+
"text-color": "#c3bf9f",
65+
"background-color": null,
66+
"bold": false,
67+
"italic": false,
68+
"underline": false
69+
},
70+
"BaseN": {
71+
"text-color": "#dca3a3",
72+
"background-color": null,
73+
"bold": false,
74+
"italic": false,
75+
"underline": false
76+
},
77+
"Alert": {
78+
"text-color": "#ffcfaf",
79+
"background-color": null,
80+
"bold": false,
81+
"italic": false,
82+
"underline": false
83+
},
84+
"Variable": {
85+
"text-color": null,
86+
"background-color": null,
87+
"bold": false,
88+
"italic": false,
89+
"underline": false
90+
},
91+
"BuiltIn": {
92+
"text-color": null,
93+
"background-color": null,
94+
"bold": false,
95+
"italic": false,
96+
"underline": false
97+
},
98+
"Extension": {
99+
"text-color": null,
100+
"background-color": null,
101+
"bold": false,
102+
"italic": false,
103+
"underline": false
104+
},
105+
"Preprocessor": {
106+
"text-color": "#ffcfaf",
107+
"background-color": null,
108+
"bold": true,
109+
"italic": false,
110+
"underline": false
111+
},
112+
"Information": {
113+
"text-color": "#7f9f7f",
114+
"background-color": null,
115+
"bold": true,
116+
"italic": false,
117+
"underline": false
118+
},
119+
"VerbatimString": {
120+
"text-color": "#CE9178",
121+
"background-color": null,
122+
"bold": false,
123+
"italic": false,
124+
"underline": false
125+
},
126+
"Warning": {
127+
"text-color": "#7f9f7f",
128+
"background-color": null,
129+
"bold": true,
130+
"italic": false,
131+
"underline": false
132+
},
133+
"Documentation": {
134+
"text-color": "#7f9f7f",
135+
"background-color": null,
136+
"bold": false,
137+
"italic": false,
138+
"underline": false
139+
},
140+
"Import": {
141+
"text-color": null,
142+
"background-color": null,
143+
"bold": false,
144+
"italic": false,
145+
"underline": false
146+
},
147+
"Char": {
148+
"text-color": "#dca3a3",
149+
"background-color": null,
150+
"bold": false,
151+
"italic": false,
152+
"underline": false
153+
},
154+
"DataType": {
155+
"text-color": "#dfdfbf",
156+
"background-color": null,
157+
"bold": false,
158+
"italic": false,
159+
"underline": false
160+
},
161+
"Float": {
162+
"text-color": "#c0bed1",
163+
"background-color": null,
164+
"bold": false,
165+
"italic": false,
166+
"underline": false
167+
},
168+
"Comment": {
169+
"text-color": "#7f9f7f",
170+
"background-color": null,
171+
"bold": false,
172+
"italic": false,
173+
"underline": false
174+
},
175+
"CommentVar": {
176+
"text-color": "#7f9f7f",
177+
"background-color": null,
178+
"bold": true,
179+
"italic": false,
180+
"underline": false
181+
},
182+
"Constant": {
183+
"text-color": "#dca3a3",
184+
"background-color": null,
185+
"bold": true,
186+
"italic": false,
187+
"underline": false
188+
},
189+
"SpecialChar": {
190+
"text-color": "#dca3a3",
191+
"background-color": null,
192+
"bold": false,
193+
"italic": false,
194+
"underline": false
195+
},
196+
"DecVal": {
197+
"text-color": "#dcdccc",
198+
"background-color": null,
199+
"bold": false,
200+
"italic": false,
201+
"underline": false
202+
},
203+
"Keyword": {
204+
"text-color": "#D4D4D4",
205+
"background-color": null,
206+
"bold": false,
207+
"italic": false,
208+
"underline": false
209+
}
210+
}
211+
}

.assets/lint.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"MD013": false
3+
}

.assets/template.pptx

74.5 KB
Binary file not shown.

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: 'Checkout Code'
1616
uses: actions/checkout@v2
1717
- name: 'Run Pandoc Builds'
18-
run: ls | grep '.md' | xargs basename -s '.md' | xargs -I % sh -c "pandoc %.md --standalone --slide-level=3 --reference-doc=../.assets/template.pptx --variable=monofont:'Consolas' --output %-v${{ github.run_number }}.pptx"
18+
run: ls | grep '.md' | xargs basename -s '.md' | xargs -I % sh -c "pandoc %.md --standalone --slide-level=3 --reference-doc=../.assets/template.pptx --highlight-style=../.assets/code.theme --variable=monofont:'Consolas' --output %-v${{ github.run_number }}.pptx"
1919
working-directory: ./talks
2020
- name: 'Upload Presentation Artifacts'
2121
uses: actions/upload-artifact@v2
@@ -38,4 +38,4 @@ jobs:
3838
with:
3939
files: ./**/*.pptx
4040
tag_name: v${{ github.run_number }}
41-
name: Release V${{ github.run_number }}
41+
name: Release V${{ github.run_number }}

.github/workflows/validate.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Validate Presentation Build'
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
validate-markdown:
8+
name: 'Validate Markdown'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 'Checkout Code'
12+
uses: actions/checkout@v2
13+
- name: 'Lint Markdown'
14+
uses: nosborn/github-action-markdown-cli@v1.1.1
15+
with:
16+
config_file: '.assets/lint.config.json'
17+
files: '**/*.md'
18+
build-pptx:
19+
name: 'Build PowerPoint Presentation'
20+
runs-on: ubuntu-latest
21+
container:
22+
image: seesharprun/pandoc-build
23+
steps:
24+
- name: 'Checkout Code'
25+
uses: actions/checkout@v2
26+
- name: 'Run Pandoc Builds'
27+
run: ls | grep '.md' | xargs basename -s '.md' | xargs -I % sh -c "pandoc %.md --standalone --slide-level=3 --reference-doc=../.assets/template.pptx --highlight-style=../.assets/code.theme --variable=monofont:'Consolas' --output %-draft.pptx"
28+
working-directory: ./talks
29+
- name: 'Upload Presentation Artifacts'
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: presentations
33+
path: ./talks/*.pptx

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
!.github/
66
!.assets/
77
.assets/*
8+
!.assets/*.json
89
!.assets/*.pptx
10+
!.assets/*.theme
11+
.assets/~$*.pptx
912
!talks/
1013
talks/*
1114
!talks/*.md

0 commit comments

Comments
 (0)