Local Development

Local Development #

(anyone)

To build locally, you will need to first install Hugo.

  • Note, you need the extended version

When cloning the repository you need to clone it recursively so that the theme submodule gets included:

git clone --recursive https://github.com/minetest/dev.luanti.org

If you have already cloned you can fetch the submodules as such:

git submodule init
git submodule update --remote

To launch the Hugo development server run hugo server. It will watch and regenerate whenever changes are made.

To generate the site once without starting the server you can simply run hugo.

Some additional checks are run in Node:

npm install
npm test

You can disable the spell checker without triggering build warnings using Hugo’s comment syntax:

This text is spell-checked.

{{/* cspell:disable */}}

The text is not splel-checked ;)

{{/* cspell:enable */}}

Finally, this text is spell-checked again.