Skip to content

Commit

Permalink
Studio debounce (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
alec-chernicki authored Dec 27, 2023
1 parent 1c5ebea commit 1700c9e
Show file tree
Hide file tree
Showing 72 changed files with 2,233 additions and 732 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
21 changes: 21 additions & 0 deletions apps/documentation/components/disallowed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions apps/documentation/components/subtext.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
export function Subtext({
children,
requirementLevel = 'optional',
}: {
children?: React.ReactNode;
requirementLevel?: 'optional' | 'required';
}) {
return (
<div className="flex flex-col gap-2 pt-2">
<span className="uppercase nx-text-primary-600 text-xs font-medium">
{requirementLevel}
</span>
<span className="font-medium">{children}</span>
</div>
);
}
34 changes: 0 additions & 34 deletions apps/documentation/logo.tsx

This file was deleted.

5 changes: 4 additions & 1 deletion apps/documentation/next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const withNextra = require('nextra')({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.tsx',
transpilePackages: ['@commonalityco/ui-design-system'],
transpilePackages: [
'@commonalityco/ui-design-system',
'@commonalityco/ui-core',
],
});

module.exports = withNextra();
8 changes: 6 additions & 2 deletions apps/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,21 @@
},
"homepage": "https://github.com/shuding/nextra-docs-template#readme",
"dependencies": {
"@commonalityco/ui-core": "workspace:*",
"@commonalityco/ui-design-system": "workspace:*",
"next": "^13.0.6",
"next": "^14.0.4",
"nextra": "latest",
"nextra-theme-docs": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.3.3"
"sharp": "^0.33.1"
},
"devDependencies": {
"@commonalityco/config-tailwind": "workspace:*",
"@types/node": "18.11.10",
"autoprefixer": "^10.4.16",
"postcss": "^8.4.30",
"tailwindcss": "^3.4.0",
"typescript": "^4.9.3"
}
}
23 changes: 23 additions & 0 deletions apps/documentation/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import './globals.css';
import type { AppProps } from 'next/app';
import { Inter, Fira_Code } from 'next/font/google';

export const inter = Inter({
subsets: ['latin'],
variable: '--font-inter',
});

export const firaCode = Fira_Code({
subsets: ['latin'],
variable: '--font-fira-code',
});

export default function MyApp({ Component, pageProps }: AppProps) {
return (
<div
className={`${inter.className} ${firaCode.variable} ${inter.variable}`}
>
<Component {...pageProps} />
</div>
);
}
18 changes: 5 additions & 13 deletions apps/documentation/pages/_meta.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
{
"index": "Overview",
"installation": "Installation",
"getting-started": "Getting Started",
"checks": "Checks",
"constraints": "Constraints",
"reference": "API Reference",
"about": {
"title": "About",
"index": {
"title": "Home",
"type": "page"
},
"contact": {
"title": "Contact ↗",
"type": "page",
"href": "https://twitter.com/shuding_",
"newWindow": true
"docs": {
"title": "Documentation",
"type": "page"
}
}
3 changes: 0 additions & 3 deletions apps/documentation/pages/about.mdx

This file was deleted.

5 changes: 0 additions & 5 deletions apps/documentation/pages/checks.mdx

This file was deleted.

6 changes: 0 additions & 6 deletions apps/documentation/pages/checks/_meta.json

This file was deleted.

Empty file.
28 changes: 0 additions & 28 deletions apps/documentation/pages/checks/sharing-checks.mdx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/documentation/pages/constraints.mdx

This file was deleted.

25 changes: 25 additions & 0 deletions apps/documentation/pages/docs/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"-- Getting Started": {
"type": "separator",
"title": "Getting Started"
},
"overview": "",
"installation": "",
"getting-started": "Getting Started",

"-- Guides": {
"type": "separator",
"title": "Guides"
},
"checks": "Checks",
"constraints": "Constraints",
"codeowners": "",
"sharing": "",
"ci": "CI",

"-- Reference": {
"type": "separator",
"title": "Reference"
},
"api": "API"
}
Loading

0 comments on commit 1700c9e

Please sign in to comment.