Skip to content

Latest commit

 

History

History

README.md

Alpaca Java Client Docs

Build Maven Central Java 17+ License

Local documentation site for alpaca-java.

The narrative wiki is authored in content/. The generated Java API reference is produced by Gradle Javadocs and copied into static/javadocs/ for local preview.

Consume the artifact

Published releases are available from Maven Central:

repositories {
    mavenCentral()
}

dependencies {
    implementation("markets.alpaca:alpaca-java:VERSION")
}
<dependency>
  <groupId>markets.alpaca</groupId>
  <artifactId>alpaca-java</artifactId>
  <version>VERSION</version>
</dependency>

Replace VERSION with a released version. For development snapshots, add the scoped Sonatype Central Snapshots repository. See the Getting Started guide for complete instructions.

Local setup

cd docs
npm install
npm run start

Open the local URL printed by Docusaurus.

Include Javadocs

cd docs
npm run sync:javadocs
npm run start

sync:javadocs runs ../gradlew generateJavadocs and copies ../build/docs/javadoc into static/javadocs/. The copied files are generated local artifacts and are ignored by git.

Production build preview

cd docs
npm run build
npm run serve

GitHub Pages deployment

The repository deploys this Docusaurus site with .github/workflows/deploy-docs.yml. The workflow uses actions/configure-pages to detect the actual GitHub Pages URL (handling custom domains automatically) and enables GitHub Actions as the Pages source if not already set. It then builds the site with the detected values:

# equivalent to what CI does (adjust if a custom domain is configured)
DOCUSAURUS_URL=https://alpacahq.github.io DOCUSAURUS_BASE_URL=/alpaca-java/ npm run build