First make sure to have nodejs installed
sudo dnf install nodejs
sudo apt-get install nodejs nodejs-legacy npm # debian
sudo pacman -S nodejs npm # arch
mkdir build; meson build && ninja -C build
Note that the build has been thought to be used as a meson
subproject. You can easily reuse it setting up your own
less variables (in a file called theme/less
for example) as
follow:
theme = subproject('hotdoc_bootstrap_theme',
default_options: ['less_include_path=' +
join_paths(meson.current_source_dir(), 'theme/less')]
)
And then you can setup your theme in the meson build file as follow:
hotdoc.generate_doc('some-doc-name',
...
html_theme: theme.get_variable('theme_dir'),
dependencies: hotdoc_subprojects + [theme.get_variable('theme_dep')],
...
)
Install the dependencies:
npm install && ./node_modules/bower/bin/bower install
Build the theme:
make
make check