diff --git a/docs/developer-guide/img/c9d4b9cc-61f6-11e5-8b67-4691600188cd.png b/docs/developer-guide/img/c9d4b9cc-61f6-11e5-8b67-4691600188cd.png new file mode 100644 index 0000000000..8337b8a44b Binary files /dev/null and b/docs/developer-guide/img/c9d4b9cc-61f6-11e5-8b67-4691600188cd.png differ diff --git a/docs/website/hugo.toml b/docs/website/hugo.toml index 1688e269a0..fb1e94a6be 100644 --- a/docs/website/hugo.toml +++ b/docs/website/hugo.toml @@ -31,6 +31,12 @@ keywords = [ "java", ] +[params.assets] +favicon = "favicon.ico" +favicon16x16 = "favicon.ico" +favicon32x32 = "favicon.ico" +apple_touch_icon = "favicon.ico" + [params.label] text = "CODENAME ONE" icon = "/uploads/Codename-One-White-Logo.png" diff --git a/docs/website/layouts/partials/extend_head.html b/docs/website/layouts/partials/extend_head.html index c1f1af7601..ca2d2b687d 100644 --- a/docs/website/layouts/partials/extend_head.html +++ b/docs/website/layouts/partials/extend_head.html @@ -3,8 +3,13 @@ {{- if eq .Layout "developer-guide" -}} - + {{- $asciidoctorCssPath := "static/developer-guide/asciidoctor.css" -}} + {{- if fileExists $asciidoctorCssPath -}} + + {{- end -}} {{- end -}} {{- with site.GetPage "section" "blog" -}} {{- with .OutputFormats.Get "RSS" -}} diff --git a/docs/website/themes/PaperMod/layouts/partials/head.html b/docs/website/themes/PaperMod/layouts/partials/head.html index 4ea6885218..c512b1e4f2 100644 --- a/docs/website/themes/PaperMod/layouts/partials/head.html +++ b/docs/website/themes/PaperMod/layouts/partials/head.html @@ -95,11 +95,11 @@ {{- end -}} {{- /* Favicons */}} - - - - - + + + + + diff --git a/scripts/website/build.sh b/scripts/website/build.sh index 4e1b73d916..afbc5c2b3a 100755 --- a/scripts/website/build.sh +++ b/scripts/website/build.sh @@ -68,7 +68,6 @@ build_developer_guide_for_site() { --require rouge \ -a linkcss \ -a copycss \ - -a stylesheet=asciidoctor.css \ -D "${html_out}" \ -o developer-guide-full.html \ docs/developer-guide/developer-guide.asciidoc @@ -93,6 +92,14 @@ build_developer_guide_for_site() { if [ -f "${html_out}/asciidoctor.css" ]; then cp "${html_out}/asciidoctor.css" "${guide_dir}/asciidoctor.css" + elif command -v ruby >/dev/null 2>&1; then + ruby -rasciidoctor -e 'print Asciidoctor::Stylesheets.instance.primary_stylesheet_data' \ + > "${guide_dir}/asciidoctor.css" + fi + + if [ ! -s "${guide_dir}/asciidoctor.css" ]; then + echo "Asciidoctor stylesheet could not be generated for Developer Guide." >&2 + exit 1 fi # Keep guide assets under /developer-guide/ so relative image links (e.g. img/foo.png) resolve. rsync -a \