Skip to content

Commit

Permalink
refactor(docs): 馃Ч Code maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
oyedejioyewole committed Feb 11, 2024
1 parent 006e614 commit 5221e3e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 25 deletions.
5 changes: 5 additions & 0 deletions docs/app.vue
Expand Up @@ -5,6 +5,11 @@ useHead({
},
titleTemplate: "%s 路 nuxt-bootstrap-icons",
});
onMounted(async () => {
const locomotive = await import("locomotive-scroll");
new locomotive.default();
});
</script>

<template>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Footer.client.vue
Expand Up @@ -32,7 +32,7 @@ const toggleTheme = () => {
<li>
<NuxtLink
target="_blank"
to="https://github.com/OyewoleOyedeji/nuxt-bootstrap-icons"
to="https://github.com/oyedejioyewole/nuxt-bootstrap-icons"
>
<BootstrapIcon name="github" />
</NuxtLink>
Expand Down
8 changes: 5 additions & 3 deletions docs/components/content/ProsePre.vue
Expand Up @@ -35,9 +35,11 @@ defineProps({
</script>

<style lang="scss">
pre code {
.line {
@apply block;
pre {
code {
.line {
@apply block;
}
}
}
</style>
4 changes: 2 additions & 2 deletions docs/content/index.md
@@ -1,5 +1,5 @@
---
description: A simple wrapper for Bootstrap Icons in Nuxt
description: An integration for bootstrap-icons in Nuxt
---

# Documentation
Expand All @@ -26,7 +26,7 @@ Follow the following steps to start using this module:
});
```

Congratulations 馃帀, you can now use any icon from Bootstrap Icons in your Nuxt project!
Congratulations 馃帀, you can now use any icon from `bootstrap-icons` in your Nuxt project!

Browse the available of icons [here](https://icons.getbootstrap.com/).

Expand Down
8 changes: 6 additions & 2 deletions docs/content/release-notes.md
@@ -1,3 +1,7 @@
---
description: Don't miss out on improvements and new features
---

# Release Notes

## v1.1.7
Expand Down Expand Up @@ -140,7 +144,7 @@

### 馃殌 Enhancements

- 鈿狅笍 Moved options key to root of nuxt.config ([27e1035](https://github.com/OyewoleOyedeji/nuxt-bootstrap-icons/commit/27e1035))
- 鈿狅笍 Moved options key to root of nuxt.config ([27e1035](https://github.com/OyewoleOyedeji/nuxt-bootstrap-icons/commit/27e1035))

### 馃拝 Refactors

Expand All @@ -152,7 +156,7 @@

#### 鈿狅笍 Breaking Changes

- 鈿狅笍 Moved options key to root of nuxt.config ([27e1035](https://github.com/OyewoleOyedeji/nuxt-bootstrap-icons/commit/27e1035))
- 鈿狅笍 Moved options key to root of nuxt.config ([27e1035](https://github.com/OyewoleOyedeji/nuxt-bootstrap-icons/commit/27e1035))

### 鉂わ笍 Contributors

Expand Down
11 changes: 2 additions & 9 deletions docs/pages/index.vue
Expand Up @@ -5,20 +5,13 @@ import "notivue/notifications.css";
type ColorTheme = "dark" | "light";
defineOgImageComponent("Page", {
description: "An integration for bootstrap-icons in Nuxt",
});
defineOgImageComponent("Page");
const colorTheme = useColorMode();
const shades = getColorShades("primary");
const theme = ref<NotivueTheme>();
onMounted(async () => {
const locomotive = await import("locomotive-scroll");
new locomotive.default();
useToggleNotivueTheme(colorTheme.value as ColorTheme);
});
onMounted(() => useToggleNotivueTheme(colorTheme.value as ColorTheme));
watch(colorTheme, (_new) => useToggleNotivueTheme(_new.value as ColorTheme));
Expand Down
9 changes: 1 addition & 8 deletions docs/pages/release-notes.vue
@@ -1,12 +1,5 @@
<script lang="ts" setup>
defineOgImageComponent("Page", {
description: "Don't miss out on improvements and new features",
});
onMounted(async () => {
const locomotive = await import("locomotive-scroll");
new locomotive.default();
});
defineOgImageComponent("Page");
</script>

<template>
Expand Down

0 comments on commit 5221e3e

Please sign in to comment.