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
|
@ -59,7 +59,8 @@ export default function pluginIdealImage(
|
|||
{
|
||||
loader: require.resolve('@docusaurus/responsive-loader'),
|
||||
options: {
|
||||
emitFile: !isServer, // don't emit for server-side rendering
|
||||
// Don't emit for server-side rendering
|
||||
emitFile: !isServer,
|
||||
// eslint-disable-next-line global-require
|
||||
adapter: require('@docusaurus/responsive-loader/sharp'),
|
||||
name: 'assets/ideal-img/[name].[hash:hex:7].[width].[ext]',
|
||||
|
|
|
@ -40,7 +40,7 @@ function getMessage(icon: IconKey, state: State) {
|
|||
description: 'When the full-scale image is loading',
|
||||
});
|
||||
case 'load': {
|
||||
// we can show `alt` here
|
||||
// We can show `alt` here
|
||||
const {pickedSrc} = state;
|
||||
const {size} = pickedSrc;
|
||||
const sizeMessage = size ? ` (${bytesToSize(size)})` : '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue