- Node 8.x.x or higher.
git clone https://github.com/rakhimundhada15/eleventy-ux-tool-doc.git eleventy-ux-tool
cd eleventy-ux-tool
Specifically have a look at .eleventy.js
to see if you want to configure any Eleventy options differently.
npm install
npx eleventy
Or build and host locally for local development
npx eleventy --serve
Or build automatically when a template changes:
npx eleventy --watch
Or in debug mode:
DEBUG=* npx eleventy
-
This example uses three layouts:
_includes/layouts/layout.njk
: the topbar and side left panel HTML structure_includes/layouts/usage-layout.njk
: the usage page template having top search and tab panel (wrapped intolayout.njk
)
-
Content can be any template format. Configure your supported templates in
.eleventy.js
->templateFormats
.- Because
css
andpng
are listed intemplateFormats
but are not supported template types, any files with these extensions will be copied without modification to the output (while keeping the same directory structure).
- Because
-
JS
,css
andimages
folder should added underassests
folder which get directly copied in build folder. -
_data/usage.json
: Theusage-sample.md
template andusage-layout.njk
are good example of using a global data files in that it uses _data/usage.json. -
doc/
: Add all template inside this and add tags in template or json file to add this in collections.