Skip to content

Commit

Permalink
docs: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Aug 1, 2020
1 parent 231f664 commit 5f847a9
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
16 changes: 8 additions & 8 deletions packages/@remirror/cli/src/commands/bundle/bundle-ui.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import figures from 'figures';
import { Box, Color, render, Text } from 'ink';
import { Box, render, Text } from 'ink';
import Spinner from 'ink-spinner';
import ms from 'ms';
import React, { FC, useEffect } from 'react';
Expand Down Expand Up @@ -69,21 +69,21 @@ const LoadingLine: FC<BundleEditorState & { value: Step }> = ({ step, error, val

const getElement = () => {
if (error) {
return <Color red={true}>{figures.cross}</Color>;
return <Text color='red'>{figures.cross}</Text>;
}

if (step === value) {
return <Spinner />;
}

return <Color green={true}>{figures.tick}</Color>;
return <Text color='green'>{figures.tick}</Text>;
};

return (
<Box height={1}>
<Box paddingRight={2}>{getElement()}</Box>
<Text>
<Color grey={true}>{children}</Color>
<Text color='grey'>{children}</Text>
</Text>
</Box>
);
Expand Down Expand Up @@ -112,18 +112,18 @@ export const BundleEditor = ({ verbose, ...props }: BundleEditorProps) => {
{completed && (
<>
<Box height={1} paddingLeft={3} marginY={1}>
<Color green={true} bold={true}>
<Text color='green' bold={true}>
{messaging[Step.Complete]}
</Color>
</Text>
</Box>
</>
)}
{isNumber(duration) && verbose && (
<Box height={1} paddingBottom={2}>
<Box paddingRight={2}>
<Color blue={true}>{figures.info}</Color>
<Text color='red'>{figures.info}</Text>
</Box>
<Color>Duration: {ms(duration)}</Color>
<Text>Duration: {ms(duration)}</Text>
</Box>
)}
</>
Expand Down
3 changes: 2 additions & 1 deletion support/website/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const { dirname } = require('path');

/**
* @param {import('@babel/core').ConfigAPI} api
* @returns {import('@babel/core').TransformOptions}
*/
function babelConfig(api) {
const caller = api.caller((caller) =>
Expand Down Expand Up @@ -74,7 +75,7 @@ function babelConfig(api) {
: [
require.resolve('@babel/preset-env'),
{
useBuiltIns: 'usage',
useBuiltIns: 'entry',
loose: true,
corejs: { version: '3.6', proposals: true },
// Do not transform modules to CJS
Expand Down
16 changes: 11 additions & 5 deletions support/website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ module.exports = {
themeConfig: {
image:
'https://repository-images.githubusercontent.com/166780923/eb30b500-a97f-11ea-8508-32089c11e24c',
disableDarkMode: true,
colorMode: { disableSwitch: true },
navbar: {
logo: {
alt: 'Remirror Logo',
src: 'img/logo.svg',
},
links: [
items: [
{
to: 'docs/introduction',
activeBasePath: 'docs',
Expand Down Expand Up @@ -74,10 +74,17 @@ module.exports = {
label: 'GitHub',
href: 'https://github.com/remirror/remirror',
},
{
html: `
<a href="https://www.netlify.com" target="_blank" rel="noreferrer noopener" aria-label="Hosted with Netlify">
<img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" alt="Hosted with Netlify" />
</a>
`,
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} KickJump Ltd.`,
copyright: `Copyright © ${new Date().getFullYear()} KickJump Ltd. Built with Docusaurus`,
},
},
presets: [
Expand All @@ -86,9 +93,8 @@ module.exports = {
{
docs: {
path: '../../docs',
// It is recommended to set document id as docs home page (`docs/` path).
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/remirror/remirror/edit/next/docs/',
editUrl: 'https://github.com/remirror/remirror/edit/next/support/website/',
},
blog: {
showReadingTime: true,
Expand Down

0 comments on commit 5f847a9

Please sign in to comment.