diff --git a/docs/.prettierignore b/docs/.prettierignore
new file mode 100644
index 0000000..d68e236
--- /dev/null
+++ b/docs/.prettierignore
@@ -0,0 +1,2 @@
+.next
+.node_modules
\ No newline at end of file
diff --git a/docs/.prettierrc b/docs/.prettierrc
deleted file mode 100644
index b4bfed3..0000000
--- a/docs/.prettierrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "plugins": ["prettier-plugin-tailwindcss"]
-}
diff --git a/docs/.tool-versions b/docs/.tool-versions
deleted file mode 100644
index b8c6605..0000000
--- a/docs/.tool-versions
+++ /dev/null
@@ -1 +0,0 @@
-nodejs 22.8.0
diff --git a/docs/README.md b/docs/README.md
index 238ef77..6ef21a1 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -1 +1,37 @@
-This is where Cup's documentation lives. It's created with [Nextra](https://nextra.site).
+# Cup Documentation
+
+## Architecture
+
+The docs are built with [Nextra](https://nextra.site). We use [Bun](https://bun.sh) as a package manager and Node.js as a runtime (Next.js and Bun don't play well together at the moment). Docs pages are written in [MDX](https://mdxjs.com) and any custom components are written in TypeScript with TSX.
+
+## Development
+
+Prerequisites:
+
+- A recent Node.js version (22 recommended)
+- [Bun](https://bun.sh)
+
+```bash
+git clone https://github.com/sergi0g/cup
+cd cup/docs
+bun install
+```
+
+You're ready to go!
+
+## Scripts
+
+The available scripts are:
+
+- `bun dev` starts the development server. Note that making changes to MDX pages will probably require a full reload.
+- `bun run build` creates a static production build, ready to be deployed.
+- `bun lint` checks for errors in your code.
+- `bun fmt` formats your code with Prettier, so it becomes... prettier.
+
+## Contributing
+
+Our documentation is always evolving, so, we constantly need to update this repository with new guides and configuration options. If you have any ideas of a guide or suggestions on how to improve them, feel free to open a pull request or create an issue. All contributions are welcome!
+
+## License
+
+The documentation is licensed under the MIT License. TL;DR — You are free to use, copy, modify, merge, publish, distribute, sublicense, and sell copies of the software. However, the software is provided "as is," without warranty of any kind. You must include the original license in all copies or substantial portions of the software.
diff --git a/docs/assets/blue_theme.png b/docs/assets/blue_theme.png
deleted file mode 100644
index 7b327bc..0000000
Binary files a/docs/assets/blue_theme.png and /dev/null differ
diff --git a/docs/assets/gray_theme.png b/docs/assets/gray_theme.png
deleted file mode 100644
index 598c3b2..0000000
Binary files a/docs/assets/gray_theme.png and /dev/null differ
diff --git a/docs/assets/screenshot_light.png b/docs/assets/screenshot_light.png
deleted file mode 100644
index c5c3ae2..0000000
Binary files a/docs/assets/screenshot_light.png and /dev/null differ
diff --git a/docs/bun.lockb b/docs/bun.lockb
new file mode 100755
index 0000000..f2eee43
Binary files /dev/null and b/docs/bun.lockb differ
diff --git a/docs/components/Step.tsx b/docs/components/Step.tsx
deleted file mode 100644
index b177046..0000000
--- a/docs/components/Step.tsx
+++ /dev/null
@@ -1,23 +0,0 @@
-import React, { ReactNode } from "react";
-
-export function Step({
- children,
- title,
- number,
-}: {
- children: ReactNode;
- title: string;
- number: number;
-}) {
- return (
-
- Cup is a small utility with a big impact. Simplify your
- container management workflow with fast and efficient update
- checking, a full-featured CLI and web inteface, and more.
-
+ );
+}
diff --git a/docs/components/GradientText.tsx b/docs/src/app/components/GradientText.tsx
similarity index 85%
rename from docs/components/GradientText.tsx
rename to docs/src/app/components/GradientText.tsx
index b54662c..74c83c5 100644
--- a/docs/components/GradientText.tsx
+++ b/docs/src/app/components/GradientText.tsx
@@ -14,7 +14,9 @@ export function GradientText({
}) {
return (
-
+
{text}
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/docs/src/app/components/Logo.tsx b/docs/src/app/components/Logo.tsx
new file mode 100644
index 0000000..3e733e0
--- /dev/null
+++ b/docs/src/app/components/Logo.tsx
@@ -0,0 +1,57 @@
+export default function Logo() {
+ return (
+
+ );
+}
diff --git a/docs/components/Section.tsx b/docs/src/app/components/Section.tsx
similarity index 83%
rename from docs/components/Section.tsx
rename to docs/src/app/components/Section.tsx
index 084c4a8..95bfd64 100644
--- a/docs/components/Section.tsx
+++ b/docs/src/app/components/Section.tsx
@@ -11,7 +11,7 @@ export function Section({
children: ReactNode;
}) {
return (
-
+
+
+
+
+
+
+
+ The easiest way to manage your
+
+
+
+ Cup is a small utility with a big impact. Simplify your
+ container management workflow with fast and efficient update
+ checking, a full-featured CLI and web inteface, and more.
+
+
+
+
+ );
+}
diff --git a/docs/pages/index.mdx b/docs/src/app/page.mdx
similarity index 75%
rename from docs/pages/index.mdx
rename to docs/src/app/page.mdx
index aaaa6d9..3a2e24c 100644
--- a/docs/pages/index.mdx
+++ b/docs/src/app/page.mdx
@@ -3,6 +3,6 @@ title: Cup - The easiest way to manage your container updates
description: Simple, fast, efficient Docker image update checking
---
-import { Home } from "../components/pages/Home";
+import Home from "@/app/components/pages/home";
diff --git a/docs/src/content/_meta.ts b/docs/src/content/_meta.ts
new file mode 100644
index 0000000..5a8f226
--- /dev/null
+++ b/docs/src/content/_meta.ts
@@ -0,0 +1,17 @@
+export default {
+ index: {
+ theme: {
+ sidebar: false,
+ toc: false,
+ breadcrumb: false,
+ pagination: false,
+ timestamp: false,
+ layout: "full",
+ },
+ display: "hidden",
+ },
+ docs: {
+ type: "page",
+ title: "Documentation",
+ },
+};
diff --git a/docs/src/content/docs/_meta.ts b/docs/src/content/docs/_meta.ts
new file mode 100644
index 0000000..7bafd3a
--- /dev/null
+++ b/docs/src/content/docs/_meta.ts
@@ -0,0 +1,5 @@
+export default {
+ installation: {},
+ usage: {},
+ configuration: {},
+};
diff --git a/docs/pages/docs/community-resources/docker-compose.mdx b/docs/src/content/docs/community-resources/docker-compose.mdx
similarity index 100%
rename from docs/pages/docs/community-resources/docker-compose.mdx
rename to docs/src/content/docs/community-resources/docker-compose.mdx
diff --git a/docs/pages/docs/community-resources/homepage-widget.mdx b/docs/src/content/docs/community-resources/homepage-widget.mdx
similarity index 91%
rename from docs/pages/docs/community-resources/homepage-widget.mdx
rename to docs/src/content/docs/community-resources/homepage-widget.mdx
index 5fb9033..cf7ed88 100644
--- a/docs/pages/docs/community-resources/homepage-widget.mdx
+++ b/docs/src/content/docs/community-resources/homepage-widget.mdx
@@ -1,6 +1,6 @@
import Image from "next/image";
-import widget1 from "../../../assets/350767810-42eccc89-bdfd-426a-a113-653abe7483d8.png";
-import widget2 from "../../../assets/358304960-e9f26767-51f7-4b5a-8b74-a5811019497b.jpeg";
+import widget1 from "@/app/assets/350767810-42eccc89-bdfd-426a-a113-653abe7483d8.png";
+import widget2 from "@/app/assets/358304960-e9f26767-51f7-4b5a-8b74-a5811019497b.jpeg";
# Homepage Widget
diff --git a/docs/pages/docs/configuration/authentication.mdx b/docs/src/content/docs/configuration/authentication.mdx
similarity index 92%
rename from docs/pages/docs/configuration/authentication.mdx
rename to docs/src/content/docs/configuration/authentication.mdx
index 7e091cf..a8001ca 100644
--- a/docs/pages/docs/configuration/authentication.mdx
+++ b/docs/src/content/docs/configuration/authentication.mdx
@@ -1,4 +1,4 @@
-import { Callout } from "nextra-theme-docs";
+import { Callout } from "nextra/components";
# Authentication
diff --git a/docs/pages/docs/configuration.mdx b/docs/src/content/docs/configuration/index.mdx
similarity index 81%
rename from docs/pages/docs/configuration.mdx
rename to docs/src/content/docs/configuration/index.mdx
index 3bbcd7f..b771ca5 100644
--- a/docs/pages/docs/configuration.mdx
+++ b/docs/src/content/docs/configuration/index.mdx
@@ -1,4 +1,8 @@
-import { Steps, Callout, Card, Cards } from "nextra-theme-docs";
+---
+asIndexPage: true
+---
+
+import { Steps, Callout, Cards } from "nextra/components";
import {
IconPaint,
IconLockOpen,
@@ -14,13 +18,13 @@ Sometimes, there may be a need to specify a custom docker socket. Cup provides t
For example, if using Podman, you might do
-```
+```bash
$ cup -s /run/user/1000/podman/podman.sock check
```
This option is also available in the configuration file and it's best to put it there.
-}
title="Custom Docker socket"
href="/docs/configuration/socket"
@@ -40,17 +44,21 @@ If you're running with Docker, you can create a `cup.json` in the directory you'
Follow the guides below to customize your `cup.json`
- }
title="Authentication"
href="/docs/configuration/authentication"
/>
- }
title="Insecure registries"
href="/docs/configuration/insecure-registries"
/>
- } title="Theme" href="/docs/configuration/theme" />
+ }
+ title="Theme"
+ href="/docs/configuration/theme"
+ />
Here's a full example:
@@ -67,8 +75,10 @@ Here's a full example:
```
-If you want autocompletions and error checking for your editor, there is a JSON schema available.
-Use it by adding a `"$schema": "https://raw.githubusercontent.com/sergi0g/cup/main/cup.schema.json"` entry in your `cup.json` file.
+ If you want autocompletions and error checking for your editor, there is a
+ JSON schema available. Use it by adding a `"$schema":
+ "https://raw.githubusercontent.com/sergi0g/cup/main/cup.schema.json"` entry in
+ your `cup.json` file.
### Run Cup with the new configuration file
diff --git a/docs/pages/docs/configuration/insecure-registries.mdx b/docs/src/content/docs/configuration/insecure-registries.mdx
similarity index 87%
rename from docs/pages/docs/configuration/insecure-registries.mdx
rename to docs/src/content/docs/configuration/insecure-registries.mdx
index bcc9197..6646df7 100644
--- a/docs/pages/docs/configuration/insecure-registries.mdx
+++ b/docs/src/content/docs/configuration/insecure-registries.mdx
@@ -1,4 +1,4 @@
-import { Callout } from "nextra-theme-docs";
+import { Callout } from "nextra/components";
# Insecure registries
@@ -27,6 +27,6 @@ Here's what it looks like:
When configuring an insecure registry that doesn't run on port 80, don't
- forget to specify the port (i.e. use `localhost:5000` instead of `localhost` if your
- registry is running on port `5000`)
+ forget to specify the port (i.e. use `localhost:5000` instead of `localhost`
+ if your registry is running on port `5000`)
diff --git a/docs/pages/docs/configuration/socket.mdx b/docs/src/content/docs/configuration/socket.mdx
similarity index 99%
rename from docs/pages/docs/configuration/socket.mdx
rename to docs/src/content/docs/configuration/socket.mdx
index 66e83da..f235075 100644
--- a/docs/pages/docs/configuration/socket.mdx
+++ b/docs/src/content/docs/configuration/socket.mdx
@@ -16,4 +16,4 @@ You can also specify a TCP socket if you're using a remote Docker host or a [pro
"socket": "tcp://localhost:2375"
// Other options
}
-```
\ No newline at end of file
+```
diff --git a/docs/pages/docs/configuration/theme.mdx b/docs/src/content/docs/configuration/theme.mdx
similarity index 68%
rename from docs/pages/docs/configuration/theme.mdx
rename to docs/src/content/docs/configuration/theme.mdx
index 167f742..bbcfde0 100644
--- a/docs/pages/docs/configuration/theme.mdx
+++ b/docs/src/content/docs/configuration/theme.mdx
@@ -1,8 +1,8 @@
-import { Callout } from "nextra-theme-docs";
+import { Callout } from "nextra/components";
import Image from "next/image";
-import blue from "../../../assets/blue_theme.png";
-import neutral from "../../../assets/neutral_theme.png";
+import blue from "@/app/assets/blue_theme.png";
+import neutral from "@/app/assets/hero-dark.png";
# Theme
@@ -27,3 +27,5 @@ Here's an example:
// Other options
}
```
+
+Note that the difference between the 2 themes is almost impossible to perceive when your system is in light mode.
diff --git a/docs/pages/docs/contributing.mdx b/docs/src/content/docs/contributing.mdx
similarity index 82%
rename from docs/pages/docs/contributing.mdx
rename to docs/src/content/docs/contributing.mdx
index b383142..b605ca5 100644
--- a/docs/pages/docs/contributing.mdx
+++ b/docs/src/content/docs/contributing.mdx
@@ -1,3 +1,5 @@
+import { Steps } from "nextra/components";
+
# Contributing
First of all, thanks for taking time to contribute to Cup! This guide will help you set up a development environment and make your first contribution.
@@ -10,10 +12,26 @@ Requirements:
- Rust (usually installed from https://rustup.rs/)
- Node.js 22+ and Bun 1+
-1. Fork the repository. This is where you'll be pushing your changes before you create a pull request. Make sure to _create a new branch_ for your changes.
-2. Clone your fork with `git clone https://github.com//cup` (if you use SSH, `git clone git@github.com:/cup`) and open your editor
-3. Switch to your newly created branch (e.g. if your branch is called `improve-logging`, run `git checkout improve-logging`)
-4. Run `bun install` in `web/` and `./build.sh` to set up the frontend
+
+### Fork the repository
+This is where you'll be pushing your changes before you create a pull request. Make sure to _create a new branch_ for your changes.
+### Clone your fork
+```bash
+git clone https://github.com//cup
+```
+If you use SSH:
+```bash
+git clone git@github.com:/cup`)
+```
+### Switch to your newly created branch (e.g. if your branch is called `improve-logging`, run `git checkout improve-logging`)
+### Set up the frontend
+```bash
+$ cd web
+$ bun install
+$ cd ..
+$ ./build.sh
+```
+
You're ready to go!
diff --git a/docs/pages/docs/index.mdx b/docs/src/content/docs/index.mdx
similarity index 87%
rename from docs/pages/docs/index.mdx
rename to docs/src/content/docs/index.mdx
index be6b3ed..c068d65 100644
--- a/docs/pages/docs/index.mdx
+++ b/docs/src/content/docs/index.mdx
@@ -1,11 +1,11 @@
import Image from "next/image";
-import cup from "../../assets/cup.gif";
-import { Cards, Card } from "nextra-theme-docs";
+import cup from "@/app/assets/cup.gif";
+import { Cards } from "nextra/components";
import { IconBrandDocker, IconPackage } from "@tabler/icons-react";
# Introduction
-
+
Cup is a lightweight alternative to [What's up Docker?](https://github.com/getwud/wud) written in Rust.
@@ -21,12 +21,12 @@ Cup is a lightweight alternative to [What's up Docker?](https://github.com/getwu
# Installation
- }
title="With Docker"
href="/docs/installation/docker"
/>
- }
title="As a binary"
href="/docs/installation/binary"
diff --git a/docs/src/content/docs/installation/_meta.ts b/docs/src/content/docs/installation/_meta.ts
new file mode 100644
index 0000000..31d6423
--- /dev/null
+++ b/docs/src/content/docs/installation/_meta.ts
@@ -0,0 +1,8 @@
+export default {
+ docker: {
+ title: "With Docker",
+ },
+ binary: {
+ title: "As a binary",
+ },
+};
diff --git a/docs/pages/docs/installation/binary.mdx b/docs/src/content/docs/installation/binary.mdx
similarity index 85%
rename from docs/pages/docs/installation/binary.mdx
rename to docs/src/content/docs/installation/binary.mdx
index 082af5b..8d4c741 100644
--- a/docs/pages/docs/installation/binary.mdx
+++ b/docs/src/content/docs/installation/binary.mdx
@@ -1,4 +1,4 @@
-import { Callout, Card, Steps } from "nextra-theme-docs";
+import { Callout, Cards, Steps } from "nextra/components";
import { IconFileDescription } from "@tabler/icons-react";
# As a binary
@@ -25,4 +25,4 @@ Move the binary you downloaded to a directory in your path. You can usually get
That's it! Cup is ready to be used. Head over to the Usage page to get started.
-} title="Usage" href="/docs/usage" />
+} title="Usage" href="/docs/usage" />
diff --git a/docs/pages/docs/installation/docker.mdx b/docs/src/content/docs/installation/docker.mdx
similarity index 60%
rename from docs/pages/docs/installation/docker.mdx
rename to docs/src/content/docs/installation/docker.mdx
index 5efbd19..8d7740c 100644
--- a/docs/pages/docs/installation/docker.mdx
+++ b/docs/src/content/docs/installation/docker.mdx
@@ -1,4 +1,4 @@
-import { Callout, Card } from "nextra-theme-docs";
+import { Callout, Cards } from "nextra/components";
import { IconFileDescription } from "@tabler/icons-react";
# With Docker
@@ -16,12 +16,12 @@ $ docker pull ghcr.io/sergi0g/cup
```
- If you aren't in the `docker` group, please ensure you run all commands as a
- user who does. In most cases, you'll just need to prefix the `docker` commands
- with `sudo`
+ If you aren't a member of the `docker` group, please ensure you run all
+ commands as a user who is. In most cases, you'll just need to prefix the
+ `docker` commands with `sudo`
That's it! Cup is ready to be used. Head over to the Usage page to get started.
-} title="Usage" href="/docs/usage" />
+} title="Usage" href="/docs/usage" />
diff --git a/docs/pages/docs/nightly.mdx b/docs/src/content/docs/nightly.mdx
similarity index 94%
rename from docs/pages/docs/nightly.mdx
rename to docs/src/content/docs/nightly.mdx
index ece8262..cc19ad8 100644
--- a/docs/pages/docs/nightly.mdx
+++ b/docs/src/content/docs/nightly.mdx
@@ -1,4 +1,4 @@
-import { Callout } from "nextra-theme-docs";
+import { Callout } from "nextra/components";
# Using the latest version
@@ -13,7 +13,7 @@ Cup's nightly version always contains the latest changes in the main branch.
breaking changes or a bad commit and it may not work properly. Install nightly
only if you know what you are doing. These instructions will assume you have
the technical know-how to follow them. If you do not, please use the stable
- release
+ release!
## With Docker
diff --git a/docs/pages/docs/usage/cli.mdx b/docs/src/content/docs/usage/cli.mdx
similarity index 98%
rename from docs/pages/docs/usage/cli.mdx
rename to docs/src/content/docs/usage/cli.mdx
index e60c3ae..daf19bb 100644
--- a/docs/pages/docs/usage/cli.mdx
+++ b/docs/src/content/docs/usage/cli.mdx
@@ -1,5 +1,5 @@
import Image from "next/image";
-import cup from "../../../assets/cup.gif";
+import cup from "@/app/assets/cup.gif";
# CLI
@@ -72,6 +72,6 @@ $ cup check node:latest
becomes:
-```bash
+```bash
$ docker run -tv /var/run/docker.sock:/var/run/docker.sock ghcr.io/sergi0g/cup check node:latest
```
diff --git a/docs/src/content/docs/usage/index.mdx b/docs/src/content/docs/usage/index.mdx
new file mode 100644
index 0000000..f769ae4
--- /dev/null
+++ b/docs/src/content/docs/usage/index.mdx
@@ -0,0 +1,15 @@
+---
+asIndexPage: true
+---
+
+import { IconServer, IconTerminal } from "@tabler/icons-react";
+import { Cards } from "nextra/components";
+
+# Usage
+
+You can use Cup in 2 different ways. As a CLI or as a server. You can learn more about each mode in its corresponding page
+
+
+ } title="CLI" href="/docs/usage/cli" />
+ } title="Server" href="/docs/usage/server" />
+
diff --git a/docs/src/content/docs/usage/server.mdx b/docs/src/content/docs/usage/server.mdx
new file mode 100644
index 0000000..e3fa07f
--- /dev/null
+++ b/docs/src/content/docs/usage/server.mdx
@@ -0,0 +1,55 @@
+import { Callout } from "nextra/components";
+
+# Server
+
+The server provides the `cup serve` command.
+
+## Basic usage
+
+```ansi
+$ cup serve
+[36;1mINFO [0mStarting server, please wait...
+[36;1mINFO [0m✨ Checked 8 images in 8862ms
+[36;1mINFO [0mReady to start!
+[94;1mHTTP [0m[32mGET[0m / [32m200[0m in 0ms
+[94;1mHTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
+[94;1mHTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
+[94;1mHTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
+```
+
+This will launch the server on port `8000`. To access it, visit `http://:8000` (replace `` with the IP address of the machine running Cup.)
+
+
+The URL `http://:8000/api/v3/json` is also available for usage with integrations.
+
+
+## Use a different port
+
+Pass the `-p` argument with the port you want to use
+
+```ansi
+$ cup serve -p 9000
+[36;1mINFO [0mStarting server, please wait...
+[36;1mINFO [0m✨ Checked 8 images in 8862ms
+[36;1mINFO [0mReady to start!
+[94;1mHTTP [0m[32mGET[0m / [32m200[0m in 0ms
+[94;1mHTTP [0m[32mGET[0m /assets/index.js [32m200[0m in 3ms
+[94;1mHTTP [0m[32mGET[0m /assets/index.css [32m200[0m in 0ms
+[94;1mHTTP [0m[32mGET[0m /api/v3/json [32m200[0m in 0ms
+```
+
+## Usage with Docker
+
+If you're using the Docker image, just replace all occurences of `cup` in the examples with `docker run -tv /var/run/docker.sock:/var/run/docker.sock -p : ghcr.io/sergi0g/cup`, where `` is the port Cup will be using.
+
+For example, this:
+
+```bash
+$ cup serve -p 9000
+```
+
+becomes:
+
+```bash
+$ docker run -tv /var/run/docker.sock:/var/run/docker.sock -p 9000:9000 ghcr.io/sergi0g/cup serve -p 9000
+```
diff --git a/docs/src/mdx-components.ts b/docs/src/mdx-components.ts
new file mode 100644
index 0000000..8ebe2b2
--- /dev/null
+++ b/docs/src/mdx-components.ts
@@ -0,0 +1,13 @@
+import { useMDXComponents as getThemeComponents } from "nextra-theme-docs";
+import { MDXComponents } from "nextra/mdx-components";
+
+// Get the default MDX components
+const themeComponents = getThemeComponents();
+
+// Merge components
+export function useMDXComponents(components: MDXComponents) {
+ return {
+ ...themeComponents,
+ ...components,
+ };
+}
diff --git a/docs/styles.css b/docs/styles.css
deleted file mode 100644
index fa35cd7..0000000
--- a/docs/styles.css
+++ /dev/null
@@ -1,54 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
-
-.nextra-card .tabler-icon:hover {
- color: rgb(17 24 39 / var(--tw-text-opacity));
-}
-.nextra-card .tabler-icon {
- color: rgb(55 65 81 / var(--tw-text-opacity));
-}
-.nextra-card .tabler-icon:is(.dark *) {
- color: rgb(229 229 229 / var(--tw-text-opacity));
-}
-
-.nextra-card .tabler-icon:is(.dark *):hover {
- color: rgb(250 250 250 / var(--tw-text-opacity));
-}
-
-.home-animation {
- animation-name: fade-in;
- animation-delay: 300ms;
- animation-duration: 500ms;
- animation-fill-mode: forwards;
- animation-timing-function: ease-in;
-}
-
-@keyframes fade-in {
- from {
- opacity: 0;
- }
-
- to {
- opacity: 1;
- }
-}
-
-.hide-focus:focus {
- outline: none;
- box-shadow: none;
-}
-
-.home-pattern {
- background-color: white;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.15'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
- mask-image: radial-gradient(ellipse at top, white, transparent);
- translate: 0 -0.5rem;
-}
-
-.home-pattern:is(.dark *) {
- background-color: #111111;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
- mask-image: radial-gradient(ellipse at top, #111111, transparent);
- translate: 0 -0.5rem;
-}
diff --git a/docs/tailwind.config.js b/docs/tailwind.config.js
deleted file mode 100644
index d56e7d9..0000000
--- a/docs/tailwind.config.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/** @type {import('tailwindcss').Config} */
-module.exports = {
- darkMode: "class",
- content: ["theme.config.jsx", "components/**/*.tsx"],
- theme: {
- extend: {},
- },
- plugins: [],
-};
diff --git a/docs/theme.config.jsx b/docs/theme.config.jsx
deleted file mode 100644
index 911ea1e..0000000
--- a/docs/theme.config.jsx
+++ /dev/null
@@ -1,116 +0,0 @@
-import { ThemeSwitch } from "nextra-theme-docs";
-import { useRouter } from "next/router";
-import { useConfig } from "nextra-theme-docs";
-
-export default {
- docsRepositoryBase: "https://github.com/sergi0g/cup/tree/main/docs",
- useNextSeoProps() {
- const { asPath } = useRouter();
- if (asPath !== "/") {
- return {
- titleTemplate: "Cup – %s",
- };
- } else {
- return {
- titleTemplate: "%s"
- }
- }
- },
- head: () => {
- const { asPath } = useRouter();
- const { frontMatter } = useConfig();
- const url = "https://sergi0g.github.io/cup/docs/" + `/${asPath}`;
-
- return (
- <>
-
-
-
- >
- );
- },
- logo: (
-