Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: enable sri in docs site #61

Merged
merged 1 commit into from
Mar 31, 2024
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
1 change: 1 addition & 0 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ set -eu
set -o pipefail

pnpm moon ci
pnpm moon :test.e2e
2 changes: 2 additions & 0 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { defineConfig, passthroughImageService } from 'astro/config'
import starlight from '@astrojs/starlight'
import aws from 'astro-sst'
import { shield } from '@kindspells/astro-shield'

export default defineConfig({
output: 'static',
Expand All @@ -10,6 +11,7 @@ export default defineConfig({
service: passthroughImageService(),
},
integrations: [
shield({}),
starlight({
title: 'Astro-Shield Docs',
defaultLocale: 'en',
Expand Down
1 change: 1 addition & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"devDependencies": {
"@astrojs/check": "^0.5.10",
"@astrojs/starlight": "^0.21.2",
"@kindspells/astro-shield": "workspace:^",
"astro": "^4.5.12",
"typescript": "^5.4.3"
}
Expand Down
7 changes: 4 additions & 3 deletions docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ import { Card, CardGrid } from '@astrojs/starlight/components';
Astro-Shield can automatically set the `Content-Security-Policy` headers
for you.
</Card>
{/* <Card title="Block injected scripts" icon="close">
Blablablah...
<Card title="Block injected scripts" icon="close">
When Astro-Shield detects a suspicious script (that is, likely injected by
an attacker), it will remove it from the rendered HTML.
</Card>
<Card title="Prevent Prototype Pollution" icon="seti:gulp">
{/* <Card title="Prevent Prototype Pollution" icon="seti:gulp">
Blablablah...
</Card> */}
</CardGrid>
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading