Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Dec 23, 2024
2 parents 9c3b806 + c6f5966 commit c03aa78
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 76 deletions.
12 changes: 0 additions & 12 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion lib/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
// Defaults to defaultValue
import { readFileSync } from 'fs';
import matter from 'gray-matter';
import { capitalizeFirst } from 'qsu';
import type {
AnyValueObject,
SidebarItem,
SidebarListItem,
SortByObjectKeyOptions,
VitePressSidebarOptions
} from './types.ts';
import { capitalizeFirst } from './util.js';

export function generateNotTogetherMessage(options: string[]): string {
return `These options cannot be used together: ${options.join(', ')}`;
Expand Down
2 changes: 1 addition & 1 deletion lib/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { UserConfig } from 'vitepress';
import { join, resolve } from 'path';
import { globSync } from 'glob';
import { existsSync, readdirSync, statSync } from 'fs';
import { isTrueMinimumNumberOfTimes, objMergeNewKey } from './util.js';
import { isTrueMinimumNumberOfTimes, objMergeNewKey } from 'qsu';
import type { Sidebar, SidebarItem, SidebarListItem, VitePressSidebarOptions } from './types.js';
import {
debugPrint,
Expand Down
4 changes: 0 additions & 4 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ export declare interface VitePressSidebarOptions {
rootGroupCollapsed?: boolean | null | undefined;
frontmatterOrderDefaultValue?: number;
frontmatterTitleFieldName?: string;
/**
* @private This option is only used internally. Use the `debugPrint` option instead.
*/
debugPrintFromWithSidebar?: boolean;
/**
* @deprecated use `excludePattern` option instead. This option will be removed in a future version.
*/
Expand Down
56 changes: 0 additions & 56 deletions lib/util.ts

This file was deleted.

12 changes: 11 additions & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
},
"dependencies": {
"glob": "10.4.5",
"gray-matter": "4.0.3"
"gray-matter": "4.0.3",
"qsu": "^1.6.4"
}
}

0 comments on commit c03aa78

Please sign in to comment.