diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000..a4a040ec --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,48 @@ +--- +################################# +################################# +## Super Linter GitHub Actions ## +################################# +################################# +name: Lint Code Base + +############################# +# Start the job on all push # +############################# +on: + + pull_request: + branches: [main] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v4 + with: + # Full git history is needed to get a proper + # list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: super-linter/super-linter@v6.6.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_JAVASCRIPT_ES: true \ No newline at end of file diff --git a/app/(home)/course/page.tsx b/app/(home)/course/page.tsx index 08b8b3b2..c10fe2ca 100644 --- a/app/(home)/course/page.tsx +++ b/app/(home)/course/page.tsx @@ -4,7 +4,6 @@ import Link, { type LinkProps } from 'next/link'; import Image from 'next/image'; import { buttonVariants } from '@/components/ui/button'; import { cn } from '@/utils/cn'; -import Spot from '@/public/spot.png'; const cardIconVariants = cva( 'mb-2 size-9 rounded-lg border p-1 shadow-sm shadow-primary/50', @@ -24,13 +23,6 @@ export default function DocsPage(): React.ReactElement { />
- spot

Getting Started diff --git a/app/course/[...slug]/page.tsx b/app/course/[...slug]/page.tsx index e3374bdd..c3b3171a 100644 --- a/app/course/[...slug]/page.tsx +++ b/app/course/[...slug]/page.tsx @@ -134,7 +134,7 @@ export function generateMetadata({ params }: { params: Param }): Metadata { if (!page) notFound(); const description = - page.data.description ?? 'The library for building documentation sites'; + page.data.description ?? 'Learn how to build on Avalanche blockchain with Academy'; const imageParams = new URLSearchParams(); imageParams.set('title', page.data.title); diff --git a/app/global.css b/app/global.css index 8545fb26..999207e3 100644 --- a/app/global.css +++ b/app/global.css @@ -43,3 +43,30 @@ padding: 0 16px; } +svg.lucide.lucide-box, svg.lucide.lucide-layers { + color: #E84142; +} + +svg.lucide.lucide-bookmark { + color: #b821d5; +} + +svg.lucide.lucide-terminal { + color: #ff5e13; +} + +svg.lucide.lucide-users { + color: #8b54ff; +} + +svg.lucide.lucide-binary { + color: #ce3427; +} + +svg.lucide.lucide-rocket { + color: #ff2e2ec4; +} + +svg.lucide.lucide-send { + color: #0070ff; +} diff --git a/app/layout.tsx b/app/layout.tsx index e047790f..b19da02d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -6,6 +6,7 @@ import { GeistMono } from 'geist/font/mono'; import { baseUrl, createMetadata } from '@/utils/metadata'; import { Footer } from '@/components/footer'; import { Provider } from './provider'; +import { Analytics } from "@vercel/analytics/react"; export const metadata = createMetadata({ title: { @@ -39,6 +40,7 @@ export default function RootLayout({ {children}