Skip to content

Commit

Permalink
Fix the path for Java javadoc HTMLs
Browse files Browse the repository at this point in the history
Do not trigger the workflow for changes in the SDKs

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
  • Loading branch information
martin-g committed Apr 13, 2023
1 parent 1ac7785 commit 8b181dc
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 17 deletions.
4 changes: 0 additions & 4 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,3 @@ notifications:
# Send individual PR comments/reviews to issues@
pullrequests_comment: issues@avro.apache.org
jira_options: link label worklog

publish:
whoami: asf-site
subdir: asf-site
19 changes: 12 additions & 7 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
paths:
- .github/workflows/docs.yaml
- doc/**
- lang/c/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -44,7 +43,7 @@ jobs:
run: |
set -x
cd doc
hugo --minify --destination ../website --baseURL=/asf-site
hugo --minify --destination ../website --baseURL=/update-site
- uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -139,14 +138,12 @@ jobs:
run: |
set -x
cd lang/java
mvn -Pdist javadoc::aggregate
ls -la target
ls -la target/apidocs
mvn javadoc::aggregate
- uses: actions/upload-artifact@v3
with:
name: api-java
path: lang/java/target/apidocs
path: lang/java/target/site/apidocs

push-website:
name: Push website
Expand Down Expand Up @@ -193,6 +190,11 @@ jobs:
run: |
set -x
mkdir -p website/docs/++version++/api/c
mkdir -p website/docs/++version++/api/cpp/html
mkdir -p website/docs/++version++/api/csharp/html
mkdir -p website/docs/++version++/api/java
mv api-c/* website/docs/++version++/api/c/
mv api-c++/* website/docs/++version++/api/cpp/html/
mv api-csharp/* website/docs/++version++/api/csharp/html/
Expand All @@ -206,7 +208,10 @@ jobs:
--exclude '/.git/' \
../website/ \
./
cp ../.asf.yaml .
echo "publish:
whoami: asf-site
subdir: update-site
" > .asf.yaml
touch .nojekyll
git status --porcelain
if [ "$(git status --porcelain)" != "" ]; then
Expand Down
2 changes: 1 addition & 1 deletion doc/content/en/docs/++version++/api-c++.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "C++ API"
linkTitle: "C++ API"
weight: 102
manualLink: ./docs/++version++/api/cpp/html/
manualLink: ./api/cpp/html/
---

<!--
Expand Down
2 changes: 1 addition & 1 deletion doc/content/en/docs/++version++/api-c.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "C API"
linkTitle: "C API"
weight: 101
manualLink: ./docs/++version++/api/c/
manualLink: ./api/c/
---

<!--
Expand Down
2 changes: 1 addition & 1 deletion doc/content/en/docs/++version++/api-csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "C# API"
linkTitle: "C# API"
weight: 103
manualLink: ./docs/++version++/api/csharp/html/
manualLink: ./api/csharp/html/
---

<!--
Expand Down
2 changes: 1 addition & 1 deletion doc/content/en/docs/++version++/api-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Java API"
linkTitle: "Java API"
weight: 100
manualLink: ./docs/++version++/api/java/
manualLink: ./api/java/
---

<!--
Expand Down
4 changes: 2 additions & 2 deletions doc/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
-->

{{ $baseurl := urls.Parse $.Site.Params.Baseurl }}
{{ $cover := and (.HasShortcode "blocks/cover") (not .Site.Params.ui.navbar_translucent_over_cover_disable) }}
<nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} td-navbar-cover {{ end }}flex-column flex-md-row td-navbar">
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
{{/* AVRO-3555: Don't inline the existing logo for now.
<span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
*/}}
<span class="navbar-logo"><img src="./docs/++version++/logo.svg" width="100" height="30" style="margin: 0 10px"></span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
<span class="navbar-logo"><img src="{{ $baseurl }}/docs/++version++/logo.svg" width="100" height="30" style="margin: 0 10px"></span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
</a>

<div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar">
Expand All @@ -40,7 +41,6 @@
{{ $pre := .Pre }}
{{ $post := .Post }}
{{ $url := urls.Parse .URL }}
{{ $baseurl := urls.Parse $.Site.Params.Baseurl }}
<a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}>{{ with .Pre}}{{ $pre }}{{ end }}<span{{if $active }} class="active"{{end}}>{{ .Name }}</span>{{ with .Post}}{{ $post }}{{ end }}</a>
</li>
{{ end }}
Expand Down

0 comments on commit 8b181dc

Please sign in to comment.