diff --git a/README.md b/README.md index cbf4383..d75ef3f 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,10 @@
-Collection of essential Leptos utilities inspired by SolidJS-USE / VueUse
diff --git a/docs/book/book.toml b/docs/book/book.toml index 296d614..2b03d2b 100644 --- a/docs/book/book.toml +++ b/docs/book/book.toml @@ -8,5 +8,7 @@ title = "Leptos-Use Documentation" [output.html] no-section-label = true additional-css = ["src/custom.css", "src/demo.css"] +preferred-dark-theme = "coal" +git-repository-url = "https://github.com/synphonyte/leptos-use" [preprocessor.cmdrun] \ No newline at end of file diff --git a/docs/book/src/custom.css b/docs/book/src/custom.css index e3844ec..07af405 100644 --- a/docs/book/src/custom.css +++ b/docs/book/src/custom.css @@ -28,9 +28,50 @@ pre > code { grid-template-columns: 70px auto; gap: 2rem; align-items: flex-start; - margin: 2rem 0 4rem; + margin: 2rem 0 4rem; } .meta-data > div:first-child { opacity: 0.5; } + +.sidebar .sidebar-scrollbox { + padding: 10px 10px 10px 20px ; +} + +.chapter li.chapter-item { + margin: 0; +} + +.chapter li.part-title { + margin-top: 20px; +} + +li.chapter-item a { + padding: 0.1em 1em; + margin: 0.4em 0 0; +} + +li.chapter-item::before { + content: " "; + border-left: 1px solid var(--fg); + opacity: 0.1; +} + +li.chapter-item a.active { + border-left: 1px solid currentColor; + font-weight: 600; + margin-left: -1px; +} + +li.part-title + li.chapter-item a { + margin-top: 0; +} + +li.chapter-item.affix::before { + content: none; +} + +li.chapter-item.affix a { + padding-left: 0; +} \ No newline at end of file diff --git a/docs/book/theme/favicon.png b/docs/book/theme/favicon.png new file mode 100644 index 0000000..fb07817 Binary files /dev/null and b/docs/book/theme/favicon.png differ diff --git a/docs/book/theme/favicon.svg b/docs/book/theme/favicon.svg new file mode 100644 index 0000000..09f8e86 --- /dev/null +++ b/docs/book/theme/favicon.svg @@ -0,0 +1,27 @@ + + \ No newline at end of file diff --git a/docs/book/theme/header.hbs b/docs/book/theme/header.hbs new file mode 100644 index 0000000..5c058aa --- /dev/null +++ b/docs/book/theme/header.hbs @@ -0,0 +1,76 @@ +