Skip to content

Commit

Permalink
docs: add v8 release information page
Browse files Browse the repository at this point in the history
  • Loading branch information
virtual-designer committed Jan 30, 2024
1 parent eee3cb5 commit e08af0a
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 0 deletions.
49 changes: 49 additions & 0 deletions docs/app/(docs)/whats-new-in-v8/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
title: "What's new in v8.0? - SudoBot"
short_name: "What's new in v8.0?"
---

import sudobot8 from '@/images/sudobot-v8.png';

# Introducing SudoBot v8.0!

<ImageWithSkeleton
src={sudobot8.src}
alt="SudoBot 8 Branding"
width={sudobot8.width}
height={sudobot8.height}
blurDataURL={sudobot8.blurDataURL}
style={{ width: '100%' }}
placeholder="blur"
/>

Wishing a happy new year to everyone out there! We've released version 8.0 of SudoBot, as always, packed with a bunch of new features, fixes and improvements! If you have any questions or suggestions, feel free to let us know!

## Changes

### Features

* Now Fully Supporting [Bun](https://bun.sh)! During performance tests, SudoBot's performance was 25% better when using Bun instead of Node.js
* Authentication and Loading Environment Variables using a Credential Server
* URL Filtering by Crawling **[Experimental]**
* Embed Text Filter
* Image Text Filtering

### Improvements and Refactorings

* Refactored all the decorators to support TypeScript 5 Decorators as well as the old experimental decorators, to support bun
* Refactored the HTTP Server class

### Fixes

* Minor performance fixes

## Updating

To update your instance, simply download the [latest release](https://github.com/onesoft-sudo/sudobot/releases/latest), or run the `-update` command.
You can also use [Git](https://git-scm.com) to update your instance, by running this command:

```bash
git pull origin main
```
However, this will update your instance to the latest **unstable** version.
30 changes: 30 additions & 0 deletions docs/components/MDX/ImageWithSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"use client";

import { ComponentProps, FC, useState } from "react";
import Image from "next/image";
import styles from "@/styles/ImageWithSkeleton.module.css";

type ImageWithSkeletonProps = ComponentProps<typeof Image>;

const ImageWithSkeleton: FC<ImageWithSkeletonProps> = ({ ...imageProps }) => {
const [isLoaded, setIsLoaded] = useState(false);
const { onLoad, ...finalImageProps } = imageProps;

return (
<div className="relative">
<Image
onLoad={() => {
setIsLoaded(true);
}}
{...finalImageProps}
/>
{!isLoaded && (
<div
className={`absolute top-0 left-0 h-[100%] w-[100%] ${styles.skeleton}`}
></div>
)}
</div>
);
};

export default ImageWithSkeleton;
Binary file added docs/images/sudobot-v8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions docs/mdx-components.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import { Skeleton } from "@mui/material";
import type { MDXComponents } from "mdx/types";
import Image from "next/image";
import { ComponentProps } from "react";
import ImageWithSkeleton from "./components/MDX/ImageWithSkeleton";

export function useMDXComponents(components: MDXComponents): MDXComponents {
return {
...components,
Image: (props: ComponentProps<typeof Image>) => <Image {...props} />,
ImageWithSkeleton: (
props: ComponentProps<typeof ImageWithSkeleton>,
) => <ImageWithSkeleton {...props} />,
Skeleton: (props: ComponentProps<typeof Skeleton>) => (
<Skeleton {...props} />
),
};
}
15 changes: 15 additions & 0 deletions docs/styles/ImageWithSkeleton.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.skeleton {
animation: skeleton 2.5s linear infinite;
border-radius: 5px;
}

@keyframes skeleton {
100%,
0% {
background: #000;
}

50% {
background: #333;
}
}

0 comments on commit e08af0a

Please sign in to comment.