-
Notifications
You must be signed in to change notification settings - Fork 178
Generate API Docs locally
Follow the steps below to generate API Docs locally.
Note: The instructions below are tested for Swan Lake Beta.
-
Do your change(s) in the repositories below.
-
Standard library modules: In the
master
branch of the respective repository of the module (e.g.,module-ballerina-time
for thetime
module) -
Lang library modules: In the
master
branch of theballerina-lang
repository
-
Standard library modules: In the
-
Build the module repo or the
ballerina-lang
repo by executing the command below../gradlew clean build publishToMavenLocal -x test -x check --no-build-cache
-
Change the appended timestamp to
SNAPSHOT
in thegradle.properties
file inballerina-distribution
repo.E.g., If you changed the
time
module, change the below.stdlibTimeVersion=2.0.0-beta.1-20210528-223700-397e4d0
tostdlibTimeVersion=2.0.0-beta.1-SNAPSHOT
Note: Make sure the version in the module’s
gradle.properties
file matches the entry you make in thegradle.properties
file of theballerina-distribution
repo. Both should be the same. -
Build the
ballerina-distribution
repo by executing the command below../gradlew clean build -x test -x check
Note: If you are building the
<ballerina-distribution>
repo for the first time, execute the commands below.export packageUser=<Your github username>
export packagePAT=<Your personal access token>
-
Extract the pack built in the
<ballerina-distribution>/ballerina/build/distributions
directory. -
Double click on the
/docs/index.html
file, and verify your fixes in the simulated view of the API Docs in Central. -
Send the PR to the repos below, and get it merged.
-
Standard library modules: Respective module repo (e.g.,
module-ballerina-time
) -
Language library modules:
ballerina-lang
repo
-
Standard library modules: Respective module repo (e.g.,