Skip to content

Commit

Permalink
Add Cloud docset proxy to nav
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Jan 14, 2025
1 parent a562e49 commit f6ae7b4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/.vuepress/theme/components/DocSetPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@

<span>{{ set.setTitle ? set.setTitle : set.title }}</span>
</RouterLink>

<!-- Special handling for external Cloud docs! -->
<a class="doc-set" href="https://craftcms.com/knowledge-base/cloud" target="_blank">
<span class="mr-2 inline-block relative set-icon">
<img src="/docs/icons/icon-cloud.svg" width="16" height="16" alt="Craft Cloud" />
</span>

<span>Craft Cloud</span>
</a>
</div>
<div v-if="$activeSet" class="doc-set-current">
<RouterLink :to="defaultUri($activeSet)" class="flex items-center">
Expand All @@ -38,6 +47,7 @@
<select name class="doc-set-version" @change="handleVersionSelect($event)">
<option
v-for="version in $activeSet.versions"
:key="version[0]"
:value="version[0]"
:selected="version[0] == $activeVersion"
>{{ version[0] }}</option>
Expand Down Expand Up @@ -177,4 +187,4 @@ export default {
},
},
};
</script>
</script>

0 comments on commit f6ae7b4

Please sign in to comment.