Joshua Chen
fb3138d722
refactor(client-redirects): elaborate documentation, minor refactor ( #7607 )
2022-06-13 22:04:39 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Joshua Chen
7c9892888d
refactor: normalize error logging ( #7370 )
2022-05-08 13:40:34 +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
ea6ceaa371
refactor: ensure lodash is default-imported ( #6716 )
2022-02-19 18:15:02 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules ( #6514 )
...
* chore: clean up ESLint config, enable a few rules
* enable max-len for comments
* fix build
2022-01-31 10:31:24 +08:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers ( #6230 )
...
* refactor: enforce type import specifiers
* fix
* Upgrade esbuild
* Fix (haha)
2021-12-31 21:17:09 +08:00
Joshua Chen
0374426ce3
chore: upgrade TypeScript & other ESLint related deps ( #5963 )
...
* chore: upgrade ESLint related deps
* Upgrade TS
* Fix lock
* Bump Babel
* Update config
2021-11-18 21:15:37 +08:00
Sébastien Lorber
15a2b59f9f
fix(v2): fix redirect plugin when trailingSlash=false for .html extension ( #5102 )
...
* another redirect plugin fix when trailingSlash=false
* add comment
2021-06-30 17:22:51 +02:00
Sébastien Lorber
a78e4f19b2
fix(v2): redirect plugin should emit redirect files with lower precedence than redirect target ( #5085 )
...
* revert old behavior of the redirect plugin
* revert old behavior of the redirect plugin
2021-06-29 19:34:55 +02:00
Sébastien Lorber
b54ec72389
fix(v2): redirect plugin: use siteConfig.trailingSlash ( #4988 )
2021-06-16 19:04:28 +02:00
Alexey Pyltsyn
41d9288e3d
refactor(v2): cleanup console output ( #4979 )
...
* refactor(v2): cleanup console output
* fix jest issue
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-06-16 11:37:28 +02:00
Armano
bfe52cdae3
refactor(v2): correct some of type errors reported by eslint ( #4382 )
...
* fix: correct some of type errors reported by eslint
* fix: remove unnecessary import
2021-03-12 12:24:22 +01:00
saydo17
88a6f56654
fix(v2): fix redirect toUrl (windows + trailing slash) ( #3903 )
...
* replace \ with / when creating client redirect on windows
* fix(vs): replace \ with / when creating client redirect on windows
* redirects plugin: add createToUrl fn + tests
* redirects plugin: add createToUrl fn + tests
do not add trailing slash + try to fix windows path issues
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-12-28 11:55:15 +01:00
Sam Zhou
3611c96f90
chore(v2): Fix a lot of eslint warnings ( #2972 )
2020-06-20 12:30:18 +08:00
slorber
6b507630e3
migrate useful helper functions to docusaurus-utils
2020-06-10 17:22:41 +02:00
slorber
0ac5a66a1f
rename fromRoutePath/toRoutePath to simply from/to
2020-06-04 14:31:26 +02:00
slorber
9a2129551e
fix bad redirection url
2020-05-26 20:16:40 +02:00
slorber
cb2b5a5407
add write files test
2020-05-26 20:04:22 +02:00
slorber
9a73680ea5
fix missing ensureDir call
2020-05-26 19:03:02 +02:00
slorber
e93b98a242
fix writeRedirectFiles
2020-05-25 19:51:37 +02:00
slorber
9579ac10fc
split collectRedirects and writeRedirectFiles in separate files
2020-05-25 18:21:41 +02:00