Skip to content

Commit e7e081a

Browse files
committed
Generate API documentation with Doxygen
1 parent ce1bd9e commit e7e081a

File tree

6 files changed

+67
-0
lines changed

6 files changed

+67
-0
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
sudo: required
2+
dist: trusty
3+
before_install:
4+
- sudo apt-get install -y zeroinstall-injector
5+
script:
6+
- doc/build.sh
7+
deploy:
8+
provider: pages
9+
skip-cleanup: true
10+
local-dir: target/Documentation
11+
github-token: $GITHUB_TOKEN
12+
on:
13+
tags: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# TypedRest for Java
22

3+
[![API documentation](https://img.shields.io/badge/api-docs-orange.svg)](https://typedrest.github.io/TypedRest-Java/)
34
[![Build status](https://img.shields.io/appveyor/ci/TypedRest/typedrest-java.svg)](https://ci.appveyor.com/project/TypedRest/typedrest-java)
45

56
TypedRest helps you build type-safe fluent-style REST API clients.

doc/Doxyfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
PROJECT_NAME = "TypedRest for Java"
2+
3+
INPUT = . ../annotations ../core ../vaadin
4+
USE_MDFILE_AS_MAINPAGE = main.md
5+
STRIP_FROM_PATH = ../src
6+
RECURSIVE = YES
7+
8+
OUTPUT_DIRECTORY = ../target/Documentation
9+
GENERATE_TAGFILE = ../target/Documentation/typedrest-java.tag
10+
HTML_OUTPUT = .
11+
12+
GENERATE_LATEX = NO
13+
CASE_SENSE_NAMES = NO
14+
15+
OPTIMIZE_OUTPUT_JAVA = YES
16+
EXTRACT_PACKAGE = YES
17+
EXTRACT_STATIC = YES
18+
AUTOLINK_SUPPORT = NO
19+
WARN_IF_UNDOCUMENTED = NO
20+
QUIET = YES

doc/build.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$ErrorActionPreference = "Stop"
2+
pushd $(Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
3+
4+
# Ensure 0install is in the PATH
5+
if (!(Get-Command 0install -ErrorAction SilentlyContinue)) {
6+
mkdir -Force "$env:TEMP\zero-install" | Out-Null
7+
Invoke-WebRequest "https://0install.de/files/0install.exe" -OutFile "$env:TEMP\zero-install\0install.exe"
8+
$env:PATH = "$env:TEMP\zero-install;$env:PATH"
9+
}
10+
11+
if (Test-Path ..\target\Documentation) {rm -Recurse -Force ..\artifacts\Documentation}
12+
mkdir ..\target\Documentation | Out-Null
13+
14+
0install run --batch http://repo.roscidus.com/devel/doxygen
15+
16+
popd

doc/build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
cd `dirname $0`
4+
5+
rm -rf ../target/Documentation
6+
mkdir -p ../target/Documentation
7+
8+
0install run http://repo.roscidus.com/devel/doxygen

doc/main.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# TypedRest for Java
2+
3+
TypedRest helps you build type-safe fluent-style REST API clients.
4+
5+
This website documents the TypedRest Java API.
6+
7+
## Building and contributing
8+
9+
See the **[GitHub project](https://github.com/TypedRest/TypedRest-Java)** for more information.

0 commit comments

Comments
 (0)