Install on Hugo Docsy
Steps
Create layouts/partials/hooks/head-end.html in your Hugo project with the following content:
html
<meta name="do11y-url" content="SUPABASE_PROJECT_URL">
<meta name="do11y-key" content="SUPABASE_PUBLISHABLE_KEY">
<meta name="do11y-framework" content="docsy">
<script src="https://cdn.jsdelivr.net/npm/@manototh/do11y@latest/dist/do11y.min.js"></script>Replace SUPABASE_PROJECT_URL and SUPABASE_PUBLISHABLE_KEY with your Supabase credentials.
Advanced configuration
To use options beyond the basic credentials, add an inline config script before the main script in layouts/partials/hooks/head-end.html:
html
<script>
window.Do11yConfig = {
supabaseUrl: 'SUPABASE_PROJECT_URL',
supabaseKey: 'SUPABASE_PUBLISHABLE_KEY',
supabaseTable: 'do11y_events',
framework: 'docsy',
debug: false,
};
</script>
<script src="https://cdn.jsdelivr.net/npm/@manototh/do11y@latest/dist/do11y.min.js"></script>See the configuration reference for all available options.