Skip to content

Commit f48f428

Browse files
chore: New website
1 parent a54630a commit f48f428

30 files changed

+7321
-5262
lines changed

.github/workflows/vitepress.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Deploy VitePress site to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
26+
- name: Setup Node
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: npm
31+
- name: Setup Pages
32+
uses: actions/configure-pages@v4
33+
- name: Install dependencies
34+
run: npm ci
35+
- name: Build with VitePress
36+
run: npm run docs:build
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: .vitepress/dist
41+
42+
deploy:
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
needs: build
47+
runs-on: ubuntu-latest
48+
name: Deploy
49+
steps:
50+
- name: Deploy to GitHub Pages
51+
id: deployment
52+
uses: actions/deploy-pages@v4

.gitignore

100755100644
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
3-
.lldebugger
3+
.lldebugger
4+
.vitepress/dist
5+
.vitepress/cache

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ cdk.out
44
.serverless
55
.aws-sam
66
src/extension/aws
7-
*.html
7+
*.html
8+
.vitepress/dist
9+
.vitepress/cache

.vitepress/config.mts

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
import { defineConfig } from 'vitepress';
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: 'Lambda Live Debugger',
6+
description: 'Remote debugging AWS Lambda functions',
7+
/* prettier-ignore */
8+
head: [
9+
['meta', { name: 'robots', content: 'index, follow' }],
10+
['meta', { 'http-equiv': 'Content-Type', content: 'text/html; charset=utf-8' }],
11+
['meta', { name: 'language', content: 'English' }],
12+
['meta', { name: 'revisit-after', content: '1 days' }],
13+
['meta', { name: 'author', content: 'Marko (ServerlessLife)' }],
14+
['keywords', {}, 'aws, lambda, debugger, serverless, aws-lambda, javascript, typescript, dev-tools, lambda-debugger, aws-cdk, serverless-framework, sls, aws-sam, sam, terraform, local-debugging, cloud-development'],
15+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/favicon.svg' }],
16+
['link', { rel: 'icon', type: 'image/png', href: '/favicon.png' }],
17+
['meta', { property: 'og:type', content: 'website' }],
18+
['meta', { property: 'og:locale', content: 'en' }],
19+
['meta', { property: 'og:title', content: 'Lambda Live Debugger | Remote debugging AWS Lambda functions' }],
20+
['meta', { property: 'og:site_name', content: 'Lambda Live Debugger' }],
21+
['meta', { property: 'og:image', content: 'https://lldebugger.com/logo_landscape_light.svg' }],
22+
['meta', { property: 'og:url', content: 'https://lldebugger.com/' }],
23+
24+
['meta', { property: 'twitter:card', content: 'summary' }],
25+
['meta', { property: 'twitter:site', content: '@serverlessl' }],
26+
27+
[
28+
'script',
29+
{ async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-DWK00ZDX76' }
30+
],
31+
[
32+
'script',
33+
{},
34+
`window.dataLayer = window.dataLayer || [];
35+
function gtag(){dataLayer.push(arguments);}
36+
gtag('js', new Date());
37+
gtag('config', 'G-DWK00ZDX76');`
38+
]
39+
],
40+
sitemap: {
41+
hostname: 'https://www.lldebugger.com',
42+
},
43+
themeConfig: {
44+
search: {
45+
provider: 'local',
46+
},
47+
siteTitle: 'Lambda Live Debugger',
48+
logo: {
49+
light: '/logo_light.svg',
50+
dark: '/logo_dark.svg',
51+
},
52+
sidebar: [
53+
{
54+
text: 'Introduction',
55+
collapsed: false,
56+
items: [
57+
{ text: 'Why?', link: '#why' },
58+
{ text: 'How It Works', link: '#how-it-works' },
59+
{ text: 'Help and Feedback', link: '#help-and-feedback' },
60+
],
61+
},
62+
{
63+
text: 'Instructions',
64+
collapsed: false,
65+
items: [
66+
{ text: 'Getting Started', link: '#getting-started' },
67+
{ text: 'CLI Parameters', link: '#cli-parameters' },
68+
{ text: 'Configuration file', link: '#configuration-file' },
69+
{ text: 'Debugging', link: '#debugging' },
70+
{ text: 'Development Process', link: '#development-process' },
71+
],
72+
},
73+
{
74+
text: 'Advanced',
75+
collapsed: false,
76+
items: [
77+
{ text: 'Observability Mode', link: '#observability-mode' },
78+
{ text: 'Monorepo', link: '#monorepo-setup' },
79+
{ text: 'Removing', link: '#removing' },
80+
],
81+
},
82+
{
83+
text: 'Frameworks & Custom Setup',
84+
collapsed: true,
85+
link: '#aws-cdk-v2',
86+
items: [
87+
{ text: 'AWS CDK', link: '#aws-cdk-v2' },
88+
{
89+
text: 'Serverless Framework',
90+
link: '#serverless-framework-v3-sls',
91+
},
92+
{ text: 'SAM', link: '#aws-serverless-application-model-sam' },
93+
{ text: 'Terraform', link: '#terraform' },
94+
{ text: 'Custom Setup', link: '#custom-setup' },
95+
],
96+
},
97+
{ text: 'Authors and Contributors', link: '#authors' },
98+
{ text: 'Disclaimer', link: '#disclaimer' },
99+
],
100+
101+
socialLinks: [
102+
{
103+
icon: 'github',
104+
link: 'https://github.com/ServerlessLife/lambda-live-debugger',
105+
},
106+
],
107+
},
108+
});

.vitepress/theme/custom.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:root {
2+
--vp-c-indigo-1: #dc143c;
3+
--vp-c-indigo-2: #dc143c;
4+
--vp-c-indigo-3: #dc143c;
5+
}
6+
7+
.VPDoc .container .aside {
8+
display: none;
9+
}
10+
.pager {
11+
display: none;
12+
}
13+
14+
:root:not(.dark) img[src$='/logo_landscape_dark.svg'] {
15+
display: none;
16+
}
17+
18+
:root:is(.dark) img[src$='/logo_landscape_light.svg'] {
19+
display: none;
20+
}

.vitepress/theme/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import DefaultTheme from 'vitepress/theme';
2+
import './custom.css';
3+
4+
export default DefaultTheme;

0 commit comments

Comments
 (0)