Examples for building published websites — navigation, SEO, redirects, forms and caching.
Making your own custom display templates for Docly schemas. This is example shows how you make the "Documentation" schema display in your…
Example on how to show current navigation path for a page.
Example of how to create a Bootstrap navbar with an active class based on the current page URL (hash/filepath). Useful for highlighting the…
This search function searches all the documents in a published folder and sub folders. ATM only filenames are searched.
Docly automatically reroutes any reference going to / over to the site folder.
Get higher ranked with fewer and smaller JS and CSS files. In other words, this means that you should always bundle all JS and CSS files to…
The redirect command - and how to make a redirect site.
This example generates a dynamic sitemap.xml file
Examples on how to get current folder, url, site name, edit links, page title and more.
This function implements caching for an API endpoint by checking the 'If-Modified-Since' header and returning a 304 status if the content…
How to link files and images from #JS template code. Always go through docly.linkImage / docly.linkFile — including for a file that lives…
Use this documentation to setup page templates that submit forms by e-mail and add custom backend validation such as Google reCAPTCHA.