Skip to content

Commit

Permalink
v3 docs: Migrate to Malta (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored Dec 12, 2023
1 parent e5d7ea6 commit c224a6a
Show file tree
Hide file tree
Showing 117 changed files with 89 additions and 412 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/v3-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
with:
node-version: 20.5.1
registry-url: https://registry.npmjs.org
- name: install dependencies
- name: install malta
working-directory: docs
run: |
npm i -g pnpm
pnpm i --no-frozen-lockfile
curl -o malta.tgz -L https://github.com/pilcrowonpaper/malta/releases/latest/download/linux-amd64.tgz
tar -xvzf malta.tgz
- name: build
working-directory: docs
run: ./linux-amd64/malta
- name: install wrangler
run: npm i -g wrangler
- name: build
working-directory: documentation
run: pnpm build
- name: deploy
run: wrangler pages deploy documentation/dist --project-name lucia-v3 --branch main
run: wrangler pages deploy docs/dist --project-name malta-cli --branch main
2 changes: 2 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
.DS_Store
55 changes: 55 additions & 0 deletions docs/malta.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"name": "Lucia",
"description": "Lucia is an open source auth library that abstracts away the complexity of handling sessions.",
"domain": "https://v3.lucia-auth.com",
"twitter": "@lucia_auth",
"sidebar": [
{
"title": "Start here",
"pages": [
["Getting-started", "/getting-started"],
["Database", "/database"],
["Upgrade to v3", "/upgrade-v3"]
]
},
{
"title": "Tutorials",
"pages": [
["GitHub OAuth", "/tutorials/github-oauth"],
["Username and password", "/tutorials/username-and-password"]
]
},
{
"title": "Basics",
"pages": [
["Sessions", "/basics/sessions"],
["Users", "/basics/users"],
["Configuration", "/basics/configuration"],
["Troubleshooting", "/basics/help"]
]
},
{
"title": "Guides",
"pages": [
["Validate session cookies", "/guides/validate-session-cookies"],
["Validate bearer tokens", "/guides/validate-bearer-tokens"],
["OAuth", "/guides/oauth"],
["Email and password", "/guides/email-and-password"],
["Passkeys", "/guides/passkeys"],
["Improving sessions", "/guides/improving-sessions"]
]
},
{
"title": "API reference",
"pages": [["lucia", "/reference/main", "code"]]
},
{
"title": "Community",
"pages": [
["Discord", "https://discord.com/invite/PwrK3kpVR3"],
["GitHub", "https://github.com/lucia-auth/lucia"],
["Twitter", "https://twitter.com/lucia-auth"]
]
}
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/pages/tutorials/github-oauth/astro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "GitHub OAuth in Astro"
---
File renamed without changes.
3 changes: 3 additions & 0 deletions docs/pages/tutorials/github-oauth/nextjs-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "GitHub OAuth in Next.js App router"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/github-oauth/nextjs-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "GitHub OAuth in Next.js Pages router"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/github-oauth/sveltekit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "GitHub OAuth in SvelteKit"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/username-and-password/astro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Username and password in Astro"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/username-and-password/nextjs-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Username and password in Next.js App Router"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/username-and-password/nextjs-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Username and password in Next.js Pages Router"
---
3 changes: 3 additions & 0 deletions docs/pages/tutorials/username-and-password/sveltekit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: "Username and password in SvelteKit"
---
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions documentation/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions documentation/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions documentation/astro.config.mjs

This file was deleted.

23 changes: 0 additions & 23 deletions documentation/package.json

This file was deleted.

8 changes: 0 additions & 8 deletions documentation/src/components/CloseIcon.astro

This file was deleted.

157 changes: 0 additions & 157 deletions documentation/src/components/Layout.astro

This file was deleted.

8 changes: 0 additions & 8 deletions documentation/src/components/MenuIcon.astro

This file was deleted.

Loading

0 comments on commit c224a6a

Please sign in to comment.