apple / pkl-lang.org

The pkl-lang.org website

Home Page:https://pkl-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The pkl-lang.org website

https://pkl-lang.org

License:Apache License 2.0


Languages

Language:JavaScript 34.1%Language:TypeScript 17.9%Language:CSS 15.3%Language:Handlebars 12.3%Language:Scheme 11.3%Language:Rust 9.0%Language:HTML 0.1%