function generateDoctypeCommand
generateDoctypeCommand(options?: InjectDoctypeOptions): string

Generates a shell command string for DOCTYPE injection

Use this if you want to register the command as a script rather than an event listener.

Examples

Example 1

import { generateDoctypeCommand } from "hibana/scripts/inject_doctype.ts";

site.script("injectDoctype", generateDoctypeCommand());
site.addEventListener("afterBuild", "injectDoctype");

Parameters

optional
options: InjectDoctypeOptions

Configuration options

Return Type

string

Shell command string

Usage

import { generateDoctypeCommand } from ".";