Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions .claude/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "diskern-site",
"runtimeExecutable": "npm",
"runtimeArgs": ["--prefix", "site", "run", "dev"],
"port": 5173
}
]
}
57 changes: 57 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy site to GitHub Pages

on:
push:
branches: [main]
paths: ["site/**", ".github/workflows/deploy-pages.yml"]
workflow_dispatch: {}

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: site/package-lock.json

- run: npm ci
working-directory: site

- run: npm run build
working-directory: site

# GitHub Pages has no server-side routing: a direct visit to
# /diskern/docs would 404 before React Router ever loads. Serving
# the same SPA shell as the 404 page lets the client-side router
# take over once the JS boots, so deep links and refreshes on
# future pages (e.g. /docs, /changelog) work.
- name: Add SPA fallback for client-side routing
run: cp dist/index.html dist/404.html
working-directory: site

- uses: actions/upload-pages-artifact@v3
with:
path: site/dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
Binary file modified app/src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/128x128@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square107x107Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square142x142Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square284x284Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square30x30Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square310x310Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square71x71Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/Square89x89Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png
Binary file modified app/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png
Binary file modified app/src-tauri/icons/icon.icns
Binary file not shown.
Binary file modified app/src-tauri/icons/icon.ico
Binary file not shown.
Binary file modified app/src-tauri/icons/icon.png
Binary file modified app/src-tauri/icons/ios/AppIcon-20x20@1x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-20x20@2x-1.png
Binary file modified app/src-tauri/icons/ios/AppIcon-20x20@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-20x20@3x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-29x29@1x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-29x29@2x-1.png
Binary file modified app/src-tauri/icons/ios/AppIcon-29x29@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-29x29@3x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-40x40@1x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-40x40@2x-1.png
Binary file modified app/src-tauri/icons/ios/AppIcon-40x40@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-40x40@3x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-512@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-60x60@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-60x60@3x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-76x76@1x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-76x76@2x.png
Binary file modified app/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png
Binary file removed app/src/img/deskearn.png
Diff not rendered.
24 changes: 24 additions & 0 deletions site/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
8 changes: 8 additions & 0 deletions site/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "oxc"],
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }]
}
}
28 changes: 28 additions & 0 deletions site/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# diskern-site

Marketing/landing page for [Diskern](https://github.com/Coding-Moves/diskern), deployed to GitHub Pages.

## Develop

```sh
npm install
npm run dev
```

## Build

```sh
npm run build # outputs to dist/
npm run preview # serve the production build locally
```

## Deploy

Pushing to `main` with changes under `site/` triggers
`.github/workflows/deploy-pages.yml`, which builds this project and
publishes `dist/` to GitHub Pages. See the root `docs/` for more.

The Vite `base` in `vite.config.js` is set to `/diskern/` to match this
repo's GitHub Pages URL (`coding-moves.github.io/diskern/` or your
configured custom domain). If the repo is ever renamed, update `base`
to match.
17 changes: 17 additions & 0 deletions site/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Diskern is an open-source disk analyzer built in Rust. Understand your disk before you clean it."
/>
<title>Diskern — Understand your disk before you clean it</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading
Loading