Commit graph

28 commits

Author SHA1 Message Date
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
06673ee8c3 refactor: remove redirectCreator abstraction 2020-06-04 14:28:31 +02:00
slorber
e60c063120 snapshot update 2020-06-03 19:47:36 +02:00
slorber
89038dea0c Fix non-strict validation error, allowing [] for string 2020-06-03 19:46:57 +02:00
slorber
00a79f69c7 Add chalk non-blocking errors + fix config bug 2020-06-03 19:28:57 +02:00
slorber
c224efb8a1 Add better options validation error 2020-06-03 17:53:54 +02:00
slorber
1439bad84c Add redirects plugin option 2020-06-03 17:30:21 +02:00
slorber
a0991c581b add context to error message 2020-06-03 16:07:27 +02:00
slorber
5bf85e44ac add validateRedirect 2020-06-03 16:03:03 +02:00
Sébastien Lorber
6c4c6c5750
Fix updated version numbers 2020-05-28 17:31:11 +02:00
slorber
4913ca638e remove useless comments 2020-05-27 18:08:06 +02:00
slorber
8b6dc032c6 update broken snapshot 2020-05-27 10:47:38 +02:00
slorber
cc1705e00c add canonical url 2020-05-26 21:03:18 +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
8c8adc5e6b fix annoying inline snapshot not working due to fmt/indentation issue 2020-05-26 19:12:19 +02:00
slorber
9a73680ea5 fix missing ensureDir call 2020-05-26 19:03:02 +02:00
slorber
0c330df5cc fix template import issue 2020-05-25 20:06:52 +02:00
slorber
e93b98a242 fix writeRedirectFiles 2020-05-25 19:51:37 +02:00
slorber
26beb00476 improve a bit collectRedirects 2020-05-25 19:26:36 +02:00
slorber
d8c163e76b stable collectRedirects 2020-05-25 19:18:36 +02:00
slorber
9579ac10fc split collectRedirects and writeRedirectFiles in separate files 2020-05-25 18:21:41 +02:00
slorber
2695548b93 add proper normalizePluginOptions + tests 2020-05-25 18:05:57 +02:00
slorber
92c2d0839c add tests for redirectCreators 2020-05-25 17:07:00 +02:00
slorber
d1a162ec30 createRedirectPageContent: use eta template + encode URI for meta refresh header + tests 2020-05-25 16:27:36 +02:00
slorber
fde4933cd5 add utils tests 2020-05-25 16:03:39 +02:00
slorber
fd47ca1925 feat(v2): docusaurus-plugin-client-redirects 2020-05-22 20:15:16 +02:00