-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from fabric-testbed/feature/mdx-copy
Feature/mdx copy
- Loading branch information
Showing
33 changed files
with
308 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build the project | ||
run: npm run build | ||
|
||
- name: Deploy to GitHub Pages | ||
if: github.ref == 'refs/heads/develop' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: dist | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
clean: true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
|
||
<title>FABRIC KNIT Workshop 404</title> | ||
|
||
<script> | ||
sessionStorage.redirect = location.href; | ||
</script> | ||
|
||
<meta http-equiv="refresh" content="0;URL='/knit-website'"></meta> | ||
</head> | ||
|
||
<body> | ||
<!-- The purpose of this file is only for deployment at gh pages. --> | ||
|
||
</body> | ||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import PropTypes from 'prop-types' | ||
import { Button as MUIButton} from '@mui/joy' | ||
import { Link } from '@components/link' | ||
|
||
export const Button = ({ linkto, children }) => { | ||
if (typeof children !== 'string') { | ||
return <MUIButton>{ children }</MUIButton> | ||
} | ||
if (!linkto) { | ||
return <MUIButton>{ children }</MUIButton> | ||
} | ||
|
||
return ( | ||
<MUIButton | ||
component={Link} | ||
to={ linkto } | ||
button | ||
size="lg" | ||
>{ children } | ||
</MUIButton> | ||
) | ||
} | ||
|
||
Button.propTypes = { | ||
linkto: PropTypes.string, | ||
children: PropTypes.node, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,7 @@ | ||
import ReactMarkdown from 'react-markdown' | ||
import remarkGfm from 'remark-gfm' | ||
import rehypeRaw from 'rehype-raw' | ||
|
||
import { hr } from './hr' | ||
import { a } from './link' | ||
import { ul, li } from './list' | ||
import { pre } from './pre' | ||
import { button } from './button' | ||
import * as typography from './typography' | ||
|
||
/* | ||
* this object defines a map, | ||
* DOM elements -> React components, | ||
* which allows us to map the HTML elements | ||
* that result from our Markdown content | ||
* to the React components used in the rest | ||
* of the application. | ||
*/ | ||
const componentMap = { | ||
a, | ||
hr, | ||
pre, | ||
ul, li, | ||
...typography, | ||
button, | ||
} | ||
|
||
export const Markdown = props => { | ||
return ( | ||
<ReactMarkdown | ||
{ ...props } | ||
components={ componentMap } | ||
remarkPlugins={ [remarkGfm] } | ||
rehypePlugins={ [rehypeRaw] } | ||
/> | ||
) | ||
} | ||
export * from "../button" | ||
export * from "./hr" | ||
export * from "./link" | ||
export * from "./list" | ||
export * from "./markdown" | ||
export * from "./pre" | ||
export * from "./typography" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import ReactMarkdown from 'react-markdown' | ||
import remarkGfm from 'remark-gfm' | ||
import rehypeRaw from 'rehype-raw' | ||
|
||
import { hr } from './hr' | ||
import { a } from './link' | ||
import { ul, ol, li } from './list' | ||
import { pre } from './pre' | ||
import { button } from '../button' | ||
import * as typography from './typography' | ||
|
||
/* | ||
* this object defines a map, | ||
* DOM elements -> React components, | ||
* which allows us to map the HTML elements | ||
* that result from our Markdown content | ||
* to the React components used in the rest | ||
* of the application. | ||
*/ | ||
export const componentMap = { | ||
a, | ||
hr, | ||
pre, | ||
ul, ol, li, | ||
...typography, | ||
} | ||
|
||
export const Markdown = props => { | ||
return ( | ||
<ReactMarkdown | ||
{ ...props } | ||
components={ componentMap } | ||
remarkPlugins={ [remarkGfm] } | ||
rehypePlugins={ [rehypeRaw] } | ||
/> | ||
) | ||
} |
Oops, something went wrong.