PublishDsl

open class PublishDsl

DSL for pages-publishing configuration.

Configured via stigProject { publish { ... } } in root build.gradle.kts. Controls where stigPublishHtml publishes the rendered Dokka HTML site while reducing the Pages branch to one parentless commit.

Example:

stigProject {
    publish {
        remote = "origin"
        pagesBranch = "github_pages"
        pagesSubdir = "stig-project"
        publishedBaseUrl = "https://pages.example.com/my-project"
    }
}

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Branch replaced with one complete parentless GitHub Pages commit (e.g. "github_pages" or "gh-pages").

Link copied to clipboard

Subdirectory within the pages branch for this project's docs.

Link copied to clipboard

Pages deployment layout. GitLab CI serves the exported subtree at the artifact root.

Link copied to clipboard

Configured default for replacing the owned Pages subtree before publication.

Link copied to clipboard

Configured default for pruning all snapshots before publication.

Link copied to clipboard

Report version shown by Dokka; defaults lazily to rootProject.version.

Link copied to clipboard

Public base URL of the published site (for link logging).

Link copied to clipboard

Whether to actually push to the remote (set false for local dry-run).

Link copied to clipboard

Git remote name (e.g. "origin").

Link copied to clipboard

Configured default for deliberately replacing the same named release.