Skip to content

Commit

Permalink
Merge pull request #292 from Tresjs/docs/fathom-analyticis
Browse files Browse the repository at this point in the history
docs: add fathom analytics
  • Loading branch information
JaimeTorrealba authored Nov 27, 2023
2 parents 712f940 + e55d011 commit 50858ab
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
26 changes: 24 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { defineConfig } from 'vitepress'
import { resolve } from 'pathe'
import { templateCompilerOptions } from '@tresjs/core'

const whitelist = [
'TresCanvas',
Expand All @@ -12,7 +11,30 @@ const whitelist = [
export default defineConfig({
title: 'Cientos',
description: 'Collection of useful helpers and fully functional, ready-made abstractions for TresJS',
head: [['link', { rel: 'icon', type: 'image/svg', href: '/favicon.svg' }]],
head: [
['link', { rel: 'icon', type: 'image/svg', href: '/favicon.svg' }],
['meta', { name: 'theme-color', content: '#82DBC5' }],
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
['meta', { name: 'twitter:site', content: '@tresjs_dev' }],
['meta', { name: 'twitter:creator', content: '@tresjs_dev' }],
['meta', { property: 'og:type', content: 'website' }],
['meta', { property: 'og:site_name', content: 'Cientos - TresJS' }],
[
'meta',
{
property: 'og:image',
content: 'https://repository-images.githubusercontent.com/571314349/10996566-7f70-473b-a8e5-4e56fc0ca850',
},
],
[
'meta',
{
property: 'twitter:image',
content: 'https://repository-images.githubusercontent.com/571314349/10996566-7f70-473b-a8e5-4e56fc0ca850',
},
],
['script', { defer: 'true', 'data-site': 'OWBUVCJK', src: 'https://cdn.usefathom.com/script.js' }],
],
themeConfig: {
logo: '/logo.svg',
search: {
Expand Down
3 changes: 3 additions & 0 deletions docs/.vitepress/theme/components/DocsDemo.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<script setup lang="ts">
import { useRouter } from 'vitepress'
const router = useRouter()
</script>

<template>
Expand Down

0 comments on commit 50858ab

Please sign in to comment.