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.
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.
cd docs
npm install
npm run startOpen the local URL printed by Docusaurus.
cd docs
npm run sync:javadocs
npm run startsync:javadocs runs ../gradlew generateJavadocs and copies ../build/docs/javadoc into
static/javadocs/. The copied files are generated local artifacts and are ignored by git.
cd docs
npm run build
npm run serveThe 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