13 Commits
Author SHA1 Message Date
Fuma Nama d2b211d323 Clean code 2026-04-09 21:53:42 +08:00
Fuma Nama 5f687b6a0e Core: Support data export mode in Rehype TOC 2026-03-03 19:56:43 +08:00
Fuma Nama 429c41a5a5 Core: Switch to Shiki JavaScript Regex engine by default 2025-10-14 19:31:48 +08:00
Fuma Nama 52ef9607af MDX Remote: add unit tests for scope variables 2025-10-04 00:54:48 +08:00
a6c909b618 Deps: Reducing deps (#1873)
* Deps: Reducing deps

* Changeset

* Reverting the changes for `generate-docs` script as it shuold work as expected without any additional workarounds

* Returning `isbot` dep

* clean code

---------

Co-authored-by: Fuma Nama <[email protected]>
2025-05-19 20:32:47 +08:00
Fuma Nama 3bde5cc2a4 MDX Remote: Support JSX nodes in TOC 2025-01-21 18:51:18 +08:00
Fuma Nama b9601fb87f Chore: Update Shiki 2025-01-20 19:59:52 +08:00
Fuma Nama 84a5a1d83a Fix tests 2025-01-15 12:53:32 +08:00
Fuma Nama 82ff9ecc1b MDX Remote: make stable 2025-01-15 12:40:43 +08:00
Fuma Nama b48f12c9ff Chore: update unit tests 2024-12-20 16:56:50 +08:00
fuma-nama abff30cdcc Fix lint errors 2024-06-29 19:31:34 +08:00
ca7d0f4e75 MDX Remote: Further Support For Github Integration (#486)
* feat: add github cache

* remove unused imports

* format

* add blob fetching

* fix tests

* improve blob fetching (wheter local or remote) and improve performance (i think)

* page tree generation with cache (and sep. concerns)

* run prettier

* begin webpack plugin

* add elementary compilation of md(x) files

* format

* fix local file hash, remove webpack, fix tree diff (local), disable loading tree when scope is 'file'

* format

* rewrite cache object (simpler, less abstract) ... and more

* reorganize cache instance

* focus on reading cache and decoding content from cache

* format

* manually add cache to `remote-mdx` example (redo with webhook later)

* be more strict when differing between a local and remote cache

* update test outputs

* add `force-cache` to fetch requests

* fix meta data when loaded into page tree and add `getSearchIndexes`

* add search to remote-mdx example

* add `createGithubWebhookAPI`

* move `compile` out of `generatePageTree` and into `cache` instance

* return `cache` instance from `load` (so you can chain `createCache` and `load`)

* fix test output

* format

* broaden cache scope of pageTree

* format

* fix tests

* dont `force-cache` github api requests

* fix `cache.generatePageTree` test

* fix remote cache revalidation

* format

* fix tests

* rename tests

* more tests

* fix example

* add `minimumRevalidate` helper value

* format

* fix lint

* remove `minimumRevalidate`

* fix prod workflow

* fix revalidation during github webhook (`cache.data` wasn't being set)

* format

* fix tests

* update example

* fix types for `getSearchIndexes`

* begin docs

* add nextjs plugin w/ loader

* up example

* redo prod workflow (bc of loader)

* revert

* Add example code for dev WebSocket server

* MDX Remote: Rewrite previous code

* remove option to pick *where* to save cache (only can disable or enable it)

* MDX Remote: Rewrite logic

* MDX Remote: Support search indexes & Improved dev server

* MDX Remote: Rewrite unit tests

* MDX Remote: Add unit tests

* MDX Remote: Support built-in search index build utility

* Core: Support resolving async search indexes

* Format

* Prepare for merge

---------

Co-authored-by: fuma-nama <[email protected]>
2024-06-29 17:20:53 +08:00
fuma-nama a39dbcbd56 MDX Remote: Support Github Integration 2024-06-17 10:31:54 +08:00