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
3 changes: 0 additions & 3 deletions website/babel.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion website/docs/authentication/authenticating-manually.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Authenticating Manually

The most common auth flow that users interacting with PSN's APIs use is the manual authentication flow. This flow is also described in the [Quick Start guide](/#quick-start).
The most common auth flow that users interacting with PSN's APIs use is the manual authentication flow. This flow is also described in the [Quick Start guide](/get-started#quick-start).

The disadvantage to this flow is that after two months you will need to remember to manually retrieve another NPSSO token to ultimately exchange for access and refresh tokens.

Expand Down
113 changes: 0 additions & 113 deletions website/docusaurus.config.js

This file was deleted.

109 changes: 109 additions & 0 deletions website/docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
import { themes as prismThemes } from "prism-react-renderer";

const config: Config = {
title: "psn-api",
tagline: "Dinosaurs are cool",
url: "https://psn-api.achievements.app",
baseUrl: "/",
onBrokenLinks: "throw",
favicon: "img/favicon.ico",
organizationName: "achievements.app",
projectName: "psn-api",

markdown: {
format: "detect"
},

scripts: [
{
src: "https://plausible.io/js/plausible.js",
defer: true,
"data-domain": "psn-api.achievements.app"
}
],

presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
routeBasePath: "/",
editUrl:
"https://github.com/achievements-app/psn-api/edit/main/website/",

remarkPlugins: [
[require("@docusaurus/remark-plugin-npm2yarn"), { sync: true }]
]
},
theme: {
customCss: "./src/css/custom.css"
},
sitemap: {
changefreq: "weekly",
priority: 0.5
}
} satisfies Preset.Options
]
],

themeConfig: {
navbar: {
title: "psn-api",

items: [
{
type: "doc",
docId: "get-started",
position: "left",
label: "Quick start"
},
{
href: "https://github.com/achievements-app/psn-api",
label: "GitHub",
position: "right"
}
]
},

footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Twitter",
href: "https://twitter.com/wescopeland_"
}
]
},
{
title: "More",
items: [
{
label: "GitHub",
href: "https://github.com/achievements-app/psn-api"
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} achievements.app.`
},

prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula
},

algolia: {
appId: "BH4D9OD16A",
apiKey: "2ce8bc4c877d89ada212a38523a0d4d0",
indexName: "psn-api"
}
} satisfies Preset.ThemeConfig
};

export default config;
29 changes: 13 additions & 16 deletions website/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "website-2",
"name": "website",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -15,23 +15,20 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "^2.0.0-beta.9",
"@docusaurus/preset-classic": "^2.0.0-beta.9",
"@docusaurus/remark-plugin-npm2yarn": "^2.0.0-beta.9",
"@docusaurus/theme-search-algolia": "^2.0.0-beta.9",
"@mdx-js/react": "^1.6.21",
"@svgr/webpack": "^5.5.0",
"clsx": "^1.2.1",
"file-loader": "^6.2.0",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"url-loader": "^4.1.1"
"@docusaurus/core": "^3.7.0",
"@docusaurus/preset-classic": "^3.7.0",
"@docusaurus/remark-plugin-npm2yarn": "^3.7.0",
"@docusaurus/theme-search-algolia": "^3.7.0",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"prism-react-renderer": "^2.4.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.0.0-beta.9",
"@tsconfig/docusaurus": "^1.0.6",
"typescript": "^4.7.4"
"@docusaurus/module-type-aliases": "^3.7.0",
"@docusaurus/tsconfig": "^3.7.0",
"typescript": "^5.7.0"
},
"browserslist": {
"production": [
Expand Down
Loading