This is an automated email from the ASF dual-hosted git repository.
toulmean pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tuweni-website.git
The following commit(s) were added to refs/heads/master by this push:
new 94dc05b Add javadocs to website
94dc05b is described below
commit 94dc05bed4d0dedce679d32b684e5118f176d015
Author: Antoine Toulme <[email protected]>
AuthorDate: Thu Dec 31 15:12:51 2020 -0800
Add javadocs to website
---
.gitignore | 1 +
_includes/themes/apache/_navigation.html | 1 +
publish.sh | 15 +++++++++++++++
3 files changed, 17 insertions(+)
diff --git a/.gitignore b/.gitignore
index f083a5c..5e7a819 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
.sass-cache
target
.bundle
+.DS_Store
diff --git a/_includes/themes/apache/_navigation.html
b/_includes/themes/apache/_navigation.html
index 3c6e8fb..fcc5015 100644
--- a/_includes/themes/apache/_navigation.html
+++ b/_includes/themes/apache/_navigation.html
@@ -31,6 +31,7 @@
<a href="#" data-toggle="dropdown"
class="dropdown-toggle">Docs<b class="caret"></b></a>
<ul class="dropdown-menu dropdown-left">
<li><a href="/faq">FAQ</a></li>
+ <li><a href="/docs">Javadoc</a></li>
</ul>
</li>
<li><a href="{{ site.data.project.source_repository
}}">GitHub</a></li>
diff --git a/publish.sh b/publish.sh
index 246f335..5a4418a 100755
--- a/publish.sh
+++ b/publish.sh
@@ -26,6 +26,7 @@ TEMPDIR="$(mktemp -d -t tuweni-site-XXXXXXX)"
cd $TEMPDIR
git clone https://github.com/apache/incubator-tuweni-website.git master-branch
git clone https://gitbox.apache.org/repos/asf/incubator-tuweni-website.git
asf-site-branch
+git clone https://github.com/apache/incubator-tuweni.git code
#
# Testing:
@@ -71,6 +72,20 @@ git fetch origin asf-site
git pull origin asf-site
cp -R ../master-branch/target/* content
+cd ..
+
+#
+# Generate javadocs
+#
+cd code
+gradle setup
+./gradlew dokka
+mkdir -p ../asf-site-branch/content/docs
+cp build/docs/style.css ../asf-site-branch/content/style.css
+cp -R build/docs/tuweni/* ../asf-site-branch/content/docs
+cd ..
+cd asf-site-branch
+
#
# Commit and push to gitbox
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]