Joshua Chen
b49ae67521
refactor(types): move non-core, non-public types out of the types package ( #7293 )
2022-05-03 17:15:48 +08:00
Joshua Chen
d2562a4434
refactor: normalize Markdown linkification behavior, elaborate in documentation ( #7248 )
...
* refactor: normalize Markdown linkification behavior, elaborate in documentation
* fix broken links
* allow links to be relative to site root
* fix test
* minor doc update
* Update website/docs/guides/markdown-features/markdown-features-links.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-29 11:36:39 +08:00
Joshua Chen
10a5ebecec
fix(content-docs): make category index text translatable ( #7233 )
2022-04-27 23:40:15 +08:00
Joshua Chen
fa1ce230ea
refactor: capitalize comments ( #7188 )
...
* refactor: capitalize comments
* revert...
2022-04-17 16:39:11 +08:00
Jody Heavener
5fb0a2e274
feat(content-docs): draft docs excluded from build & sidebars ( #6457 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-04-13 18:02:05 +02:00
Joshua Chen
f4ab7c65ac
feat(preset-classic, content-docs/client): JSDoc ( #7148 )
...
* refactor: add JSDoc for preset-classic, content-docs/client
* fix
2022-04-11 09:36:30 +08:00
Joshua Chen
7a61eed3dd
refactor: unify how MDX content types are represented ( #7145 )
...
* refactor: unify how MDX content types are represented
* fix
* fix again
2022-04-10 19:19:44 +08:00
Joshua Chen
96fbcb3f51
refactor(content-docs): split version handling into several files ( #7140 )
...
* refactor(content-docs): split version handling into several files
* fix test
* increase timeout
2022-04-09 17:08:57 +08:00
Joshua Chen
7941a46be3
feat: allow setting calendar for i18n date formatting ( #6430 )
...
* feat: allow setting calendar for i18n date formatting
* fix TS
* add test
2022-04-08 22:34:34 +08:00
Joshua Chen
171927342f
feat(core): fail-safe global data fetching ( #7083 )
2022-04-08 11:08:22 +02:00
Joshua Chen
9145ae88cc
chore: disable string escaping in snapshots ( #7131 )
2022-04-08 11:23:19 +08:00
Joshua Chen
4134ebb3fb
feat(content-docs): make docs:version command work on localized docs ( #7106 )
...
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-04-07 19:43:24 +02:00
Joshua Chen
1156be3f20
refactor(content-{blog,docs}): unify handling of tags ( #7117 )
2022-04-07 15:58:21 +02:00
Joshua Chen
ff96606865
docs: fix some casing inconsistencies ( #7081 )
2022-03-31 20:23:44 +08:00
Joshua Chen
24c205a835
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type ( #7080 )
...
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type
* fix
2022-03-31 19:16:07 +08:00
Joshua Chen
5fb09a2946
refactor(core): reorganize files ( #7042 )
...
* refactor(core): reorganize files
* fix types
2022-03-28 21:49:37 +08:00
Joshua Chen
85a79fd9b9
refactor(core): reorganize functions ( #7037 )
2022-03-28 17:12:36 +08:00
Joshua Chen
c81d21a641
refactor: minor type improvements ( #7035 )
2022-03-28 11:15:37 +08:00
Alexey Pyltsyn
a307da0b9f
feat(logger): new "url" format, add double quotes around paths ( #7019 )
...
* refactor(logger): add double quotes around paths
* Introduce url formatter
* Fix
2022-03-27 14:59:20 +08:00
Joshua Chen
2bcac29cd4
refactor(content-docs): deduplicate types, JSDoc for some APIs ( #7027 )
...
* refactor(content-docs): deduplicate types, JSDoc for some APIs
* little refactor
2022-03-27 12:57:15 +08:00
Joshua Chen
4957ec947b
refactor: fix a few places of path handling ( #7023 )
2022-03-26 22:49:50 +08:00
Sébastien Lorber
1b974e8b1b
refactor: split and cleanup theme/DocPage ( #7006 )
2022-03-25 19:58:28 +01:00
Sébastien Lorber
2964e6f65d
refactor: split DocSidebarItem by item type ( #7005 )
2022-03-25 18:59:31 +01:00
Joshua Chen
b5ceead3b2
feat(content-docs): autogenerate category with linked doc metadata as fallback ( #6859 )
2022-03-25 15:23:11 +01:00
Joshua Chen
f1bcdbff63
fix(validation): improve error messages for a few schemas ( #6997 )
...
* fix(validation): improve error messages for a few schemas
* kick CI
* fix test
2022-03-25 21:50:37 +08:00
Joshua Chen
87592bca03
refactor: ensure all types are using index signature instead of Record ( #6995 )
...
* refactor: ensure all types are using index signature instead of Record
* kick CI
2022-03-25 18:06:30 +08:00
Joshua Chen
2eeb0e46a2
feat(utils): JSDoc for all APIs ( #6980 )
...
* feat(utils): JSDoc for all APIs
* fix tests
2022-03-24 21:34:31 +08:00
Felipe Santos
4b3f568b78
fix(content-docs): suppress git error on multiple occurrences ( #6973 )
2022-03-23 16:35:26 +01:00
Joshua Chen
6e2eb44964
refactor: unify how validateOptions is handled ( #6961 )
...
* refactor: unify how validateOptions is handled
* fix types
* fix again
2022-03-22 19:40:56 +08:00
Joshua Chen
5ee7e8c48e
test: add tests for gitUtils ( #6949 )
...
* test: add tests for gitUtils
* debug test
* try fix
2022-03-21 18:40:20 +08:00
Felipe Santos
e19a4e23e7
fix(content-docs): warn when files are not tracked ( #6937 )
...
* fix(docs): warn when files are not tracked
* chore(devcontainer): use non-root user
* test: fix jest in vscode
* test(docs): improve existing test
* chore(devcontainer): fix jest error on startup
* chore: fix comments
* chore: remove "probably" from error message
2022-03-21 08:42:36 +08:00
Sébastien Lorber
8a1421a938
feat(core,theme): useRouteContext + HtmlClassNameProvider ( #6933 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-18 10:57:32 +01:00
Joshua Chen
cc0bceab9c
chore: tighten ESLint config ( #6931 )
...
* chore: tighten ESLint config
* more refactor
* refactor push
* fix
2022-03-17 17:59:41 +08:00
Joshua Chen
ad88f5cc87
test: improve test coverage; multiple internal refactors ( #6912 )
2022-03-14 21:53:57 +08:00
Joshua Chen
8c1e518ba2
chore: do not print prototype in jest snapshot ( #6908 )
2022-03-13 19:34:50 +08:00
Joshua Chen
3a4b9b4c30
refactor: install eslint-plugin-regexp ( #6906 )
...
* refactor: install eslint-plugin-regexp
* simplify
* simplify
* fix
2022-03-13 18:32:17 +08:00
Joshua Chen
d85cee576d
test: improve test coverage; properly test core client APIs ( #6905 )
...
* test: improve test coverage
* fix
2022-03-12 23:15:45 +08:00
Joshua Chen
76cb012209
chore: spell-check test files ( #6903 )
2022-03-12 15:24:56 +08:00
Joshua Chen
f6baaa6b75
test(theme-common): improve test coverage ( #6902 )
...
* test(theme-common): improve test coverage
* revert
2022-03-12 13:17:21 +08:00
Joshua Chen
aa5a2d4c04
test: enable a few jest eslint rules ( #6900 )
...
* test: enable a few jest eslint rules
* more
2022-03-12 08:43:09 +08:00
Joshua Chen
c9ee6e467c
refactor: import jest as global; unify import style of some modules ( #6898 )
...
* refactor: import jest as global
* fix react
2022-03-11 19:04:27 +08:00
Joshua Chen
ff0d981853
fix(content-docs): give context about sidebar loading failure ( #6887 )
2022-03-10 11:21:10 +08:00
Joshua Chen
23a34c1a07
refactor: prefer fs.outputFile to ensureDir + writeFile ( #6880 )
...
* refactor: prefer fs.outputFile to ensureDir + writeFile
* fix test
* fix
2022-03-09 17:50:33 +08:00
Joshua Chen
8e934450d8
refactor: remove unnecessary default values normalized during validation ( #6864 )
...
* refactor: remove unnecessary default values normalized during validation
* more
2022-03-07 19:23:30 +08:00
Joshua Chen
f763ac13a9
test: improve test coverage ( #6857 )
2022-03-06 17:55:21 +08:00
Joshua Chen
4db0c620de
refactor: enable a few TS flags ( #6852 )
...
* refactor: enable a few TS flags
* refactor
* revert to working version
* fix
* better
* change
2022-03-06 13:09:10 +08:00
tae
2e163a9ec4
feat(content-docs): allow custom props through _category_.json ( #6780 )
...
* feat(content-docs): allow custom props through _category_.json
* refactor
* documentation
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-05 18:52:36 +08:00
Joshua Chen
c90d25ca2f
fix(content-docs): always sort autogenerated sidebar items by file/folder name by default ( #6700 )
2022-03-03 12:39:54 +01:00
Joshua Chen
f04cb7abb9
test(content-docs): refactor navigation test snapshot ( #6821 )
...
* test(content-docs): refactor navigation test snapshot
* format
2022-03-03 14:00:42 +08:00
Joshua Chen
f903422617
refactor: unify error handling behavior ( #6755 )
...
* refactor: unify error handling behavior
* revert
* normalize paths
* test...
* change
* does this work...
* fix...
* maybe fix
* maybe fix
* fix
* fix...
2022-02-25 15:07:13 +08:00