Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4bb51da
fix(discovery): register missing language, fix husky error
stibel Oct 29, 2025
75c35f9
fixup! fix(discovery): register missing language, fix husky error
stibel Oct 29, 2025
c983ac5
fix(website): remove build errors
stibel Oct 30, 2025
a24064a
fix(website): fix errors on different routes
stibel Oct 30, 2025
7d8b428
fix(website): fix active links by making routes exact
stibel Oct 30, 2025
4af46b5
fixup! fix(website): fix errors on different routes
stibel Oct 31, 2025
2d190cc
fix(ui): correct mobile display, hide sidebar button on desktops
stibel Nov 3, 2025
dac60bd
chore(yarn): update lockfile
stibel Nov 5, 2025
ff0581c
chore(website): add missing mdx file, update gitignore
stibel Nov 6, 2025
7372ff7
fix(benchmarking): start up benchmarking app
stibel Nov 7, 2025
2b7d25b
feat(benchmarking): add css and progress indicator
stibel Nov 7, 2025
4751ce9
feat(benchmarking): add CSS to rendered HTML
stibel Nov 10, 2025
c2d634e
feat(website): make website work with Node v22
stibel Nov 10, 2025
c6dbba5
chore(general): remove bun artifacts
stibel Nov 10, 2025
e1ba445
chore(husky): remove deprecated lines from husky
stibel Nov 10, 2025
aea84b3
fix(packages): install missing packages, restore @jsamr packages
stibel Nov 13, 2025
ab1eb3b
refactor(general): clean up code
stibel Nov 14, 2025
828d7b7
fix(doc-tools): fix build errors
wjkg Nov 12, 2025
89025df
fix(doc-tools): fix type and linter errors in @doc/mdx-gen-cli
wjkg Nov 13, 2025
1a92793
fix(website): fix build-docs and docusaurus build errors
wjkg Nov 14, 2025
f9e66ad
fix: clear linter error
wjkg Nov 17, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit "$1"

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.9.0
22
223 changes: 215 additions & 8 deletions apps/benchmarking/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { StyleSheet } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context';
import { useKeepAwake } from 'expo-keep-awake';
import html from './source';
Expand All @@ -14,19 +15,225 @@ const config = {
ignoredTags: ['svg', 'button', 'input', 'form', 'img', 'ol', 'table']
};

const props = {
renderers: {}
};

export default function App() {
useKeepAwake();
return (
<SafeAreaView style={{ flexGrow: 1 }}>
<TRenderEngineProvider ignoredDomTags={config.ignoredTags}>
<RenderHTMLConfigProvider {...props}>
<Benchmark html={html} {...config} />
<SafeAreaView style={styles.container}>
<TRenderEngineProvider
ignoredDomTags={config.ignoredTags}
baseStyle={props.baseStyle}
tagsStyles={props.tagsStyles}
classesStyles={props.classesStyles}>
<RenderHTMLConfigProvider renderers={props.renderers}>
<Benchmark
html={html}
samples={config.samples}
tagsStyles={props.tagsStyles}
classesStyles={props.classesStyles}
/>
</RenderHTMLConfigProvider>
</TRenderEngineProvider>
</SafeAreaView>
);
}

const styles = StyleSheet.create({
container: {
padding: 16,
flex: 1,
backgroundColor: '#fff'
},
baseStyle: {
fontSize: 16,
color: '#000000'
},
body: {
fontSize: 16,
lineHeight: 24,
color: '#000000',
backgroundColor: '#ffffff'
},
h1: {
fontSize: 32,
fontWeight: 'bold',
marginVertical: 16,
color: '#20232a'
},
h2: {
fontSize: 24,
fontWeight: 'bold',
marginVertical: 14,
color: '#20232a'
},
h3: {
fontSize: 20,
fontWeight: 'bold',
marginVertical: 12,
color: '#20232a'
},
p: {
marginVertical: 8,
fontSize: 16,
lineHeight: 24
},
a: {
color: '#61dafb',
textDecorationLine: 'underline'
},
code: {
backgroundColor: '#f5f5f5',
fontFamily: 'monospace',
padding: 2,
borderRadius: 3
},
pre: {
backgroundColor: '#282c34',
padding: 16,
borderRadius: 8,
marginVertical: 12
},
ul: {
marginVertical: 8,
paddingLeft: 20
},
ol: {
marginVertical: 8,
paddingLeft: 20
},
li: {
marginVertical: 4
},
blockquote: {
borderLeftWidth: 4,
borderLeftColor: '#61dafb',
paddingLeft: 16,
marginVertical: 12,
fontStyle: 'italic'
},
table: {
marginVertical: 12
},
th: {
fontWeight: 'bold',
padding: 8,
backgroundColor: '#f5f5f5'
},
td: {
padding: 8
},
navbar: {
backgroundColor: '#20232a',
padding: 12
},
navbarBrand: {
fontSize: 18,
fontWeight: 'bold',
color: '#61dafb'
},
navbarTitle: {
fontSize: 18,
fontWeight: 'bold',
color: '#ffffff'
},
navbarLink: {
color: '#ffffff',
marginHorizontal: 8
},
menuLink: {
color: '#20232a',
padding: 8
},
menuLinkActive: {
color: '#61dafb',
fontWeight: 'bold'
},
docTitle1vX4: {
fontSize: 28,
fontWeight: 'bold',
marginVertical: 16
},
markdown: {
fontSize: 16,
lineHeight: 24
},
badge: {
fontSize: 12,
paddingHorizontal: 8,
paddingVertical: 4,
borderRadius: 12,
backgroundColor: '#e3f2fd',
color: '#1976d2'
},
button: {
backgroundColor: '#61dafb',
padding: 12,
borderRadius: 6,
color: '#20232a'
},
footer: {
backgroundColor: '#20232a',
padding: 24,
marginTop: 32
},
footerTitle: {
fontSize: 16,
fontWeight: 'bold',
color: '#ffffff',
marginBottom: 8
},
footerLinkItem: {
color: '#61dafb',
marginVertical: 4
},
tabs: {
marginVertical: 12
},
tabsItem: {
padding: 12,
backgroundColor: '#f5f5f5'
},
tabsItemActive: {
backgroundColor: '#61dafb',
color: '#ffffff'
}
});

const props = {
renderers: {},
baseStyle: styles.baseStyle,
tagsStyles: {
body: styles.body,
h1: styles.h1,
h2: styles.h2,
h3: styles.h3,
p: styles.p,
a: styles.a,
code: styles.code,
pre: styles.pre,
ul: styles.ul,
ol: styles.ol,
li: styles.li,
blockquote: styles.blockquote,
table: styles.table,
th: styles.th,
td: styles.td
},
classesStyles: {
navbar: styles.navbar,
navbar__brand: styles.navbarBrand,
navbar__title: styles.navbarTitle,
navbar__link: styles.navbarLink,
menu__link: styles.menuLink,
'menu__link--active': styles.menuLinkActive,
docTitle_1vX4: styles.docTitle1vX4,
markdown: styles.markdown,
badge: styles.badge,
button: styles.button,
footer: styles.footer,
footer__title: styles.footerTitle,
'footer__link-item': styles.footerLinkItem,
tabs: styles.tabs,
tabs__item: styles.tabsItem,
'tabs__item--active': styles.tabsItemActive
}
};
Loading