Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add create:docs command #1351

@h-enk

Description

@h-enk

Summary

Brief explanation of the feature.

{
  "name": "doks-1349",
  "version": "0.0.0",
  "description": "Doks theme",
  "author": "Thulite",
  "license": "MIT",
  "scripts": {
    "create": "hugo new",
    "create:docs": "hugo new --kind docs",
    "dev": "hugo server --disableFastRender --noHTTPCache",
    "format": "prettier **/** -w -c",
    "build": "hugo --minify --gc",
    "preview": "vite preview --outDir public"
  },
  // ...existing code...
}

Basic example

Include a basic example or links here.

With this change, you can run:

npm run create:docs course_1

Motivation

Why are we doing this? What use cases does it support? What is the expected outcome?

npm's -- separator doesn't properly pass the --kind flag to the Hugo command (pnpm, yarn, and bun do)

#1349 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions