Skip to content

Commit 0d5af04

Browse files
author
Jonny Dimond
committed
added docs script and updated readme
1 parent fff5a33 commit 0d5af04

File tree

5 files changed

+55
-1
lines changed

5 files changed

+55
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@
99

1010
# Maven
1111
target
12+
13+
# Other
14+
/site/docs

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can also directly add the jar file in the folder `dist` to your project.
2323

2424
## API Reference
2525

26-
*TODO: add link to API reference*
26+
A full API reference is available [here](https://geofire-java.firebaseapp.com/docs/").
2727

2828
## Quick Start
2929

create-docs.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -e
3+
4+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
6+
echo "Generating javadocs..."
7+
mvn javadoc:javadoc
8+
9+
echo "Renaming output folder"
10+
rm -rf "$DIR/site/docs"
11+
mv "$DIR/target/site/apidocs" "$DIR/site/docs"

firebase.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"firebase": "geofire-java",
3+
"public": "site",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
]
9+
}

site/index.html

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>GeoFire for Java</title>
5+
</head>
6+
7+
<body style="width: 800px; margin: auto;">
8+
<h1 style="text-align: center;">GeoFire for iOS</h1>
9+
10+
<h2>API Reference</h2>
11+
<p>
12+
A full API reference for GeoFire for Java is available <a href="docs/index.html">here</a>.
13+
</p>
14+
15+
<h2>Quick Start</h2>
16+
<p>
17+
Check out <a href="https://github.com/firebase/geofire-java/">GitHub</a> for a quick start guide and examples.
18+
</p>
19+
20+
<h2>Source Code</h2>
21+
<p>
22+
GeoFire for Java is open source and available on <a href="https://github.com/firebase/geofire-java">GitHub</a>
23+
</p>
24+
25+
<h2>Other version</h2>
26+
<p>
27+
Other versions of GeoFire are available fore <a href="https://github.com/firebase/geofire">JavaScript</a> and <a
28+
href="https://github.com/firebase/geofire-ios">iOS</a>.
29+
</p>
30+
</body>
31+
</html>

0 commit comments

Comments
 (0)