Skip to content

Commit

Permalink
Add cloudlfare pages plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Mar 10, 2024
1 parent 827f030 commit 2812da8
Show file tree
Hide file tree
Showing 3 changed files with 793 additions and 264 deletions.
76 changes: 46 additions & 30 deletions apps/docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";

import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'Loop Decoder',
customCss: [
// Relative path to your custom CSS file
'./src/styles/custom.css',
],
social: {
github: 'https://github.com/3loop/loop-decoder',
twitter: 'https://x.com/3loop_io'
},
sidebar: [
{
"label": "Getting Started",
items: [{ label: 'Introduction', link: '/getting-started' }],
},
{
label: 'Guides',
autogenerate: { directory: 'guides' },
},
{
label: 'Reference',
autogenerate: { directory: 'reference' },
},
{ label: 'Contribution', link: '/contribution' },
],
}),
],
integrations: [
starlight({
title: "Loop Decoder",
customCss: [
// Relative path to your custom CSS file
"./src/styles/custom.css",
],
social: {
github: "https://github.com/3loop/loop-decoder",
twitter: "https://x.com/3loop_io",
},
sidebar: [
{
label: "Getting Started",
items: [
{
label: "Introduction",
link: "/getting-started",
},
],
},
{
label: "Guides",
autogenerate: {
directory: "guides",
},
},
{
label: "Reference",
autogenerate: {
directory: "reference",
},
},
{
label: "Contribution",
link: "/contribution",
},
],
}),
],
output: "server",
adapter: cloudflare(),
});
9 changes: 5 additions & 4 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"fix": "eslint --ignore-path .eslintignore ./src --fix"
},
"dependencies": {
"@astrojs/check": "^0.3.4",
"@astrojs/starlight": "^0.15.2",
"astro": "^4.0.1",
"sharp": "^0.32.5",
"@astrojs/check": "^0.5.6",
"@astrojs/cloudflare": "^9.1.0",
"@astrojs/starlight": "^0.21.1",
"astro": "^4.4.15",
"sharp": "^0.33.2",
"typescript": "5.1.3"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 2812da8

Please sign in to comment.