File tree Expand file tree Collapse file tree 5 files changed +25
-7
lines changed
themes/PaperMod/layouts/partials Expand file tree Collapse file tree 5 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,12 @@ keywords = [
3131 " java" ,
3232]
3333
34+ [params .assets ]
35+ favicon = " favicon.ico"
36+ favicon16x16 = " favicon.ico"
37+ favicon32x32 = " favicon.ico"
38+ apple_touch_icon = " favicon.ico"
39+
3440[params .label ]
3541text = " CODENAME ONE"
3642icon = " /uploads/Codename-One-White-Logo.png"
Original file line number Diff line number Diff line change 33< link rel ="stylesheet " href ="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap ">
44< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css ">
55{{- if eq .Layout "developer-guide" -}}
6- < link rel ="stylesheet " href ="/developer-guide/asciidoctor.css ">
76< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css ">
7+ {{- $asciidoctorCssPath := "static/developer-guide/asciidoctor.css" -}}
8+ {{- if fileExists $asciidoctorCssPath -}}
9+ < style >
10+ {{ readFile $asciidocto rCssPath | safeCSS }}
11+ </ style >
12+ {{- end -}}
813{{- end -}}
914{{- with site.GetPage "section" "blog" -}}
1015 {{- with .OutputFormats.Get "RSS" -}}
Original file line number Diff line number Diff line change 9595{{- end -}}
9696
9797{{- /* Favicons */}}
98- < link rel ="icon " href ="{{ site.Params.assets. favicon | default " favicon .ico" | absURL }} ">
99- < link rel ="icon " type ="image/png " sizes ="16x16 " href ="{{ site.Params.assets.favicon16x16 | default " favicon-16x16.png " | absURL }} ">
100- < link rel ="icon " type ="image/png " sizes ="32x32 " href ="{{ site.Params.assets.favicon32x32 | default " favicon-32x32.png " | absURL }} ">
101- < link rel ="apple-touch-icon " href ="{{ site.Params.assets.apple_touch_icon | default " apple-touch-icon.png " | absURL }} ">
102- < link rel ="mask-icon " href ="{{ site.Params.assets.safari_pinned_tab | default " safari-pinned-tab.svg " | absURL }} ">
98+ < link rel ="icon " href ="/ favicon.ico ">
99+ < link rel ="icon " type ="image/png " sizes ="16x16 " href ="/ favicon.ico ">
100+ < link rel ="icon " type ="image/png " sizes ="32x32 " href ="/ favicon.ico ">
101+ < link rel ="apple-touch-icon " href ="/favicon.ico ">
102+ < link rel ="mask-icon " href ="/favicon.ico ">
103103< meta name ="theme-color " content ="{{ site.Params.assets.theme_color | default "#2e2e33 " }}">
104104< meta name ="msapplication-TileColor " content ="{{ site.Params.assets.msapplication_TileColor | default "#2e2e33 " }}">
105105
Original file line number Diff line number Diff line change @@ -68,7 +68,6 @@ build_developer_guide_for_site() {
6868 --require rouge \
6969 -a linkcss \
7070 -a copycss \
71- -a stylesheet=asciidoctor.css \
7271 -D " ${html_out} " \
7372 -o developer-guide-full.html \
7473 docs/developer-guide/developer-guide.asciidoc
@@ -93,6 +92,14 @@ build_developer_guide_for_site() {
9392
9493 if [ -f " ${html_out} /asciidoctor.css" ]; then
9594 cp " ${html_out} /asciidoctor.css" " ${guide_dir} /asciidoctor.css"
95+ elif command -v ruby > /dev/null 2>&1 ; then
96+ ruby -rasciidoctor -e ' print Asciidoctor::Stylesheets.instance.primary_stylesheet_data' \
97+ > " ${guide_dir} /asciidoctor.css"
98+ fi
99+
100+ if [ ! -s " ${guide_dir} /asciidoctor.css" ]; then
101+ echo " Asciidoctor stylesheet could not be generated for Developer Guide." >&2
102+ exit 1
96103 fi
97104 # Keep guide assets under /developer-guide/ so relative image links (e.g. img/foo.png) resolve.
98105 rsync -a \
You can’t perform that action at this time.
0 commit comments