Skip to content
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
14 changes: 13 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ updates:
- "@jest*"
- "@types/jest"
- "ts-jest"
- "jest-yaml-transform"

# Linting & Formatting
linting-tools:
Expand All @@ -98,6 +99,8 @@ updates:
- "lint-staged"
- "husky"
- "solhint*"
- "solhint-plugin-*"
- "knip"

# TypeScript & Types
typescript:
Expand All @@ -123,7 +126,16 @@ updates:
- "lodash"
- "uuid"
- "pino"

- "pino-pretty"

# Solana Ecosystem
solana-ecosystem:
patterns:
- "@solana*"
- "@solana-program*"
- "bs58"
- "tweetnacl"

# Security updates (specifically for security vulnerabilities)
security-blockchain:
applies-to: security-updates
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ selectors*.yml.backup
selectors.yml.backup

# Test coverage
coverage/
coverage/
4 changes: 0 additions & 4 deletions SIDE_BY_SIDE_CODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,11 @@ For a complete list, refer to [Shiki's supported languages](https://github.com/s
## Best Practices

1. **Concise Explanations**

- Keep explanations clear and focused
- Use bullet points for better readability
- Highlight only the most important code sections

2. **Responsive Design**

- Component automatically adjusts for different screen sizes
- Code and explanation stack vertically on mobile
- Maintains readability across devices
Expand Down Expand Up @@ -166,13 +164,11 @@ For a complete list, refer to [Shiki's supported languages](https://github.com/s
## Troubleshooting

1. **Code Not Loading**

- For local files: Ensure the file exists in `public/samples`
- For URLs: Verify the URL is accessible and returns raw code
- Check file permissions and CORS settings

2. **Syntax Highlighting Issues**

- Verify the language is supported
- Check the language identifier is correct
- Ensure code is properly formatted
Expand Down
2 changes: 2 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { config } from "dotenv"
import { defineConfig } from "astro/config"
import vercel from "@astrojs/vercel"
import preact from "@astrojs/preact"
Expand All @@ -13,6 +14,7 @@ import { ccipRedirects } from "./src/config/redirects/ccip"
import trailingSlashMiddleware from "./src/integrations/trailing-slash-middleware"
import redirectsJson from "./src/features/redirects/redirects.json"

config() // Load .env file
// Prepare set of redirect source URLs to exclude from sitemap
// This prevents duplicate entries and ensures only canonical URLs are indexed
const redirectSources = new Set(
Expand Down
36 changes: 36 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"$schema": "https://unpkg.com/knip@latest/schema.json",
"entry": [
"src/pages/**/*.{astro,ts,tsx}",
"src/content/**/*.mdx",
"astro.config.ts",
"src/content.config.ts",
"src/integrations/**/*.ts",
"hardhat.config.cts",
"codegen.ts",
"jest.config.cjs",
"src/**/__tests__/**/*.test.ts",
"src/**/*.test.ts"
],
"jest": {
"entry": ["src/**/__tests__/**/*.test.ts", "src/**/*.test.ts"]
},
"project": ["src/**/*.{ts,tsx,astro}", "!src/**/*.d.ts"],
"ignore": [
"src/types/**/*.d.ts",
"public/**/*",
"src/__mocks__/**/*",
"templates/**/*",
"typechain-types/**/*",
"dist/**/*"
],
"ignoreDependencies": ["@types/*", "prettier*", "@astrojs/*", "hardhat*", "solhint*", "jest*", "@project-serum/*"],
"ignoreExportsUsedInFile": {
"interface": true,
"type": true,
"function": true
},
"includeEntryExports": false,
"ignoreBinaries": [],
"workspaces": {}
}
Loading
Loading