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: 5 additions & 0 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ export default defineConfig({
title: 'rotki Documentation',
base,
description: 'All you need to start using rotki, or contributing to it.',
// Only emit a sitemap for the canonical stable build (base '/'). The versioned
// 'latest'/'patch' builds are previews and must not publish a competing sitemap.
sitemap: base === '/'
? { hostname: 'https://docs.rotki.com' }
: undefined,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
logo: '/logo.png',
Expand Down
7 changes: 6 additions & 1 deletion components/csv-loader.data.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath, URL } from 'node:url';
import Papa from 'papaparse';
import { defineLoader } from 'vitepress';

// Absolute glob so resolution does not depend on cwd or the loader's location
// (VitePress 2 resolves relative watch globs against the loader file's directory).
const csvGlob = fileURLToPath(new URL('../public/files/*.csv', import.meta.url));

export interface CsvData {
headers: string[];
rows: string[][];
Expand All @@ -15,7 +20,7 @@ declare const data: CsvDataRecord;
export { data };

export default defineLoader({
watch: ['public/files/*.csv'],
watch: [csvGlob],
async load(watchedFiles): Promise<CsvDataRecord> {
const data: CsvDataRecord = {};

Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@
"image-size": "2.0.2",
"lint-staged": "16.4.0",
"markdown-it": "14.1.1",
"oxc-minify": "0.134.0",
"papaparse": "5.5.3",
"url": "0.11.4",
"vitepress": "1.6.4",
"vitepress-plugin-llms": "1.12.0",
"vitepress-plugin-tabs": "0.8.0"
"vitepress": "2.0.0-alpha.17",
"vitepress-plugin-llms": "1.13.1",
"vitepress-plugin-tabs": "0.9.0"
},
"engines": {
"node": ">=24 <25",
Expand Down
Loading
Loading