Commit Graph

220 Commits

Author SHA1 Message Date
c778cd8c54 Merge commit '4923affa7722dfc751f1074348e6dad214fe0c08' into v4 2025-10-22 13:51:57 -04:00
Amir Pourmand
2c0d66669a feat: Update FlexSearch and Add Support for All Languages (#2108)
* chore(deps): update flexsearch to version 0.8.205 and adjust search encoder.

* refactor(search): enhance search encoder and update search results type

- Improved the encoder function to filter out empty tokens.
- Updated the search results type from a specific FlexSearch type to a more generic 'any' type for flexibility.
- Removed redundant rtl property from the index configuration.

* refactor(search): remove rtl property from search index configuration

* refactor(search): improve encoder function formatting

- Updated the encoder function to use consistent arrow function syntax for better readability.

* refactor(search): update search results type to DefaultDocumentSearchResults

- Imported DefaultDocumentSearchResults from FlexSearch for improved type safety.
- Changed the type of searchResults from 'any' to DefaultDocumentSearchResults<Item> for better clarity and maintainability.
2025-09-17 15:39:30 -07:00
cb95401bcb Merge commit '7fa9253abc1e4056d425847e2eaa5a8e107fc297' into v4 2025-08-20 17:40:13 +09:00
reagenzn
8a5f8899c8 fix(search): prevent Enter key handling during IME composition (#2070)
Add !e.isComposing check to Enter key handler in search functionality
to prevent unwanted navigation during Japanese/Asian text input composition
2025-08-01 11:57:32 -04:00
Emile Bangma
04c2d78ae8 revert(graph): roll back changes due to issues with Safari (#2067)
* chore: remove unused dependency

* fix(graph): rolled back webgpu changes
2025-07-30 18:43:36 +02:00
Jiangnan Li
68ffddc829 feat(giscus): expose language option for Comments component (#2012)
* add language support for Comment

* docs: let users know they can customize their language preference
2025-06-08 11:23:01 +02:00
anthops
36a3bd9686 fix(graph): provide proper workaround for pixijs webgpu issue #1899 (#1949) 2025-04-30 09:49:41 -07:00
Stephen Tse
b59b9e7c53 fix(explorer): Prevent html from being scrollable when mobile explorer is open (#1895)
* Fixed html page being scrollable when mobile explorer is open

* Prettier code

* Addressed comment
2025-04-26 11:13:56 -07:00
Stephen Tse
bee2fa0fe0 fix(callout): Grid-based callout collapsible animation (#1944)
* Fixed broken nested callout maxHeight calculation

* Implemented grid-based callout collapsible
2025-04-26 11:05:51 -07:00
anthops
09a8f5fa81 fix: prefer webgl for devices with webgpu and no float32-blendable feature flag #1899 (#1933)
Co-authored-by: Tony <32993852+0xREDACTED@users.noreply.github.com>
2025-04-23 09:32:52 -07:00
Jacky Zhao
d25c680f9b fix(popover): properly clear popover on racing fetch 2025-04-21 23:55:38 -07:00
Jacky Zhao
d91beaa3bf feat: reader mode 2025-04-17 19:45:17 -07:00
Jacky Zhao
95680d9fa8 fix(popover): clear popovers more aggressively, use href as id 2025-04-11 08:18:28 -07:00
Jacky Zhao
dd334896f1 fix(search): properly show mobile layout 2025-04-10 17:43:35 -07:00
Jacky Zhao
e0cdac272c fix(popover): popover id calculation + scroll consistency 2025-04-10 16:46:30 -07:00
Jacky Zhao
6d2d7b47cc fix: add proper popover hint to tag content page 2025-04-10 16:28:36 -07:00
Emile Bangma
a852d37b13 fix(popover): round coords remove blurred popovers (#1911) 2025-04-07 00:23:49 +02:00
Jacky Zhao
7016ff3262 chore(css): style tweaks for overflow 2025-04-05 11:38:50 -07:00
1 gal Rosemary
0cf5bd4a9e fix(css): styles issues with popover, overflow, and scroll overflow (#1907)
* fix(style): fix toc overflow & scrolling overflow

* fix(style): fix explorer scrolling overflow

* fix(style): fix backlinks overflow & scrolling overflow

* fix(style): resolve popover overflow issue causing incomplete display

* chore: rename function to enhance readability

* fix(popover): make the backlink's id unique & use translate() instead of translateY()
2025-04-05 10:39:28 -07:00
Emile Bangma
46d3284ee7 fix(popover): automatically position anchored links properly (#1897)
* fix(popover): automatically position heading links at heading

* Impement linking of blockreferences

* Popover fixes

* id mapping

* Remove excess regexes

* Updated blockref

* Remove linker element

* Restore the docs to their former glory

* Move the hash out of the loop

* Redundant

* Redundant

* Restore docs

* Remove log

* Let it const
2025-04-05 10:31:17 -07:00
Jacky Zhao
ab126a4abf fix(search): make closest sidebar z-index adjustment optional (closes #1905) 2025-04-04 10:17:57 -07:00
Stephen Tse
c6ed51768b fix(toc): Fixed headers in second ToC element not highlight-able 2025-03-30 17:35:20 -07:00
Jacky Zhao
bf8b577f63 perf: incremental rebuild (--fastRebuild v2 but default) (#1841)
* checkpoint

* incremental all the things

* properly splice changes array

* smol doc update

* update docs

* make fancy logger dumb in ci
2025-03-16 14:17:31 -07:00
Jacky Zhao
2ceca50e42 fix(explorer): fix incorrect recursive case for folder rendering 2025-03-14 10:05:26 -07:00
Jacky Zhao
4ab54baea3 fix(graph): avoid keeping stroke in gfx 2025-03-13 12:29:30 -07:00
Jacky Zhao
c6a61812c9 fix(explorer): properly respect folderDefaultState (closes #1827) 2025-03-12 22:31:44 -07:00
Jacky Zhao
fd4871125b fix(explorer): dont invert mobile css, properly toggle .collapsed 2025-03-12 10:15:54 -07:00
Emile Bangma
4eda00331c fix(explorer): mobile explorer toggle (#1823) 2025-03-12 14:15:16 +01:00
Jacky Zhao
346a011d36 fix(mermaid): themechange detector + expand simplification 2025-03-11 11:45:45 -07:00
Jacky Zhao
d94ccf245a fix: load mermaid as normal now that inline is safely below bundle size 2025-03-10 16:42:08 -07:00
Jacky Zhao
ec33a3b7c0 fix: mermaid script load order 2025-03-10 16:20:08 -07:00
Jacky Zhao
4439f91d55 feat: support non-singleton explorer 2025-03-10 15:13:22 -07:00
Jacky Zhao
ffcf9a8198 feat: support non-singleton darkmode 2025-03-10 11:44:47 -07:00
Jacky Zhao
994b906041 fix(graph): make graph non-singleton, proper cleanup, fix radial 2025-03-10 11:39:08 -07:00
Jacky Zhao
25efe7d6b8 fix(popovers): clear id to avoid anchor jumps within popover 2025-03-10 00:08:06 -07:00
Jacky Zhao
0eac10e179 fix(explorer): dont rely on data to get slug, compute it in trie 2025-03-09 23:36:10 -07:00
Jacky Zhao
94199fd392 feat: support non-singleton search 2025-03-09 15:33:15 -07:00
Jacky Zhao
d2bdc98749 feat: support non-singleton table of contents 2025-03-09 15:06:36 -07:00
Jacky Zhao
f35321c408 perf(explorer): client side explorer (#1810)
* start work on client side explorer

* fix tests

* fmt

* generic test flag

* add prenav hook

* add highlight class

* make flex more consistent, remove transition

* open folders that are prefixes of current path

* make mobile look nice

* more style fixes
2025-03-09 14:58:26 -07:00
Aaron Pham
31b554c96f fix(graph): set container as renderGroup to avoid redrawing multiple times (#1736)
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2025-03-05 17:33:16 -08:00
Emile Bangma
c32b374c79 feat(explorer): collapsible mobile explorer (#1471)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
2025-02-03 09:25:42 -05:00
Aaron Pham
4d55359b9c feat(graph): enable radial mode (#1738) 2025-02-01 16:22:29 -05:00
Aaron Pham
83ce7ec0a7 perf: reduce bundle size (closes #1607) (#1689) 2025-01-01 12:24:32 -08:00
Anton Bulakh
c66ba5cbff fix(spa): Fix relative alias redirects (#1688) 2024-12-30 18:21:07 -08:00
Anton Bulakh
57a65323c7 fix(spa): handle HTML redirects for aliases (#1680) 2024-12-27 07:18:22 -07:00
Jacky Zhao
c1f20fce6a feat(spa): add loading bar (#1684) 2024-12-26 22:18:17 -07:00
Francisco Gama T. R.
cee4622911 fix(darkmode): check for null (#1531) 2024-12-03 01:56:59 -05:00
Aaron Pham
a418bc1814 feat(mermaid): improvement navigation (#1575)
* feat(mermaid): custom stuff

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* chore: use mermaid and update clipboard content

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

* fix: explicitly use center div

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>

---------

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-10 18:13:12 -05:00
Stephen Tse
1078883dcc fix: reset z-index instead of inherited unset (#1528)
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-11-04 20:22:36 -05:00
Emile Bangma
0d2c460638 feat(comments): support custom giscus themes (#1526)
Co-authored-by: Aaron Pham <Aaronpham0103@gmail.com>
Co-authored-by: Aaron Pham <contact@aarnphm.xyz>
2024-10-17 18:30:16 -04:00