Skip to content

Commit

Permalink
add app definition docs
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed May 7, 2024
1 parent cff107a commit 5e25a60
Show file tree
Hide file tree
Showing 5 changed files with 499 additions and 167 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.mdx
263 changes: 142 additions & 121 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightBlog from 'starlight-blog';
import react from '@astrojs/react';
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
import starlightBlog from 'starlight-blog'
import react from '@astrojs/react'
import tailwind from '@astrojs/tailwind'
import sitemap from '@astrojs/sitemap'
import prefetch from '@astrojs/prefetch'

import robotsTxt from "astro-robots-txt";
import robotsTxt from 'astro-robots-txt'
const description =
'Generate Full Stack Serverless AWS Apps based on your description or data model. Projects include Next.js, React, Express, Lambda, API Gateway, Cognito Auth, DynamoDB, and more.'
const ogImage = 'https://codegenie.codes/og.jpg'
Expand All @@ -30,7 +30,7 @@ export default defineConfig({
email: 'mailto:[email protected]',
twitter: 'https://twitter.com/CodeGenieCodes',
discord: 'https://discord.gg/YJ9gQhheyn',
linkedin: 'https://www.linkedin.com/company/code-genie-codes'
linkedin: 'https://www.linkedin.com/company/code-genie-codes',
},
head: [
{
Expand All @@ -43,125 +43,146 @@ export default defineConfig({
},
],
editLink: {
baseUrl: 'https://github.com/CodeGenieApp/docs/edit/main/'
baseUrl: 'https://github.com/CodeGenieApp/docs/edit/main/',
},
tableOfContents: {
maxHeadingLevel: 4
maxHeadingLevel: 4,
},
lastUpdated: true,
customCss: [
'./src/styles/starlight.css',
customCss: ['./src/styles/starlight.css'],
sidebar: [
{
label: 'Guides',
items: [
{
label: 'Getting Started',
link: '/docs/guides/getting-started',
},
{
label: 'Deployments',
link: '/docs/guides/deployments',
},
{
label: 'Local Development',
link: '/docs/guides/local-development',
},
{
label: 'Send emails from custom domain',
link: '/docs/guides/send-emails-from-custom-domain',
},
],
},
{
label: 'Project Walkthrough',
items: [
{
label: 'Overview',
link: '/docs/project-walkthrough/overview',
},
{
label: 'CI/CD Pipeline',
link: '/docs/project-walkthrough/ci-cd-pipeline',
badge: {
variant: 'tip',
text: 'WIP',
},
},
{
label: 'Frontend',
items: [
{
label: 'Overview',
link: '/docs/project-walkthrough/frontend/overview',
},
{
label: 'Pages',
link: '/docs/project-walkthrough/frontend/pages',
},
{
label: 'Components',
link: '/docs/project-walkthrough/frontend/components',
},
{
label: 'Hooks',
link: '/docs/project-walkthrough/frontend/hooks',
},
{
label: 'Branding/Themes',
link: '/docs/project-walkthrough/frontend/branding-themes',
},
],
},
{
label: 'Backend',
items: [
{
label: 'Overview',
link: '/docs/project-walkthrough/backend/overview',
},
{
label: 'API',
link: '/docs/project-walkthrough/backend/api',
},
{
label: 'Database',
link: '/docs/project-walkthrough/backend/database',
},
{
label: 'Auth/Identity',
link: '/docs/project-walkthrough/backend/auth-identity',
badge: {
variant: 'tip',
text: 'WIP',
},
},
{
label: 'Cloud Infrastructure (IAC)',
link: '/docs/project-walkthrough/backend/cloud-infrastructure',
badge: {
variant: 'tip',
text: 'WIP',
},
},
{
label: 'Miscellaneous',
link: '/docs/project-walkthrough/miscellaneous',
badge: {
variant: 'tip',
text: 'WIP',
},
},
],
},
],
},
{
label: 'Spec',
items: [
{
label: 'App Definition',
link: '/docs/spec/app-definition',
},
],
},
],
sidebar: [{
label: 'Guides',
items: [{
label: 'Getting Started',
link: '/docs/guides/getting-started',
}, {
label: 'Deployments',
link: '/docs/guides/deployments'
}, {
label: 'Local Development',
link: '/docs/guides/local-development'
}, {
label: 'Send emails from custom domain',
link: '/docs/guides/send-emails-from-custom-domain'
}]
}, {
label: 'Project Walkthrough',
items: [{
label: 'Overview',
link: '/docs/project-walkthrough/overview'
}, {
label: 'CI/CD Pipeline',
link: '/docs/project-walkthrough/ci-cd-pipeline',
badge: {
variant: 'tip',
text: 'WIP'
}
}, {
label: 'Frontend',
items: [{
label: 'Overview',
link: '/docs/project-walkthrough/frontend/overview'
}, {
label: 'Pages',
link: '/docs/project-walkthrough/frontend/pages'
}, {
label: 'Components',
link: '/docs/project-walkthrough/frontend/components'
}, {
label: 'Hooks',
link: '/docs/project-walkthrough/frontend/hooks'
}, {
label: 'Branding/Themes',
link: '/docs/project-walkthrough/frontend/branding-themes'
}]
}, {
label: 'Backend',
items: [{
label: 'Overview',
link: '/docs/project-walkthrough/backend/overview'
}, {
label: 'API',
link: '/docs/project-walkthrough/backend/api'
}, {
label: 'Database',
link: '/docs/project-walkthrough/backend/database'
}, {
label: 'Auth/Identity',
link: '/docs/project-walkthrough/backend/auth-identity',
badge: {
variant: 'tip',
text: 'WIP'
}
}, {
label: 'Cloud Infrastructure (IAC)',
link: '/docs/project-walkthrough/backend/cloud-infrastructure',
badge: {
variant: 'tip',
text: 'WIP'
}
}, {
label: 'Miscellaneous',
link: '/docs/project-walkthrough/miscellaneous',
badge: {
variant: 'tip',
text: 'WIP'
}
}]
}]
},
{
label: 'Spec',
items: [{
label: 'App Definition',
link: '/docs/spec/app-definition',
badge: {
variant: 'tip',
text: 'WIP'
}
}]
}
],
plugins: [
starlightBlog({
title: 'Blog',
authors: {
brett: {
name: 'Brett Andrews',
title: 'Founder, Code Genie',
url: 'https://twitter.com/AWSBrett',
picture: '/brett-amazon-badge-photo-profile-pic-square-128.webp'
plugins: [
starlightBlog({
title: 'Blog',
authors: {
brett: {
name: 'Brett Andrews',
title: 'Founder, Code Genie',
url: 'https://twitter.com/AWSBrett',
picture: '/brett-amazon-badge-photo-profile-pic-square-128.webp',
},
},
},
}),
],
}),
],
}),
sitemap(),
prefetch({
intentSelector: ["a[href^='/']", "a[href^='https://codegenie.codes']", "a[href^='https://www.codegenie.codes']"]
intentSelector: ["a[href^='/']", "a[href^='https://codegenie.codes']", "a[href^='https://www.codegenie.codes']"],
}),
robotsTxt()
]
});
robotsTxt(),
],
})
Loading

0 comments on commit 5e25a60

Please sign in to comment.