Skip to content

Commit

Permalink
Convert the inlined fonts to SASS format
Browse files Browse the repository at this point in the history
  • Loading branch information
driehuis committed Jul 4, 2021
1 parent 6d0cfc4 commit 4467855
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ metadata_templates: all


.PHONY: docs zips
docs: docs/assets/css/Dinish-Regular.css docs/assets/css/Dinish-Bold.css
docs: docs/_sass/Dinish-Regular.scss docs/_sass/Dinish-Bold.scss
bash -c 'for f in Dinish DinishCondensed DinishExpanded; do cp sources/$$f/{METADATA.pb,DESCRIPTION.en_us.html} fonts/otf/$$f; done'
bash -c 'cat docs/index.md.header README.md >docs/index.md'

docs/assets/css/%.css: fonts/woff2/Dinish/%.woff2
docs/_sass/%.scss: fonts/woff2/Dinish/%.woff2
tools/woff2css $< $@

zips:
Expand Down
3 changes: 3 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ theme: jekyll-theme-slate
plugins:
#- jekyll-feed

sass:
style: compressed

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

@import "{{ site.theme }}";

@import "Dinish-Regular.css";
@import "Dinish-Bold.css";
@import "Dinish-Regular.scss";
@import "Dinish-Bold.scss";

body, h1, h2, h3, h4, h5, h6 {
font-family: DINish;
Expand Down

0 comments on commit 4467855

Please sign in to comment.