mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> global: (wip) move keyboard shortcuts metadata into common package Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> common: refactor keybindings.ts Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> global: (wip) more refactoring * minor refactor dialog * refactor logic out from script file to keybindings file Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> common: filter keybindings based on platform && minor ui changes Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> editor: use keyboard keys from common package Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> web: remove unrelated title-box change Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> editor: add TODO:remove comments Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
26 lines
722 B
TypeScript
26 lines
722 B
TypeScript
console.log("Generating keyboard shortcuts documentation...");
|
|
|
|
import { writeFileSync } from "fs";
|
|
import { getGroupedTableKeybindingsMarkdown } from "./packages/common/src/utils/keybindings";
|
|
|
|
const keyboardShortcutFilePath = "./docs/help/contents/keyboard-shortcuts.md";
|
|
|
|
const frontmatter = `---
|
|
title: Keyboard Shortcuts
|
|
description: Keyboard shortcuts for Notesnook
|
|
---
|
|
`;
|
|
|
|
const content =
|
|
"The following keyboard shortcuts will help you navigate Notesnook faster.";
|
|
|
|
const markdownTable = getGroupedTableKeybindingsMarkdown();
|
|
|
|
writeFileSync(
|
|
keyboardShortcutFilePath,
|
|
frontmatter + "\n" + content + "\n\n" + markdownTable,
|
|
"utf-8"
|
|
);
|
|
|
|
console.log("Keyboard shortcuts documentation updated successfully!");
|