-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make the docs website work as a statically generated website
- Loading branch information
Showing
12 changed files
with
67 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
MEILISEARCH_HOST=https://meilisearch.archway.tech | ||
MEILISEARCH_INDEX=dev_ARCHWAY_DOCS #prod_ARCHWAY_DOCS | ||
MEILISEARCH_SEARCH_API_KEY= | ||
MEILISEARCH_WRITE_API_KEY= | ||
MEILISEARCH_INDEX=dev_ARCHWAY_DOCS #prod_ARCHWAY_DOCS | ||
MEILISEARCH_HOST=https://meilisearch.archway.tech |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
<script setup lang="ts"> | ||
import { onMounted } from 'vue'; | ||
import { Link } from '@/components/Ui'; | ||
const { prev, next } = useContent(); | ||
</script> | ||
<template> | ||
<nav class="flex gap-4 mt-12"> | ||
<Link class="rounded-2xl grow shrink basis-0 p-6 no-underline bg-gray-1100 dark:bg-black-100" v-if="prev" :href="prev._path" | ||
><p class="my-0.5 font-medium">Previous</p> | ||
<p class="my-0.5 font-bold">{{ prev.title }}</p></Link | ||
> | ||
<Link class="rounded-2xl grow shrink basis-0 p-6 no-underline bg-gray-1100 dark:bg-black-100" v-if="next" :href="next._path" | ||
><p class="my-0.5 font-medium">Next</p> | ||
<p class="my-0.5 font-bold">{{ next.title }}</p></Link | ||
> | ||
<nav class="flex justify-between gap-4 mt-12"> | ||
<Link class="w-1/2 flex flex-col space-y-1 rounded-2xl p-6 no-underline bg-gray-1100 dark:bg-black-100" :href="prev._path" v-if="prev"> | ||
<span class="font-medium">Previous</span> | ||
<span class="font-bold">{{ prev.title }}</span> | ||
</Link> | ||
<Link class="w-1/2 flex flex-col space-y-1 rounded-2xl p-6 no-underline bg-gray-1100 dark:bg-black-100" :href="next._path" v-if="next"> | ||
<span class="font-medium">Next</span> | ||
<span class="font-bold">{{ next.title }}</span> | ||
</Link> | ||
</nav> | ||
</template> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const redirects: Record<string, string> = { | ||
'/overview': '/overview/about', | ||
'/resources': '/resources/networks', | ||
'/validators/running-a-node': '/validators/running-a-node/prerequisites', | ||
'/validators/requirements': '/validators/becoming-a-validator/requirements', | ||
'/community/wallet-setup/keplr-setup': '/community/wallet-setup/keplr/keplr-setup', | ||
}; | ||
|
||
export default defineNuxtRouteMiddleware(to => { | ||
if (Object.keys(redirects).includes(to.path)) { | ||
return navigateTo(redirects[to.path]); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.