align templates with UI model
authorDan Allen <dan@opendevise.com>
Mon, 1 Jan 2018 02:55:27 +0000 (19:55 -0700)
committerDan Allen <dan@opendevise.com>
Tue, 2 Jan 2018 10:49:46 +0000 (03:49 -0700)
commit4d1ac95d600bcc2892345ee63b36a1a913098379
treef4709a3866e6c3b5288b6f518f3f0f04c5ce62c3
parent23b1cdc40213439676832562738e5843e7451575
align templates with UI model

- align templates with Antora's UI model
- add relativize helper to relativize a root relative URL to the current page
- add detag helper to strip HTML tags from content
- detag page title in HTML title element
- replace the term "domain" with "component"
- rename navigation-component to navigation-menu
- update navigation JavaScript to activate path to current page in navigation tree
- update build preview task to assign correct properties on model
- update sample UI model
- remove page-versions and has-versions helpers
- compare selected/latest/current using equality instead of checking boolean property
24 files changed:
preview-site-src/ui-model.yml
src/css/navigation-domain.css [deleted file]
src/css/navigation-explore.css
src/css/navigation-menu.css [new file with mode: 0644]
src/css/site.css
src/helpers/detag.js [new file with mode: 0644]
src/helpers/has-versions.js [deleted file]
src/helpers/page-versions.js [deleted file]
src/helpers/relativize.js [new file with mode: 0644]
src/js/01-navigation.js
src/layouts/404.hbs
src/layouts/default.hbs
src/partials/article.hbs
src/partials/breadcrumbs.hbs
src/partials/footer-scripts.hbs
src/partials/header-content.hbs
src/partials/navigation-domain.hbs [deleted file]
src/partials/navigation-explore.hbs
src/partials/navigation-menu.hbs [new file with mode: 0644]
src/partials/navigation-tree.hbs
src/partials/navigation.hbs
src/partials/page-versions.hbs
src/partials/toolbar.hbs
tasks/build-preview.js