Clone this repository/branch aside of the camunda-docs-manual
:
# from the camunda-docs-manual directory
cd ..
git clone git@github.com:camunda/camunda-docs-theme.git
# go into its directory
cd camunda-docs-theme
npm i
npm run build
Note: you can clone this repository anywhere,
but you may then change the setup.target
value of package.json
.
After installing (you probably want to have hugo running as watching server)
and then run npm run build
from this directory.
- Edit the
setup.target
value ofpackage.json
to point to the theme's root directory in your Hugo project (default:../camunda-docs-manual/themes/camunda
). - Build and update the theme in the target location by either running:
grunt build
for building and syncing non-minified assets- Run additionally
grunt optimize
for building and syncing minified assets
You can also consume the theme in a project via git subtree:
Adding the latest version of the theme as camunda
:
git subtree add -P themes/camunda git@github.com:camunda/camunda-docs-theme.git dist --squash
Updating the theme to the latest version:
git subtree pull -P themes/camunda git@github.com:camunda/camunda-docs-theme.git dist --squash
This would be the command to execute in order to make the local development site
of camunda-docs-manual
(see --baseUrl
option) available in a virtualbox (typically for IE).
Livereload should be deactivate (see --disableLiveReload
) if you want to develop for IE9.
hugo --bind="0.0.0.0" --baseUrl="http://10.0.2.2:1313/manual/develop/" -w --disableLiveReload=true server
The development site is then available on http://10.0.2.2:1313/manual/develop/
in your virtualbox
guest OS.