Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/test-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
persist-credentials: false
fetch-tags: "true"
fetch-depth: 0
- uses: jdx/mise-action@6d1e696aa24c1aa1bcc1adea0212707c71ab78a8 # v3.6.1
with:
version: v2026.2.0
Expand All @@ -27,8 +29,10 @@ jobs:
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build Javadoc
run: mise run javadoc
- name: Build GitHub Pages
run: mise run build-gh-pages
env:
BASE_URL: "/client_java/"
- name: Build release version
run: mise run build-release
env:
Expand Down
97 changes: 35 additions & 62 deletions docs/themes/hugo-geekdoc/layouts/partials/microformats/schema.html
Original file line number Diff line number Diff line change
@@ -1,70 +1,43 @@
{{ $isPage := or (and (ne .Type "posts") (in "section page" .Kind )) (and (eq .Type "posts") (eq .Kind "page")) }}
{{- if eq .Kind "home" }}
{{- $schema := dict "@context" "http://schema.org" "@type" "WebSite" "name" .Site.Title "url" .Site.BaseURL "inLanguage" .Lang }}
{{- with partial "utils/description" . }}
{{- $schema = merge $schema (dict "description" (. | plainify | htmlUnescape | chomp)) }}
{{- end }}
{{- with partial "utils/featured" . }}
{{- $schema = merge $schema (dict "thumbnailUrl" .) }}
{{- end }}
{{- with .Site.Params.geekdocContentLicense }}
{{- $schema = merge $schema (dict "license" .name) }}
{{- end }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }},
{{- with partial "utils/description" . }}
"description": "{{ . | plainify | htmlUnescape | chomp }}",
{{- end }}
{{- with partial "utils/featured" . }}
"thumbnailUrl": {{ . }},
{{- end }}
{{- with .Site.Params.geekdocContentLicense }}
"license": "{{ .name }}",
{{- end }}
"inLanguage": {{ .Lang }}
}
{{- $schema | jsonify | safeJS }}
</script>
{{- else if $isPage }}
{{- $title := partial "utils/title" . }}
{{- $schema := dict "@context" "http://schema.org" "@type" "TechArticle" "articleSection" (.Section | humanize | title) "name" $title "url" .Permalink "headline" $title "wordCount" (string .WordCount) "inLanguage" .Lang "isFamilyFriendly" "true" "copyrightHolder" .Site.Title "copyrightYear" (.Date.Format "2006") "dateCreated" (.Date.Format "2006-01-02T15:04:05.00Z") "datePublished" (.PublishDate.Format "2006-01-02T15:04:05.00Z") "dateModified" (.Lastmod.Format "2006-01-02T15:04:05.00Z") }}
{{- with .Params.lead }}
{{- $schema = merge $schema (dict "alternativeHeadline" .) }}
{{- end }}
{{- with partial "utils/description" . }}
{{- $schema = merge $schema (dict "description" (. | plainify | htmlUnescape | chomp)) }}
{{- end }}
{{- with partial "utils/featured" . }}
{{- $schema = merge $schema (dict "thumbnailUrl" .) }}
{{- end }}
{{- with .Site.Params.geekdocContentLicense }}
{{- $schema = merge $schema (dict "license" .name) }}
{{- end }}
{{- $mainEntity := dict "@type" "WebPage" "@id" .Permalink }}
{{- $schema = merge $schema (dict "mainEntityOfPage" $mainEntity) }}
{{- with $tags := .Params.tags }}
{{- $schema = merge $schema (dict "keywords" $tags) }}
{{- end }}
{{- $logoUrl := default "brand.svg" .Site.Params.logo | absURL }}
{{- $logo := dict "@type" "ImageObject" "url" $logoUrl "width" "32" "height" "32" }}
{{- $publisher := dict "@type" "Organization" "name" .Site.Title "url" .Site.BaseURL "logo" $logo }}
{{- $schema = merge $schema (dict "publisher" $publisher) }}
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "TechArticle",
"articleSection": "{{ .Section | humanize | title }}",
"name": {{ partial "utils/title" . }},
"url" : {{ .Permalink }},
"headline": {{ partial "utils/title" . }},
{{- with .Params.lead }}
"alternativeHeadline": {{ . }},
{{- end }}
{{- with partial "utils/description" . }}
"description": "{{ . | plainify | htmlUnescape | chomp }}",
{{- end }}
{{- with partial "utils/featured" . }}
"thumbnailUrl": {{ . }},
{{- end }}
"wordCount" : "{{ .WordCount }}",
{{- with .Site.Params.geekdocContentLicense }}
"license": "{{ .name }}",
{{- end }}
"inLanguage": {{ .Lang }},
"isFamilyFriendly": "true",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": {{ .Permalink }}
},
{{- with $tags := .Params.tags }}
"keywords" : [ {{ range $i, $tag := $tags }}{{ if $i }}, {{ end }}"{{ $tag }}" {{ end }}],
{{- end }}
"copyrightHolder" : "{{ .Site.Title }}",
"copyrightYear" : "{{ .Date.Format "2006" }}",
"dateCreated": "{{ .Date.Format "2006-01-02T15:04:05.00Z" | safeJS }}",
"datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05.00Z" | safeJS }}",
"dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05.00Z" | safeJS }}",
"publisher":{
"@type":"Organization",
"name": {{ .Site.Title }},
"url": {{ .Site.BaseURL }},
"logo": {
"@type": "ImageObject",
"url": {{ (default "brand.svg" .Site.Params.logo) | absURL }},
"width":"32",
"height":"32"
}
}
}
{{- $schema | jsonify | safeJS }}
</script>
{{- end }}