/pkl-lang.org

The pkl-lang.org website

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Pkl Documentation Website pkl-lang.org

Repo for Pkl’s documentation website.

The website is built with the Antora docsite generator out of Asciidoc docs maintained in upstream projects (pkl, pkl-spring, etc.).

Development

Releases

Releases of the website are triggered off commits to the main branch.

Install dependencies

$ ./gradlew downloadPklHtmlHighlighter npmInstall

Build Docs of Local Projects

  • Takes upstream project docs from local Git repos assumed to be siblings of this repo (see site-local.yml).

  • Builds the site (click the link printed in console output to open in browser).

This allows to preview local doc changes made to upstream projects.

$ ./gradlew buildLocalSite   # shorthand: gw bLS

Validate Docs of Local Projects

  • Validates HTML

  • Checks for dangling links

$ ./gradlew validateLocalSite   # shorthand: gw vLS

Build Docs of Remote Projects

  • Fetches upstream project docs from their GitHub repos (see site-remote.yml).

  • Builds the site (click the link printed in console output to open in browser).

This is what CI runs.

$ ./gradlew buildRemoteSite   # shorthand: gw bRS

To run this task locally, you must have token-based access for GitHub.com setup,

Validate Docs of Remote Projects

  • Validates HTML

  • Checks for dangling links

$ ./gradlew validateRemoteSite   # shorthand: gw vRS