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: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ jobs:
- run: npm install
# - run: npm run build
- name: Build Static Docs
env:
NODE_OPTIONS: '--max_old_space_size=8192'
run: npm run build
2 changes: 2 additions & 0 deletions .vuepress/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
*/

import { defineClientConfig } from 'vuepress/client';
import AsciinemaPlayer from './components/AsciinemaPlayer.vue';
import BlogPosts from './components/BlogPosts.vue';
import JumpToc from './components/JumpToc.vue';
import PrBy from './components/PrBy.vue';
import ReleaseToc from './components/ReleaseToc.vue';

export default defineClientConfig({
enhance({ app }) {
app.component('AsciinemaPlayer', AsciinemaPlayer);
app.component('BlogPosts', BlogPosts);
app.component('JumpToc', JumpToc);
app.component('PrBy', PrBy);
Expand Down
28 changes: 28 additions & 0 deletions .vuepress/components/AsciinemaPlayer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<template>
<div ref="playerElement"></div>
</template>

<!-- for opts see https://docs.asciinema.org/manual/player/options/ -->

<script setup>
import { ref, onMounted } from 'vue';
import { ClientOnly } from 'vuepress/client';

const props = defineProps({
castUrl: {
type: String,
required: true,
},
opts: {
type: Object,
required: false,
},
});

const playerElement = ref(null);

onMounted(async () => {
const { create } = await import('asciinema-player');
create(props.castUrl, playerElement.value, { theme: 'tango', ...props.opts });
});
</script>
2 changes: 2 additions & 0 deletions .vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import '../../node_modules/asciinema-player/dist/bundle/asciinema-player.css';

@font-face {
font-family: 'Fira Code';
src:
Expand Down
1,274 changes: 1,274 additions & 0 deletions blog/2026-02-28-nushell_v0_111_0.md

Large diffs are not rendered by default.

135 changes: 135 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"type": "module",
"scripts": {
"update": "nu make_docs.nu",
"dev": "vuepress dev",
"build": "vuepress build",
"dev": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vuepress dev",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vuepress build",
"postinstall": "patch-package",
"prepare": "git config --unset core.hooksPath && rm -rf .husky || true; npx lefthook install",
"pretty": "prettier --write ."
Expand All @@ -20,6 +20,8 @@
"@vuepress/plugin-shiki": "2.0.0-rc.118",
"@vuepress/plugin-sitemap": "2.0.0-rc.118",
"@vuepress/theme-default": "2.0.0-rc.118",
"asciinema-player": "^3.15.1",
"cross-env": "^10.1.0",
"lefthook": "1.8.2",
"patch-package": "^8.0.1",
"prettier": "^3.3.3",
Expand Down
4 changes: 4 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ extend-ignore-identifiers-re = [
"(?i)foobar", # false positive in book/sorting.md
]

extend-ignore-re = [
"\\x1b\\[[0-9;]*m.*", # ignore ansi color instructions
]

[default.extend-words]
"ime" = "ime" # false positive in cookbook/polars_v_pandas_v_nushell.md
ba = "ba"
Expand Down