From 323b424698e9f2bbef249c46bb378dc86c5bff92 Mon Sep 17 00:00:00 2001 From: razonyang Date: Tue, 2 Apr 2024 19:41:34 +0800 Subject: [PATCH] feat: add the sticky-till-the-end module --- .../assets/hb/modules/docs-sticky-till-the-end/js/index.ts | 3 +++ modules/sticky-till-the-end/go.mod | 3 +++ modules/sticky-till-the-end/hugo.toml | 5 +++++ 3 files changed, 11 insertions(+) create mode 100644 modules/sticky-till-the-end/assets/hb/modules/docs-sticky-till-the-end/js/index.ts create mode 100644 modules/sticky-till-the-end/go.mod create mode 100644 modules/sticky-till-the-end/hugo.toml diff --git a/modules/sticky-till-the-end/assets/hb/modules/docs-sticky-till-the-end/js/index.ts b/modules/sticky-till-the-end/assets/hb/modules/docs-sticky-till-the-end/js/index.ts new file mode 100644 index 00000000..0aed094d --- /dev/null +++ b/modules/sticky-till-the-end/assets/hb/modules/docs-sticky-till-the-end/js/index.ts @@ -0,0 +1,3 @@ +import { attachOn } from '../../footer-observer/js/handler'; + +attachOn ('.hb-docs-nav', '.hb-docs-doc-toc') diff --git a/modules/sticky-till-the-end/go.mod b/modules/sticky-till-the-end/go.mod new file mode 100644 index 00000000..cf163ed5 --- /dev/null +++ b/modules/sticky-till-the-end/go.mod @@ -0,0 +1,3 @@ +module github.com/hbstack/docs/modules/sticky-till-the-end + +go 1.19 diff --git a/modules/sticky-till-the-end/hugo.toml b/modules/sticky-till-the-end/hugo.toml new file mode 100644 index 00000000..12518983 --- /dev/null +++ b/modules/sticky-till-the-end/hugo.toml @@ -0,0 +1,5 @@ +[[module.imports]] +path = "github.com/hbstack/footer/modules/observer" + +[[module.imports]] +path = "github.com/hbstack/docs"