Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const env = loadEnv('', process.cwd());
// https://vitepress.dev/reference/site-config
export default withMermaid(
defineConfig({
title: 'PoCo Documentation',
title: 'iExec Documentation',
titleTemplate: ':title | PoCo Documentation',
description:
'Build decentralized applications that combine ownership, privacy, and monetization.',
cleanUrls: true,
Expand Down Expand Up @@ -152,6 +153,8 @@ export default withMermaid(
text: 'Suggest changes to this page',
},

siteTitle: false,

logo: {
light: '/Logo-RLC-Yellow.png',
dark: '/Logo-RLC-Yellow.png',
Expand Down
19 changes: 19 additions & 0 deletions .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
<script setup>
import DefaultTheme from 'vitepress/theme';
import { useRoute } from 'vitepress';
import { computed } from 'vue';
import AskIaButton from '@/components/AskIaButton.vue';

const { Layout } = DefaultTheme;
const route = useRoute();

const siteTitle = computed(() =>
route.path === '/' ? 'iExec Documentation' : 'PoCo Documentation'
);
</script>

<template>
<Layout>
<template #nav-bar-title-after>
<span class="custom-site-title">{{ siteTitle }}</span>
</template>
<template #aside-outline-before>
<AskIaButton />
</template>
</Layout>
</template>

<style scoped>
.custom-site-title {
font-size: 16px;
font-weight: 600;
color: var(--vp-c-text-1);
white-space: nowrap;
}
</style>
1 change: 1 addition & 0 deletions src/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: home
titleTemplate: iExec Documentation
---

<script setup>
Expand Down
Loading