Doks 1.6

May 16, 2024 by Henk Verlinde Henk Verlinde2 minutes

Doks 1.6

Doks 1.6 is out! This release includes a new Hugo requirement, an improved scripts setup, new development tools, and more.

To upgrade an existing project, see the Upgrade Doks guide.

Highlights

New Hugo requirement

Doks 1.6 now requires you to have the latest Hugo extended version installed globally on your system. See Hugo’s documentation for installation instructions.

Improved scripts setup

Doks 1.6 introduces a cleaner scripts section in your projects’ package.json:

{
  "name": "doks",
  "version": "0.0.0",
  "description": "Doks theme",
  "author": "Thulite",
  "license": "MIT",
  "scripts": {
    "create": "hugo new",
    "dev": "hugo server --disableFastRender --noHTTPCache",
    "format": "prettier **/** -w -c",
    "build": "hugo --minify --gc",
    "preview": "vite preview --outDir public"
  },
  "dependencies": {
    "@thulite/doks-core": "^1.6.1",
    "@thulite/images": "^3.2.0",
    "@thulite/inline-svg": "^1.1.0",
    "@thulite/seo": "^2.3.0",
    "@tabler/icons": "^3.2.0",
    "gethyas": "^2.4.2"
  },
  "devDependencies": {
    "prettier": "^3.2.5",
    "vite": "^5.2.10"
  },
  "engines": {
    "node": ">=20.11.0"
  }
}

New development tools

Thulite/Doks now uses Prettier as a code formatter and Vite to preview your project’s build. You can configure Prettier in the .prettierrc.yaml and .prettierignore files in the root of your project. With Vite, when you use the --host flag, you can preview the build on your local network — for example on your mobile phone — here’s how:

Bug Fixes

Doks 1.6 also includes several bug fixes. Check out the release notes to learn more.