Skip to content

Commit

Permalink
chore: run pre-commit run --all-files
Browse files Browse the repository at this point in the history
Bring all files under `prettier`'s all-seeing eye
  • Loading branch information
andrew-scott-fischer committed Apr 1, 2024
1 parent 959b70a commit 5a2dd81
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-edit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
run-scan:
name: Trigger Renovate Scan
if:
${{ contains(github.event.pull_request.body, '[x] <!-- rebase-check -->')
&& github.event.pull_request.user.login == 'bitgo-renovate-bot[bot]' }}
${{ contains(github.event.pull_request.body, '[x] <!-- rebase-check -->') &&
github.event.pull_request.user.login == 'bitgo-renovate-bot[bot]' }}
runs-on: ubuntu-latest
steps:
- id: trigger-renovate-scan
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ type-checked and runtime-validated HTTP calls in a standardized manner.

## io-ts Compatibility

**api-ts** is built and tested against the stable channel of io-ts (v2.1).
**api-ts** is not currently compatible with the experimental channel of io-ts (v2.2).
**api-ts** is built and tested against the stable channel of io-ts (v2.1). **api-ts** is
not currently compatible with the experimental channel of io-ts (v2.2).

## Developing

Expand Down
22 changes: 8 additions & 14 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');

const theme = require("shiki/themes/nord.json")
const {
remarkCodeHike,
} = require("@code-hike/mdx")
const theme = require('shiki/themes/nord.json');
const { remarkCodeHike } = require('@code-hike/mdx');

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -38,31 +36,27 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
beforeDefaultRemarkPlugins: [
[remarkCodeHike, { theme }],
],
beforeDefaultRemarkPlugins: [[remarkCodeHike, { theme }]],
sidebarPath: require.resolve('./sidebars.js'),
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/BitGo/api-ts/tree/master/website/',
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website/',
},
blog: {
showReadingTime: true,
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/BitGo/api-ts/tree/master/website',
editUrl: 'https://github.com/BitGo/api-ts/tree/master/website',
},
theme: {
customCss: [
require.resolve("@code-hike/mdx/styles.css"),
require.resolve('@code-hike/mdx/styles.css'),
require.resolve('./src/css/custom.css'),
]
],
},
}),
],
],

themes: ["mdx-v2"],
themes: ['mdx-v2'],

themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
Expand Down
2 changes: 1 addition & 1 deletion website/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{type: 'autogenerated', dirName: '.'}],
tutorialSidebar: [{ type: 'autogenerated', dirName: '.' }],

// But you can create a sidebar manually
/*
Expand Down
14 changes: 7 additions & 7 deletions website/src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const FeatureList = [
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
Docusaurus was designed from the ground up to be easily installed and used to
get your website up and running quickly.
</>
),
},
Expand All @@ -18,8 +18,8 @@ const FeatureList = [
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go ahead
and move your docs into the <code>docs</code> directory.
</>
),
},
Expand All @@ -28,14 +28,14 @@ const FeatureList = [
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
Extend or customize your website layout by reusing React. Docusaurus can be
extended while reusing the same header and footer.
</>
),
},
];

function Feature({Svg, title, description}) {
function Feature({ Svg, title, description }) {
return (
<div className={clsx('col col--4')}>
<div className="text--center">
Expand Down
11 changes: 5 additions & 6 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
<Link className="button button--secondary button--lg" to="/docs/intro">
Docusaurus Tutorial - 5min ⏱️
</Link>
</div>
Expand All @@ -27,11 +25,12 @@ function HomepageHeader() {
}

export default function Home() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
description="Description will go into a meta tag in <head />"
>
<HomepageHeader />
<main>
<HomepageFeatures />
Expand Down

0 comments on commit 5a2dd81

Please sign in to comment.