diff --git a/.github/labeler.yml b/.github/labeler.yml index 4b743b0a..e8930e1b 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -15,10 +15,6 @@ typescript: 'tsconfig.json', ] -documentation: - - changed-files: - - any-glob-to-any-file: ['apps/documentation/**'] - 'CI/CD': - changed-files: - any-glob-to-any-file: ['.github/**'] diff --git a/.github/workflows/documentation-ci.yml b/.github/workflows/documentation-ci.yml deleted file mode 100644 index 6f3abd13..00000000 --- a/.github/workflows/documentation-ci.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Documentation Website CI - -on: - push: - branches: - - 'main' - # match - # - all files inside `apps/documentation` and `.github` - # - all files in the root expect `Cargo.toml` - paths: - - '.github/**' - - '*' - - '!Cargo.toml' - - 'apps/documentation/**' - pull_request: - # same as `on.push.paths` - paths: - - '.github/**' - - '*' - - '!Cargo.toml' - - 'apps/documentation/**' - -concurrency: - group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}' - cancel-in-progress: ${{ github.event_name == 'pull_request' }} - -jobs: - build: - name: Check build - runs-on: ubuntu-latest - timeout-minutes: 15 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install NodeJS Dependencies - uses: ./.github/actions/install-node-dependencies - - - name: Setup rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - # ⬇️ Keep in sync with `.github/workflows/deploy-documentation.yml` - - name: Read tuono version used by the documentation - id: get_tuono_version - run: | - VERSION=$(pnpm ls tuono --filter=documentation | grep "tuono " | sed -E 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/') - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Install tuono - run: cargo install tuono@${{ steps.get_tuono_version.outputs.version }} - # ⬆️ - - - name: Build project - working-directory: ./apps/documentation - run: tuono build --static - - code_check: - name: Check format, lint and types - runs-on: ubuntu-latest - timeout-minutes: 15 - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install NodeJS Dependencies - uses: ./.github/actions/install-node-dependencies - - - name: Check formatting - run: pnpm docs:format:check - - - name: Lint - run: pnpm docs:lint - - - name: Types - run: pnpm docs:types diff --git a/.github/workflows/documentation-deploy.yml b/.github/workflows/documentation-deploy.yml deleted file mode 100644 index 93701728..00000000 --- a/.github/workflows/documentation-deploy.yml +++ /dev/null @@ -1,55 +0,0 @@ -name: Documentation Website Deploy on AWS S3 - -on: - push: - branches: - - 'main' - paths: - - '.github/**' - - 'apps/documentation/**' - -jobs: - deploy-documentation: - name: Deploy - runs-on: ubuntu-latest - - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install NodeJS Dependencies - uses: ./.github/actions/install-node-dependencies - - - name: Setup rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - - # ⬇️ Keep in sync with `.github/workflows/ci-documentation.yml` - - name: Read tuono version used by the documentation - id: get_tuono_version - run: | - VERSION=$(pnpm ls tuono --filter=documentation | grep "tuono " | sed -E 's/.* ([0-9]+\.[0-9]+\.[0-9]+).*/\1/') - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Install tuono - run: cargo install tuono@${{ steps.get_tuono_version.outputs.version }} - # ⬆️ - - - name: Build project - working-directory: ./apps/documentation - run: tuono build --static - - - name: Deploy - uses: reggionick/s3-deploy@v4 - with: - folder: apps/documentation/out/static - bucket: tuono-documentation - bucket-region: eu-west-3 - dist-id: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} - invalidation: / - delete-removed: true - no-cache: true - private: true - files-to-include: '{.*/**,**}' diff --git a/.github/workflows/pr-title-checker.yml b/.github/workflows/pr-title-checker.yml index 635a5bb4..efd2edc4 100644 --- a/.github/workflows/pr-title-checker.yml +++ b/.github/workflows/pr-title-checker.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Check type id: type - # @warning Keep in sync with apps/documentation/src/routes/documentation/contributing/pull-requests.mdx + # @warning Keep in sync with https://github.com/tuono-labs/tuono-documentation/blob/main/src/routes/documentation/contributing/pull-requests.mdx run: | VALID_COMMIT_TYPES="chore|ci|docs|feat|fix|refactor|test" REGEX="^(${VALID_COMMIT_TYPES})(\(.*\))?!?: .*" diff --git a/Cargo.toml b/Cargo.toml index 8f28bde2..5b0d46ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,6 @@ members = [ "crates/tuono_lib_macros" ] exclude = [ - "apps/documentation", "examples/with-mdx", "examples/tuono-app", "examples/tuono-tutorial", diff --git a/apps/README.md b/apps/README.md deleted file mode 100644 index 33fd8bf7..00000000 --- a/apps/README.md +++ /dev/null @@ -1 +0,0 @@ -# Stadalone apps folder diff --git a/apps/documentation/.env.local b/apps/documentation/.env.local deleted file mode 100644 index d144ca46..00000000 --- a/apps/documentation/.env.local +++ /dev/null @@ -1,4 +0,0 @@ -VITE_PUBLIC_POSTHOG_KEY=phc_wqyze0qQlWutAwL5RL1Bv83D8bdySCkhcFw9MkTVuI8 -VITE_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com -VITE_ENV=development -VITE_ENABLE_POSTHOG=false diff --git a/apps/documentation/.env.production b/apps/documentation/.env.production deleted file mode 100644 index 306fd390..00000000 --- a/apps/documentation/.env.production +++ /dev/null @@ -1,4 +0,0 @@ -VITE_PUBLIC_POSTHOG_KEY=phc_wqyze0qQlWutAwL5RL1Bv83D8bdySCkhcFw9MkTVuI8 -VITE_PUBLIC_POSTHOG_HOST=https://eu.i.posthog.com -VITE_ENV=production -VITE_ENABLE_POSTHOG=true diff --git a/apps/documentation/.gitignore b/apps/documentation/.gitignore deleted file mode 100644 index 071acad0..00000000 --- a/apps/documentation/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -pnpm-debug.log* -lerna-debug.log* - -node_modules -.tuono -out -target diff --git a/apps/documentation/CONTRIBUTING.md b/apps/documentation/CONTRIBUTING.md deleted file mode 100644 index 0781f4ff..00000000 --- a/apps/documentation/CONTRIBUTING.md +++ /dev/null @@ -1,17 +0,0 @@ -# Documentation Contributing - -## Update `tuono` version in `apps/documentation` - -Update `tuono` version in the following files - -- `.github/workflows/ci-documentation.yml` -- `.github/workflows/deploy-documentation.yml` -- `apps/documentation/Cargo.toml` -- `apps/documentation/package.json` - -[Refer to this PR for additional information](https://github.com/tuono-labs/tuono/pull/236/files) - -In the future we might: - -- move the documentation in a separate repo -- make a script to perform this operation diff --git a/apps/documentation/Cargo.toml b/apps/documentation/Cargo.toml deleted file mode 100644 index 5fc15be8..00000000 --- a/apps/documentation/Cargo.toml +++ /dev/null @@ -1,14 +0,0 @@ -[package] -name = "tuono" -version = "0.0.1" -edition = "2021" - -[[bin]] -name = "tuono" -path = ".tuono/main.rs" - -[dependencies] -tuono_lib = "0.17.7" -glob = "0.3.1" -time = { version = "0.3", features = ["macros"] } -serde = { version = "1.0.202", features = ["derive"] } diff --git a/apps/documentation/package.json b/apps/documentation/package.json deleted file mode 100644 index 0fcd7149..00000000 --- a/apps/documentation/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "documentation", - "description": "The react/rust fullstack framework documentation", - "version": "0.0.1", - "private": true, - "type": "module", - "scripts": { - "lint": "eslint .", - "format": "prettier --write --ignore-unknown .", - "format:check": "prettier --check --ignore-unknown .", - "types": "tsc --noEmit" - }, - "dependencies": { - "@mantine/code-highlight": "7.16.1", - "@mantine/core": "7.16.1", - "@mantine/hooks": "7.16.1", - "@mdx-js/react": "3.1.0", - "@tabler/icons-react": "3.28.1", - "clsx": "2.1.1", - "posthog-js": "^1.215.5", - "react": "19.0.0", - "react-dom": "19.0.0", - "remark-gfm": "4.0.0", - "tuono": "npm:tuono@0.17.7" - }, - "devDependencies": { - "@mdx-js/rollup": "3.1.0", - "@types/react": "19.0.8", - "@types/react-dom": "19.0.3", - "postcss": "8.5.1", - "postcss-preset-mantine": "1.17.0", - "postcss-simple-vars": "7.0.1" - } -} diff --git a/apps/documentation/postcss.config.js b/apps/documentation/postcss.config.js deleted file mode 100644 index 5ada75c1..00000000 --- a/apps/documentation/postcss.config.js +++ /dev/null @@ -1,14 +0,0 @@ -export default { - plugins: { - 'postcss-preset-mantine': {}, - 'postcss-simple-vars': { - variables: { - 'mantine-breakpoint-xs': '36em', - 'mantine-breakpoint-sm': '48em', - 'mantine-breakpoint-md': '62em', - 'mantine-breakpoint-lg': '75em', - 'mantine-breakpoint-xl': '88em', - }, - }, - }, -} diff --git a/apps/documentation/public/Menlo-Regular.ttf b/apps/documentation/public/Menlo-Regular.ttf deleted file mode 100644 index 033dc6d2..00000000 Binary files a/apps/documentation/public/Menlo-Regular.ttf and /dev/null differ diff --git a/apps/documentation/public/android-chrome-192x192.png b/apps/documentation/public/android-chrome-192x192.png deleted file mode 100644 index 4590590c..00000000 Binary files a/apps/documentation/public/android-chrome-192x192.png and /dev/null differ diff --git a/apps/documentation/public/android-chrome-512x512.png b/apps/documentation/public/android-chrome-512x512.png deleted file mode 100644 index 73739015..00000000 Binary files a/apps/documentation/public/android-chrome-512x512.png and /dev/null differ diff --git a/apps/documentation/public/apple-touch-icon.png b/apps/documentation/public/apple-touch-icon.png deleted file mode 100644 index 7a03e68e..00000000 Binary files a/apps/documentation/public/apple-touch-icon.png and /dev/null differ diff --git a/apps/documentation/public/favicon-16x16.png b/apps/documentation/public/favicon-16x16.png deleted file mode 100644 index 6238a0ab..00000000 Binary files a/apps/documentation/public/favicon-16x16.png and /dev/null differ diff --git a/apps/documentation/public/favicon-32x32.png b/apps/documentation/public/favicon-32x32.png deleted file mode 100644 index 651a46db..00000000 Binary files a/apps/documentation/public/favicon-32x32.png and /dev/null differ diff --git a/apps/documentation/public/favicon.ico b/apps/documentation/public/favicon.ico deleted file mode 100644 index 47bced85..00000000 Binary files a/apps/documentation/public/favicon.ico and /dev/null differ diff --git a/apps/documentation/public/logo.svg b/apps/documentation/public/logo.svg deleted file mode 100644 index 02c50fc1..00000000 --- a/apps/documentation/public/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/documentation/public/og-cover.png b/apps/documentation/public/og-cover.png deleted file mode 100644 index 5a49dd56..00000000 Binary files a/apps/documentation/public/og-cover.png and /dev/null differ diff --git a/apps/documentation/public/polyfill-db.json b/apps/documentation/public/polyfill-db.json deleted file mode 100644 index 1d10c81a..00000000 --- a/apps/documentation/public/polyfill-db.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "polyfills": [ - { - "identifier": "HTMLElement", - "import": { - "package": "@lit-labs/ssr-dom-shim", - "name": "HTMLElement" - } - }, - { - "identifier": "customElements", - "import": { - "package": "@lit-labs/ssr-dom-shim", - "name": "customElements" - } - } - ] -} diff --git a/apps/documentation/public/site.webmanifest b/apps/documentation/public/site.webmanifest deleted file mode 100644 index fa99de77..00000000 --- a/apps/documentation/public/site.webmanifest +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" -} diff --git a/apps/documentation/src/components/App/App.tsx b/apps/documentation/src/components/App/App.tsx deleted file mode 100644 index ec42ed2e..00000000 --- a/apps/documentation/src/components/App/App.tsx +++ /dev/null @@ -1,118 +0,0 @@ -import type { ReactNode, JSX } from 'react' - -import { createTheme, MantineProvider, AppShell } from '@mantine/core' - -import type { CSSVariablesResolver } from '@mantine/core' -import { useDisclosure } from '@mantine/hooks' - -import PageWithTOC from '@/components/PageWithTOC' -import Navbar from '@/components/Navbar' -import Sidebar from '@/components/Sidebar' -import MdxProvider from '@/components/MdxProvider' - -import '@mantine/core/styles.css' -import '@mantine/code-highlight/styles.css' -import Footer from '@/components/Footer' - -interface RootRouteProps { - children: ReactNode -} - -const theme = createTheme({ - primaryColor: 'violet', - primaryShade: { light: 6, dark: 9 }, - fontFamily: 'Inter', - fontFamilyMonospace: 'Menlo', - respectReducedMotion: true, - radius: { - xs: '4px', - sm: '4px', - lg: '8px', - xl: '8px', - md: '8px', - }, - fontSizes: { - // 'xs' | 'sm' | 'md' | 'lg' | 'xl' - xs: '14px', - sm: '14px', - }, - colors: { - dark: [ - '#d5d7e0', - '#acaebf', - '#8c8fa3', - '#666980', - '#4d4f66', - '#34354a', - '#2b2c3d', - '#1d1e30', - '#0c0d21', - '#01010a', - ], - }, - headings: { - sizes: { - h1: { - fontSize: '48px', - }, - }, - }, - other: { - sidebarGrayLight: '#495057', - sidebarGrayDark: '#adb5bd', - sidebarTextHoverLight: '#212529', - sidebarTextHoverDark: '#f8f9fa', - }, -}) - -const resolver: CSSVariablesResolver = (th) => { - const { - sidebarGrayLight, - sidebarTextHoverLight, - sidebarGrayDark, - sidebarTextHoverDark, - } = th.other as Record - - return { - variables: {}, - light: { - '--mantine-color-footer-bg': th.colors.gray[1], - '--mantine-color-sidebar-gray': sidebarGrayLight, - '--mantine-color-sidebar-text-hover': sidebarTextHoverLight, - '--mantine-color-quote-border': th.colors.violet[1], - }, - dark: { - '--mantine-color-footer-bg': th.colors.dark[6], - '--mantine-color-sidebar-gray': sidebarGrayDark, - '--mantine-color-sidebar-text-hover': sidebarTextHoverDark, - '--mantine-color-quote-border': th.colors.violet[9], - }, - } -} - -export default function App({ children }: RootRouteProps): JSX.Element { - const [opened, { toggle }] = useDisclosure() - - return ( - - - - - - - {children} - - -