Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
executable.graphics
Commits
6d4a0e09
Commit
6d4a0e09
authored
Jun 15, 2021
by
lunasorcery
Browse files
slight tidying
parent
312f94de
Changes
11
Show whitespace changes
Inline
Side-by-side
build-site.py
View file @
6d4a0e09
...
...
@@ -50,11 +50,11 @@ maybe_mkdir('gen/img/')
print
(
"generating icons..."
)
if
not
os
.
path
.
exists
(
'gen/apple-touch-icon.png'
):
os
.
system
(
f
"inkscape -w 160 -h 160 -o gen/apple-touch-icon.png mobile-icon.svg"
)
os
.
system
(
f
"inkscape -w 160 -h 160 -o gen/apple-touch-icon.png
icons/
mobile-icon.svg"
)
if
not
os
.
path
.
exists
(
'gen/favicon.ico'
):
faviconSizes
=
[
16
,
32
,
48
]
for
size
in
faviconSizes
:
os
.
system
(
f
"inkscape -w
{
size
}
-h
{
size
}
-o gen/favicon-
{
size
}
.png favicon.svg"
)
os
.
system
(
f
"inkscape -w
{
size
}
-h
{
size
}
-o gen/favicon-
{
size
}
.png
icons/
favicon.svg"
)
faviconPngs
=
[
f
"gen/favicon-
{
size
}
.png"
for
size
in
faviconSizes
]
os
.
system
(
f
"convert
{
' '
.
join
(
faviconPngs
)
}
gen/favicon.ico"
)
for
faviconPng
in
faviconPngs
:
...
...
@@ -180,8 +180,8 @@ sharedTemplate = {
'hash-apple-touch-icon-png'
:
crc32_file
(
'gen/apple-touch-icon.png'
),
'hash-manifest-json'
:
crc32_file
(
'manifest.json'
),
'svg-globe'
:
open
(
'globe.svg'
).
read
(),
'svg-moon'
:
open
(
'moon.svg'
).
read
()
'svg-globe'
:
open
(
'
icons/
globe.svg'
).
read
(),
'svg-moon'
:
open
(
'
icons/
moon.svg'
).
read
()
}
...
...
@@ -207,17 +207,23 @@ for lang in i18n:
langTemplate
=
{
'i18n'
:
template_localize
}
with
open
(
'index.mustache'
,
'r'
)
as
f
:
with
open
(
'
templates/
index.mustache'
,
'r'
)
as
f
:
with
open
(
f
"
{
outdir
}
/index.html"
,
'w'
)
as
fout
:
fout
.
write
(
chevron
.
render
(
f
,
sharedTemplate
|
langTemplate
|
{
fout
.
write
(
chevron
.
render
(
template
=
f
,
partials_path
=
'templates/'
,
data
=
sharedTemplate
|
langTemplate
|
{
'meta-description'
:
"A curated gallery of 4K Executable Graphics works from the demoscene."
,
'meta-twitter-card-type'
:
"summary_large_image"
,
'page-gallery'
:
True
,
'entries'
:
prods
}))
with
open
(
'meteoriks.mustache'
,
'r'
)
as
f
:
with
open
(
'
templates/
meteoriks.mustache'
,
'r'
)
as
f
:
with
open
(
f
"
{
outdir
}
/meteoriks.html"
,
'w'
)
as
fout
:
fout
.
write
(
chevron
.
render
(
f
,
sharedTemplate
|
langTemplate
|
{
fout
.
write
(
chevron
.
render
(
template
=
f
,
partials_path
=
'templates/'
,
data
=
sharedTemplate
|
langTemplate
|
{
'meta-subtitle'
:
"Meteoriks"
,
'meta-description'
:
"Nominees and winners of the 'Best Executable Graphics' Meteorik award."
,
'meta-twitter-card-type'
:
"summary"
,
...
...
@@ -225,9 +231,12 @@ for lang in i18n:
'page-meteoriks'
:
True
,
'entries'
:
meteorikProds
}))
with
open
(
'about.mustache'
,
'r'
)
as
f
:
with
open
(
'
templates/
about.mustache'
,
'r'
)
as
f
:
with
open
(
f
"
{
outdir
}
/about.html"
,
'w'
)
as
fout
:
fout
.
write
(
chevron
.
render
(
f
,
sharedTemplate
|
langTemplate
|
{
fout
.
write
(
chevron
.
render
(
template
=
f
,
partials_path
=
'templates/'
,
data
=
sharedTemplate
|
langTemplate
|
{
'meta-subtitle'
:
"About"
,
'meta-description'
:
"What is Executable Graphics?"
,
'meta-twitter-card-type'
:
"summary"
,
...
...
favicon.svg
→
icons/
favicon.svg
View file @
6d4a0e09
File moved
globe.svg
→
icons/
globe.svg
View file @
6d4a0e09
File moved
mobile-icon.svg
→
icons/
mobile-icon.svg
View file @
6d4a0e09
File moved
moon.svg
→
icons/
moon.svg
View file @
6d4a0e09
File moved
about.mustache
→
templates/
about.mustache
View file @
6d4a0e09
File moved
artwork.mustache
→
templates/
artwork.mustache
View file @
6d4a0e09
File moved
footer.mustache
→
templates/
footer.mustache
View file @
6d4a0e09
File moved
header.mustache
→
templates/
header.mustache
View file @
6d4a0e09
File moved
index.mustache
→
templates/
index.mustache
View file @
6d4a0e09
File moved
meteoriks.mustache
→
templates/
meteoriks.mustache
View file @
6d4a0e09
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment