Skip to content

Commit

Permalink
Merge branch 'main' into aw/remove-unused-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra authored Jul 31, 2024
2 parents c279ec7 + a7e1a92 commit 04afac5
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 42 deletions.
8 changes: 5 additions & 3 deletions website/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
plugins: ['prettier-plugin-astro'],
overrides: [
{
files: "*.astro",
files: '*.astro',
options: {
parser: "astro",
parser: 'astro',
},
},
],

singleQuote: true,
};
29 changes: 16 additions & 13 deletions website/astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator';

// https://astro.build/config
export default defineConfig({
site: "https://joinkitsune.org",
site: 'https://joinkitsune.org',
integrations: [
starlight({
title: "Kitsune",
social: {
github: "https://github.com/kitsune-soc/kitsune",
},
customCss: ['./src/styles/global.scss'],
plugins: [starlightLinksValidator()],
sidebar: [
{
label: "Run your own",
autogenerate: { directory: "running" },
label: 'Run your own',
autogenerate: { directory: 'running' },
},
{
label: "Configuration",
autogenerate: { directory: "configuration" },
label: 'Configuration',
autogenerate: { directory: 'configuration' },
},
{
label: "Specification",
autogenerate: { directory: "spec" },
label: 'Specification',
autogenerate: { directory: 'spec' },
},
],
social: {
github: 'https://github.com/kitsune-soc/kitsune',
},
title: 'Kitsune',
}),
],
});
49 changes: 47 additions & 2 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@astrojs/starlight": "^0.25.3",
"astro": "^4.10.2",
"sharp": "^0.32.5",
"starlight-links-validator": "^0.10.0",
"typescript": "^5.5.4"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions website/src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineCollection } from "astro:content";
import { docsSchema } from "@astrojs/starlight/schema";
import { defineCollection } from 'astro:content';
import { docsSchema } from '@astrojs/starlight/schema';

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/database.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Database
description: Configure the database used by Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

Kitsune requires a PostgreSQL installation that it can connect to since we make usage of Postgres-specific features, such as their full-text search.

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/instance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Instance
description: Configure miscellaneous aspects of your instance
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

Kitsune has a number of configurations that change how your instance works.

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/job-scheduler.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Job Scheduler
description: Configure the Job Scheduler of Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

Kitsune uses the database to store and retrieve jobs that have to be run.
There are options to tune the job scheduler to your specific needs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Language detection
description: Configure the language detection of Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

In order to classify posts better, Kitsune attempts to automatically guess the language a post is written in to improve the search experience by using language-specific tokenization.

Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/messaging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Messaging
description: Configure the internal messaging channels used by Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

<Aside type="caution">
This is currently unused configuration but required nonetheless!
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/oidc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: OIDC (OpenID Connect)
description: Configure the OpenID Connect support of Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

<Aside type="tip">
This feature is gated behind the `oidc` compile-time feature (enabled by
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/configuration/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Storage
description: Configure the storage used by Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

As a microblogging platform, Kitsune also offers users the ability to attach images, videos, and audio to their posts.
We offer multiple different storage backends to store the attachments to.
Expand Down
29 changes: 16 additions & 13 deletions website/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hero:
variant: secondary
---

import { Card, CardGrid } from "@astrojs/starlight/components";
import { Card, CardGrid } from '@astrojs/starlight/components';

<CardGrid stagger>
<Card title="Create and share" icon="pencil">
Expand All @@ -29,20 +29,23 @@ import { Card, CardGrid } from "@astrojs/starlight/components";
and Misskey.
</Card>

<Card title="No ads or tracking. Ever." icon="seti:ignored">
Kitsune is free and open-source software. We will never track you, show you ads, or sell your data.
I mean the main developer (@aumetra) is an anarchist, so you can trust them on that.
</Card>
{' '}
<Card title="No ads or tracking. Ever." icon="seti:ignored">
Kitsune is free and open-source software. We will never track you, show you
ads, or sell your data.
</Card>

<Card title="Extensive configurability" icon="setting">
Make your Kitsune server truly your own with a wide range of configuration
options.
</Card>
{' '}
<Card title="Extensive configurability" icon="setting">
Make your Kitsune server truly your own with a wide range of configuration
options.
</Card>

<Card title="Full-text Search" icon="magnifier">
Search for posts and users using full-text search. We support multiple
search engines, including Meilisearch and native PostgreSQL search.
</Card>
{' '}
<Card title="Full-text Search" icon="magnifier">
Search for posts and users using full-text search. We support multiple search
engines, including Meilisearch and native PostgreSQL search.
</Card>

<Card title="Performance" icon="rocket">
Utilizing Rust and careful design, Kitsune is one of the fastest ActivityPub
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/running/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Installation
description: Install Kitsune on your own server
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

At the moment, the only way to install Kitsune is to compile it from source.
Don't worry, that sounds way more scary than it actually is. In this guide we will step you through it.
Expand Down
2 changes: 1 addition & 1 deletion website/src/content/docs/spec/http-signatures.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: HTTP signatures
description: Basic description of HTTP signatures as used by Kitsune
---

import { Aside } from "@astrojs/starlight/components";
import { Aside } from '@astrojs/starlight/components';

HTTP signatures are used by Kitsune to validate that the Activity/Object actually originates from the user it claims to.
We implement a subset of [`draft-cavage-http-signatures-12`](https://datatracker.ietf.org/doc/html/draft-cavage-http-signatures-12) to do this.
Expand Down
30 changes: 30 additions & 0 deletions website/src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Dark mode colors. */
:root {
--sl-color-accent-low: #381b0f;
--sl-color-accent: #ad440f;
--sl-color-accent-high: #e6bfb0;
--sl-color-white: #ffffff;
--sl-color-gray-1: #f2e9ff;
--sl-color-gray-2: #c8bbda;
--sl-color-gray-3: #987eb7;
--sl-color-gray-4: #644a80;
--sl-color-gray-5: #432a5d;
--sl-color-gray-6: #311849;
--sl-color-black: #1d1228;
}

/* Light mode colors. */
:root[data-theme='light'] {
--sl-color-accent-low: #eecfc4;
--sl-color-accent: #b04613;
--sl-color-accent-high: #512310;
--sl-color-white: #1d1228;
--sl-color-gray-1: #311849;
--sl-color-gray-2: #432a5d;
--sl-color-gray-3: #644a80;
--sl-color-gray-4: #987eb7;
--sl-color-gray-5: #c8bbda;
--sl-color-gray-6: #f2e9ff;
--sl-color-gray-7: #f9f4ff;
--sl-color-black: #ffffff;
}

0 comments on commit 04afac5

Please sign in to comment.