Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Mar 10, 2024
1 parent a2133ff commit 359d640
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,10 @@ jobs:
- name: Build
run: |
yarn build
deploy:
name: Deployment demo on gh-pages
runs-on: ubuntu-latest
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
# deploy build to gh-pages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.9
with:
branch: gh-pages
folder: out
6 changes: 4 additions & 2 deletions mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
const headers = head.props.children.props.children.map(
(child: any) => child.props.children
);
const data = body.props.children.map((row) =>
row.props.children.map((cell) => cell.props.children)
const data = body.props.children.map((row: any) =>
row.props.children.map((cell: any) => cell.props.children)
);
return <Table headers={headers} data={data} />;
}
Expand All @@ -42,8 +42,10 @@ export function useMDXComponents(components: MDXComponents): MDXComponents {
props.href &&
(props.href?.startsWith("http") || props.href?.startsWith("//"))
) {
//@ts-ignore
return <Link {...props} target="_blank" rel="noopener noreferrer" />;
}
//@ts-ignore
return <Link {...props} />;
},
blockquote: (props) => {
Expand Down
1 change: 1 addition & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ function App({ Component, pageProps }: AppProps) {
}}
>
<Layout>
{/*@ts-ignore*/}
<Component {...pageProps} />
</Layout>
</div>
Expand Down

0 comments on commit 359d640

Please sign in to comment.