Sébastien Lorber
60d189a91c
fix(v2): Export Joi from validation-utils package ( #4459 )
2021-03-18 19:27:51 +01:00
Sébastien Lorber
be7b5dca78
feat(v2): editUrl function for advanced use-cases ( #4121 )
...
* EditUrl function
* normalize blog/docs regarding the editUrl feature + editUrl function
* editUrl fn => always inject posix style relative paths, make tests more reliable
(see also https://github.com/facebook/docusaurus/issues/4124 )
* fix editUrl on windows
2021-01-29 15:35:25 +01:00
Cindy Gu
0b05806593
feat(v2): enable feeds by default in blog plugin ( #3842 )
...
* feat: enables feeds by default in blog
* feat(v2): enable feeds by default
committing a failed attempt for review
* feat(v2): enable feeds by default in blog plugin
- allow validation to work with arrays syntax
- using DEFAULT_OPTIONS.feedOptions.type instead
* feat(v2): enable feeds by default in blog plugin
- added documentation for feedOptions
* feat(v2): enable feeds by default in blog plugin
- modified implementation to allow feeds to be disable without error
- added unit test to ensure type: null leads to type: null after
validation
- added documentation to explain how to disable feed generation
2020-12-10 18:35:19 +01:00
Alexey Pyltsyn
69bf68ae57
chore(v2): migrate hapi/joi to joi ( #3638 )
2020-10-26 15:18:51 +01:00
Sébastien Lorber
e4c1626106
feat(v2): blog sidebar ( #3593 )
...
* blog sidebar POC
* polish blog post sidebar
* add doc for blogSidebarCount
* Update packages/docusaurus-theme-classic/src/theme/BlogSidebar/styles.module.css
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-10-16 19:12:05 +02:00
DeadEnglish
d1510770f4
feat(v2): add option for blog meta title #3571
...
* feat(blog-meta-title): add support for additional meta title
* retrocompatible blog title
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-12 13:23:54 +02:00
Sébastien Lorber
1eb6e13fb7
fix(v2): reject routeBasePath: '' ( #3377 )
...
* routeBasePath: '' should be forbidden
* routeBasePath: '' should be forbidden
* commit
* try to trigger cla bot
2020-08-31 19:59:27 +02:00
Teik Jun
fda1590b0d
fix(v2): modify validation schema and tests for rehype/remark + remove duplicate dependency ( #3247 )
...
* chore(v2): remove duplicate dependency
* fix(v2): make changes to validation for rehype and remark plugins
* style(v2): run prettier
2020-08-11 15:17:23 +02:00
Anshul Goyal
181a6174c7
fix(v2): relax URI validation ( #3227 )
...
* relax URI validation
* add regex
* add test
* fix linting error
* fix formatting
* use URL rather than regex
2020-08-07 22:11:19 +02:00
Sébastien Lorber
7cceee7e38
feat(v2): markdown pages ( #3158 )
...
* markdown pages POC
* add remark admonition, mdx provider, yarn2npm...
* pluginContentPages md/mdx tests
* pluginContentPages md/mdx tests
* add relative file path test link to showcase link problem
* fix Markdown pages issues after merge
* fix broken links found in markdown pages
* fix tests
* factorize common validation in @docusaurus/utils-validation
* add some documentation
* add using plugins doc
* minor md pages fixes
2020-07-31 16:04:56 +02:00
Xuqian
4af25cd597
feat(v2): support custom description for blog-only mode ( #2359 )
...
* feat: support custom description on blog page
resolve conflicts
* feat(v2): allow additional props to pass to route components
resolve conflicts
* Update blogDescription feature
* Update doc for blogDescription
* Remove test blogDescription config
* Fix blogDescription schema validation
* Fix minor errors
Co-authored-by: Xuqian <zxuqian@163.com>
2020-07-30 15:41:15 +02:00
Teik Jun
e7ec93b0b9
test(v2): add tests for config validation ( #3142 )
...
* test(v2): add tests for correctly defined fields
* test(v2): add test for remarkPlugins and rehypePlugins validation
* test(v2): modify tests and comments
2020-07-29 16:23:11 +02:00
Teik Jun
2159c4fcfb
fix(v2): make config validation less strict ( #3120 )
...
* fix(v2): make navbar title validation less strict
* fix(v2): fix validation for rehype plugin
* fix(v2): allow empty string for routeBasePath
* fix(v2): fix validation for stylesheets and scripts field
* fix(v2): rerun CI
* fix(v2): relax check for stylesheet href
2020-07-27 13:58:24 +02:00
Teik Jun
0f59cd1599
feat(v2): add option validation for remaining official plugins ( #2970 )
...
* feat(v2): add option validation lifecycle method
* chore(v2): add dependencies
* chore(v2): add yup dependency
* feat(v2): add option validation for plugin-content-docs
* chore(v2): add facebook copyright
* refactor(v2): remove unused variable
* chore(v2): add dependencies
* chore(v2): add copyright
* fix(v2): use strict for option validation
* feat(v2): add option validation for plugin-content-pages
* feat(v2): add schema for plugin-google-analytics and plugin-google-gtag
* feat(v2): add option validation for plugin-sitemap
* chore(v2): add dependency for yup
* fix(v2): remove strict to allow normalization
* refactor(v2): refactor validate method
* feat(v2): modify existing tests
* feat(v2): add tests for plugin normalization
* style(v2): use a more descriptive filename for schema
* feat(v2): add normalization tests
* feat(v2): add more tests for option validation
* refactor(v2): remove unused code
* refactor(v2): remove unused code
* refactor(v2): refactor methods and types
* feat(v2): replace Yup with Joi
* fix(v2): fix plugin-content-docs schema
* feat(v2): modify tests for plugin-content-docs
* fix(v2): fix a typo
* refactor(v2): improve tests and refactor code
* feat(v2): support both commonjs and ES modules
* refactor(v2): refactor validateOption method
* style(v2): fix eslint errors and typo in types
* chore(v2): remove unused yup dependency
* style(v2): standardize naming across official plugins
* chore(v2): update test snapshots
* chore(v2): remove obsolete snapshots
* chore(v2): fix a typo and check test
* feat(v2): add validation for new field
* feat(v2): add test for new field
2020-06-26 15:14:59 +02:00