Skip to content

Commit

Permalink
New website + mascot
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Jul 29, 2024
1 parent 7eebc61 commit 182377e
Show file tree
Hide file tree
Showing 42 changed files with 7,954 additions and 343 deletions.
94 changes: 0 additions & 94 deletions .github/workflows/web.yml

This file was deleted.

6 changes: 0 additions & 6 deletions docs/book.toml

This file was deleted.

27 changes: 0 additions & 27 deletions docs/src/SUMMARY.md

This file was deleted.

17 changes: 0 additions & 17 deletions docs/src/introduction.md

This file was deleted.

81 changes: 0 additions & 81 deletions docs/src/running/basic-configuration.md

This file was deleted.

4 changes: 4 additions & 0 deletions lib/post-process/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn is_delimiter(c: u8) -> bool {
#[inline]
fn enforce_postfix<'a>(lexer: &Lexer<'a, PostElement<'a>>) -> bool {
let end = lexer.span().end;

if end == lexer.source().len() {
true
} else {
Expand Down Expand Up @@ -203,6 +204,7 @@ pub struct Emote<'a> {
impl Render for Emote<'_> {
fn render(&self, out: &mut impl fmt::Write) {
let _ = match &self.domain {
// Needed since other software (like Mastodon or Misskey) don't support characters such as '.', '-' or '@'
Some(domain) => write!(
out,
":{}__{}:",
Expand Down Expand Up @@ -247,7 +249,9 @@ impl Render for Html<'_> {
let _ = write!(out, " {name}=\"{value}\"");
}
let _ = out.write_char('>');

self.content.render(out);

let _ = write!(out, "</{}>", self.tag);
}
}
Expand Down
24 changes: 0 additions & 24 deletions oranda.json

This file was deleted.

21 changes: 21 additions & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
12 changes: 12 additions & 0 deletions web/.prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
4 changes: 4 additions & 0 deletions web/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"recommendations": ["astro-build.astro-vscode"],
"unwantedRecommendations": []
}
11 changes: 11 additions & 0 deletions web/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
3 changes: 3 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Kitsune documentation

This directory contains the documentation of Kitsune built with Astro's Starlight.
28 changes: 28 additions & 0 deletions web/astro.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "Kitsune",
social: {
github: "https://github.com/kitsune-soc/kitsune",
},
sidebar: [
{
label: "Run your own",
autogenerate: { directory: "running" },
},
{
label: "Configuration",
autogenerate: { directory: "configuration" },
},
{
label: "Specification",
autogenerate: { directory: "spec" },
},
],
}),
],
});
Loading

0 comments on commit 182377e

Please sign in to comment.