Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { newLangController, newSearchController, newToCController } from './controllers';
import Alpine from 'jslibs/alpinejs/v3/alpinejs/dist/module.esm.js';
import Alpine from 'alpinejs';

// Register AlpineJS data controllers.
Alpine.data('searchController', newSearchController);
Expand Down
9 changes: 7 additions & 2 deletions exampleSite/go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
module github.com/bep/docuapi/exampleSite

go 1.16
go 1.26.0

require github.com/bep/docuapi/v2 v2.2.0 // indirect
require (
github.com/bep/docuapi/v2 v2.2.0 // indirect
github.com/gohugoio/hugo-mod-alpinejs/alpinejs/v3 v3.17.1000 // indirect
github.com/olivernn/lunr.js v2.3.9+incompatible // indirect
github.com/slatedocs/slate v2.13.1+incompatible // indirect
)

replace github.com/bep/docuapi/v2 => ../
11 changes: 3 additions & 8 deletions exampleSite/go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
github.com/bep/docuapi/v2 v2.0.4 h1:TU6CzjdfiWI+D/d911r8ZQG7R8h64ayEaC6iWNbJ/NQ=
github.com/bep/docuapi/v2 v2.0.4/go.mod h1:hoeibCSjXWJ/fLOwPSo8WZbgl5EO3zQjS/nrAs2v2Ro=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100 h1:yIymGxglvwr9Guhk7cr9VoMQ3IgLLJ0E4PKcKCg+kJY=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.500.100/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20200/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY=
github.com/gohugoio/hugo-mod-jslibs-dist/alpinejs/v3 v3.21000.20300/go.mod h1:WWQxcmPs5Xy3xDgi29ipkmZT6NKVb3bsqyCDTY3eYYY=
github.com/gohugoio/hugo-mod-alpinejs/alpinejs/v3 v3.17.1000 h1:4iEcbQeLcI3aLAJHPdnAEeD1hiZdVPvqTAtwVm8+eA0=
github.com/gohugoio/hugo-mod-alpinejs/alpinejs/v3 v3.17.1000/go.mod h1:xEqUm936UBbXJKrf8oueNjThBxtjvwjI8E6U118ntqI=
github.com/olivernn/lunr.js v2.3.9+incompatible h1:eH8iBnjlR4mwlYDdNuqy9PCNLjp2bEs6aoNnTSaccx0=
github.com/olivernn/lunr.js v2.3.9+incompatible/go.mod h1:yEkQ1DUSMtNsn8n2CqvQXZd0ErWPEG8g9QRmblR+KS8=
github.com/slatedocs/slate v2.9.2+incompatible h1:PnIMTR1S7pE6tImIjF6ny9UaRrt6fukM93lwUwJPtjw=
github.com/slatedocs/slate v2.9.2+incompatible/go.mod h1:n698aXLkExWIlF7prJey0Kq6wlKIKvj/stVb5oouZDM=
github.com/slatedocs/slate v2.13.1+incompatible h1:jjt8PlqJB0YYukqCs1xrkXabmsj3DwMVrVkpmFJuoH8=
github.com/slatedocs/slate v2.13.1+incompatible/go.mod h1:n698aXLkExWIlF7prJey0Kq6wlKIKvj/stVb5oouZDM=
6 changes: 3 additions & 3 deletions exampleSite/hugo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
languageCode = "en-us"
locale = "en-us"
baseurl = "https://docuapi.netlify.app/"
title = "DocuAPI Example Site"

Expand Down Expand Up @@ -51,7 +51,7 @@ defaultContentLanguage = "en"
[languages]

[languages.en]
languageName = "English"
label = "English"
weight = 2
title = "DocuAPI Example Site"
[languages.en.params]
Expand All @@ -63,7 +63,7 @@ defaultContentLanguage = "en"
]

[languages.nn]
languageName = "Nynorsk"
label = "Nynorsk"
weight = 1
title = "DocuAPI-døme"

Expand Down
Loading