kimar / SplashPublishPlugin

A Splash plugin for the Publish static site generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Splash plugin for Publish

A Publish plugin that makes it easy to integrate the Splash Swift syntax highlighter into any Publish website.

Installation

To install it into your Publish package, add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        ...
        .package(url: "https://github.com/johnsundell/splashpublishplugin", from: "0.1.0")
    ],
    targets: [
        .target(
            ...
            dependencies: [
                ...
                "SplashPublishPlugin"
            ]
        )
    ]
    ...
)

Then import SplashPublishPlugin wherever you’d like to use it:

import SplashPublishPlugin

For more information on how to use the Swift Package Manager, check out this article, or its official documentation.

Usage

The plugin can then be used within any publishing pipeline like this:

import SplashPublishPlugin
...
try DeliciousRecipes().publish(using: [
    .installPlugin(.splash(withClassPrefix: "classPrefix"))
    ...
])

About

A Splash plugin for the Publish static site generator

License:MIT License


Languages

Language:Swift 100.0%