mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
refactor: capitalize comments (#7188)
* refactor: capitalize comments * revert...
This commit is contained in:
parent
200009008b
commit
fa1ce230ea
99 changed files with 241 additions and 350 deletions
|
@ -170,8 +170,8 @@ const config = {
|
|||
({
|
||||
fromExtensions: ['html'],
|
||||
createRedirects(routePath) {
|
||||
// redirect to /docs from /docs/introduction,
|
||||
// as introduction has been made the home doc
|
||||
// Redirect to /docs from /docs/introduction, as introduction has been
|
||||
// made the home doc
|
||||
if (allDocHomesPaths.includes(routePath)) {
|
||||
return [`${routePath}/introduction`];
|
||||
}
|
||||
|
@ -195,13 +195,15 @@ const config = {
|
|||
],
|
||||
[
|
||||
'ideal-image',
|
||||
{
|
||||
/** @type {import('@docusaurus/plugin-ideal-image').PluginOptions} */
|
||||
({
|
||||
quality: 70,
|
||||
max: 1030, // max resized image's size.
|
||||
min: 640, // min resized image's size. if original is lower, use that size.
|
||||
steps: 2, // the max number of images generated between min and max (inclusive)
|
||||
// disableInDev: false,
|
||||
},
|
||||
max: 1030,
|
||||
min: 640,
|
||||
steps: 2,
|
||||
// Use false to debug, but it incurs huge perf costs
|
||||
disableInDev: true,
|
||||
}),
|
||||
],
|
||||
[
|
||||
'pwa',
|
||||
|
@ -413,7 +415,7 @@ const config = {
|
|||
label: 'Tests',
|
||||
docsPluginId: 'docs-tests',
|
||||
},
|
||||
// right
|
||||
// Right
|
||||
{
|
||||
type: 'docsVersionDropdown',
|
||||
position: 'right',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue