Skip to content
Draft
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
2 changes: 2 additions & 0 deletions .vuepress/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { defineClientConfig } from 'vuepress/client';
import AsciinemaPlayer from './components/AsciinemaPlayer.vue';
import BlogPosts from './components/BlogPosts.vue';
import ExperimentalOption from './components/ExperimentalOption.vue';
import JumpToc from './components/JumpToc.vue';
import PrBy from './components/PrBy.vue';
import ReleaseToc from './components/ReleaseToc.vue';
Expand All @@ -15,6 +16,7 @@ export default defineClientConfig({
enhance({ app }) {
app.component('AsciinemaPlayer', AsciinemaPlayer);
app.component('BlogPosts', BlogPosts);
app.component('ExperimentalOption', ExperimentalOption);
app.component('JumpToc', JumpToc);
app.component('PrBy', PrBy);
app.component('ReleaseToc', ReleaseToc);
Expand Down
27 changes: 27 additions & 0 deletions .vuepress/components/ExperimentalOption.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<template>
<div class="hint-container important">
<p class="hint-container-title">Experimental option</p>
<p>
This feature is behind an experimental option. Run Nushell with
<code>--experimental-option={{ option }}</code> or set before running
Nushell the environment variable to
<code>NU_EXPERIMENTAL_OPTIONS={{ option }}</code
>.
</p>
</div>
</template>

<style scoped>
code {
white-space: nowrap;
}
</style>

<script setup lang="ts">
const { option } = defineProps({
option: {
type: String,
required: true,
},
});
</script>
Loading