refactor: capitalize comments (#7188)

* refactor: capitalize comments

* revert...
This commit is contained in:
Joshua Chen 2022-04-17 16:39:11 +08:00 committed by GitHub
parent 200009008b
commit fa1ce230ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 241 additions and 350 deletions

View file

@ -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]',

View file

@ -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)})` : '';