summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2023-11-19 05:20:39 +0300
committerRasmus Andersson <rasmus@notion.se>2023-11-19 05:20:39 +0300
commitfcef499e69b6a96e1c3e33b675e27dd447e9acf0 (patch)
tree8c3c16d888bac504d31ecaa7117bb070d632157e
parent022d2fb908bf03fc0983060dbb46a2c852e835c4 (diff)
downloadinter-fcef499e69b6a96e1c3e33b675e27dd447e9acf0.tar.xz
website: gh pages fix attempt for automatic site.baseurl (maybe?)
-rw-r--r--docs/Makefile4
-rw-r--r--docs/index.html4
2 files changed, 3 insertions, 5 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 3c29e6a38..4cac1dc8a 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -16,7 +16,7 @@ build: .ruby-bundle
build-tmp: .ruby-bundle
rm -rf _site-tmp
- bundle exec jekyll build --disable-disk-cache -b /tmp/inter-v4-website/ -d _site-tmp
+ bundle exec jekyll build --disable-disk-cache -b /tmp/inter-v4-website -d _site-tmp
serve: .ruby-bundle
$(Q)if [ ! -s lab/fonts ]; then \
@@ -30,7 +30,7 @@ serve: .ruby-bundle
@# copied font files and re-creating the symlink, but it was a frail process.
@# For live testing with fonts, you'll instead want to use docs/lab/serve.py
$(Q)rm -rf _site
- $(Q)bundle exec jekyll serve -b / --watch \
+ $(Q)bundle exec jekyll serve -b '' --watch \
--config _config.yml,_config-dev.yml \
--host $(HTTP_SERVER_BIND_ADDR) --port 3002 \
--livereload --livereload-port 30002
diff --git a/docs/index.html b/docs/index.html
index c8a82af2a..37b271671 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -1,7 +1,7 @@
---
layout: default
---
-{%
+{% include defs.html %}{%
assign release_version = site.data.fontinfo[0].version %}{%
@@ -22,8 +22,6 @@ for c in site.data.languages %}{%
assign lang_count = lang_count | plus:1 %}{%
endfor %}{%
endfor -%}
-<!-- url_root={{url_root}} -->
-<!-- site.baseurl={{site.baseurl}} -->
<style type="text/css">
body { overflow-x: hidden }