Skip to content

Commit 36a1adc

Browse files
committed
chore: 1.6.1 — all changes
1 parent a90378b commit 36a1adc

33 files changed

Lines changed: 1097 additions & 1303 deletions

package-lock.json

Lines changed: 396 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/.github/workflows/deploy.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy Docs to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: docs-pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
24+
- name: Install, build, and upload site
25+
uses: withastro/action@v5
26+
27+
deploy:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deployment.outputs.page_url }}
33+
steps:
34+
- name: Deploy
35+
id: deployment
36+
uses: actions/deploy-pages@v4

site/astro.config.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import tailwindcss from "@tailwindcss/vite";
33
import starlight from "@astrojs/starlight";
44
import { docsSidebarTree, toStarlightSidebar } from "./src/docs-structure.mts";
55

6-
const DEFAULT_BASE = "/LearnKit";
6+
const DEFAULT_BASE = "/LearnKit-Guide";
77
const DEFAULT_SITE = "https://ctrlaltwill.github.io";
88

99
function normalizeBase(base) {
@@ -63,12 +63,12 @@ export default defineConfig({
6363
{
6464
icon: "github",
6565
label: "GitHub",
66-
href: "https://github.com/ctrlaltwill/LearnKit",
66+
href: "https://github.com/ctrlaltwill/LearnKit-Guide",
6767
},
6868
],
6969
credits: false,
7070
editLink: {
71-
baseUrl: "https://github.com/ctrlaltwill/LearnKit/edit/main/site/",
71+
baseUrl: "https://github.com/ctrlaltwill/LearnKit-Guide/edit/main/",
7272
},
7373
lastUpdated: true,
7474
pagination: true,

src/platform/core/tooltip-positioner.ts

Lines changed: 0 additions & 242 deletions
This file was deleted.

src/platform/plugin/lifecycle-methods.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import { isPlainObject, type FlashcardType } from "../core/utils";
4040
import { registerReadingViewPrettyCards, teardownReadingView } from "../../views/reading/reading-view";
4141
import { editDecorationExtension } from "../../views/study-assistant/editor/edit-decorations";
4242
import { removeAosErrorHandler } from "../core/aos-loader";
43-
import { initTooltipPositioner } from "../core/tooltip-positioner";
4443
import { initMobileKeyboardHandler, cleanupMobileKeyboardHandler } from "../core/mobile-keyboard-handler";
4544
import { loadFlagCacheFromDataJson } from "../flags/flag-tokens";
4645

@@ -144,9 +143,6 @@ export function WithLifecycleMethods<T extends Constructor<LearnKitPluginBase>>(
144143
try {
145144
this._initBasecoatRuntime();
146145

147-
this._disposeTooltipPositioner?.();
148-
this._disposeTooltipPositioner = initTooltipPositioner();
149-
150146
this._initButtonTooltipDefaults();
151147

152148
initMobileKeyboardHandler();
@@ -398,8 +394,6 @@ export function WithLifecycleMethods<T extends Constructor<LearnKitPluginBase>>(
398394
this._readingModeWatcherInterval = null;
399395
}
400396

401-
this._disposeTooltipPositioner?.();
402-
this._disposeTooltipPositioner = null;
403397
this._unregisterReminderDevConsoleCommands();
404398
this._unregisterStudyAssistantDevConsoleCommands();
405399
this._reminderEngine?.stop();

src/platform/plugin/plugin-base.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export class LearnKitPluginBase extends Plugin {
3535
declare _hideStatusBarViewTypes: Set<string>;
3636
declare _sproutZoomValue: number;
3737
declare _sproutZoomSaveTimer: number | null;
38-
declare _disposeTooltipPositioner: (() => void) | null;
3938
declare _reminderEngine: ReminderEngine | null;
4039
declare _assistantPopup: SproutAssistantPopup | null;
4140
declare _coachDb: CoachPlanSqlite | null;

src/platform/plugin/runtime-state.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export function ensurePluginRuntimeState(plugin: LearnKitPluginBase): void {
4242
plugin._sproutZoomValue ??= 1;
4343
plugin._sproutZoomSaveTimer ??= null;
4444

45-
plugin._disposeTooltipPositioner ??= null;
4645
plugin._reminderEngine ??= null;
4746
plugin._assistantPopup ??= null;
4847
plugin._coachDb ??= null;

0 commit comments

Comments
 (0)