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
3 changes: 2 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:
OPENGRAPH_IMAGE_URL: ${{ secrets.OPENGRAPH_IMAGE_URL }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
ref: 'dev'
fetch-depth: 0
- name: Use NodeJS v20.15.0
uses: actions/setup-node@v3
with:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:
OPENGRAPH_IMAGE_URL: ${{ secrets.OPENGRAPH_IMAGE_URL }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0
- name: Use NodeJS v20.15.0
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
ref: ${{ github.event.release.tag_name }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v5
- name: Use NodeJS v20.15.0
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
uses: actions/checkout@v5

- name: Fetch and check out latest tag
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ The app depends these libraries and frameworks.

#### To display a new image:

1. Upload the image to the `/assets` branch, ([Issue #102](https://github.com/acaptutorials/acaptutorials.github.io/issues/102))
1. Upload the image to the [`/assets`](https://github.com/acaptutorials/acaptutorials.github.io/tree/assets) branch, ([Issue #102](https://github.com/acaptutorials/acaptutorials.github.io/issues/102))
- Commit the file under the appropriate directory (e.g., `/images/`, `/docs/`, etc.).
- Use **unique, versioned file names** (e.g., `feature-v2.png`) to prevent caching issues.

Expand Down
70 changes: 70 additions & 0 deletions docs/pages/404.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import Head from 'next/head'
import Image from 'next/image'

const NotFoundPage = () => {
return (
<>
<Head>
<title>404 Page Not Found | ACAP Tutorials</title>
<meta name="description" content="The page you're looking for doesn't exist. Navigate back to ACAP Tutorials documentation." />
<meta name="robots" content="noindex, nofollow" />
</Head>

<div className="min-h-screen flex flex-col items-center justify-center bg-gray-50 dark:bg-gray-900 px-4">
<div className="max-w-md w-full text-center">
{/* Logo */}
<div className="flex items-center justify-center mb-8">
<Image
src="/images/logos/logo-acaptutorials.png"
width="64"
height="64"
alt="ACAP Tutorials Logo"
className="mr-3"
/>
<span className="text-2xl font-bold text-gray-900 dark:text-white">
ACAP Tutorials
</span>
</div>

{/* 404 Error */}
<div className="mb-8">
<h1 className="text-9xl font-bold text-black-600 dark:text-blue-400 mb-4">404</h1>
<h2 className="text-2xl font-semibold text-gray-900 dark:text-white mb-2">
Page Not Found
</h2>
<p className="text-gray-600 dark:text-gray-400">
The page you&apos;re looking for doesn&apos;t exist or has been moved.
</p>
</div>

{/* Help Section */}
<div className="mt-8 pt-6 border-t border-gray-200 dark:border-gray-700">
<p className="text-sm text-gray-500 dark:text-gray-400 mb-3">
Need help finding what you&apos;re looking for?
</p>
<div className="flex flex-col sm:flex-row gap-3 justify-center">
<a
href="https://github.com/acaptutorials/acaptutorials.github.io/issues"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-200"
>
📝 Report an Issue
</a>
<a
href="https://deepwiki.com/acaptutorials/acaptutorials.github.io"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 transition-colors duration-200"
>
🤖 Ask DeepWiki
</a>
</div>
</div>
</div>
</div>
</>
)
}

export default NotFoundPage
4 changes: 0 additions & 4 deletions docs/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@
"title": "Video Tutorials",
"type": "page"
},
"showcase": {
"title": "Showcase",
"type": "page"
},
"about": {
"title": "About",
"type": "page"
Expand Down
3 changes: 0 additions & 3 deletions docs/pages/showcase.mdx

This file was deleted.

18 changes: 17 additions & 1 deletion docs/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind utilities;

.logo-text {
line-height: 1;
}

@media (max-width: 888px) {
.logo-text {
display: none;
}
}

@media (max-width: 767px) {
.logo-text {
display: unset;
}
}
39 changes: 38 additions & 1 deletion docs/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,41 @@ export default {
logo: (
<>
<Image src="/images/logos/logo-acaptutorials.png" width="24" height="24" alt="logo" />&nbsp;
<span>ACAP Development Docs</span>
<span className="logo-text">ACAP Development Docs</span>
</>
),

// Code repository URL
project: {
link: 'https://github.com/acaptutorials/acaptutorials.github.io'
},

// Nextra docs base URL within the repository
docsRepositoryBase: 'https://github.com/acaptutorials/acaptutorials.github.io/tree/dev/docs',

// Use SEO settings (eg., page title)
useNextSeoProps: () => {
return {
titleTemplate: 'ACAP Tutorials - %s'
}
},

// Displays the last-edited date on each page (from git)
gitTimestamp: ({ timestamp }) => {
const formatted = timestamp.toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
})

return (
<span className="text-xs text-gray-500">
Last updated on {formatted}
</span>
)
},

// HTML head customizations
head: function Head () {
const { asPath, defaultLocale, locale } = useRouter()
const { frontMatter } = useConfig()
Expand Down Expand Up @@ -57,13 +80,27 @@ export default {
</>
)
},

// Top banner content
banner: {
key: process.env.RELEASE_VERSION ?? 'v10.1.0-alpha.6-release',
text: <BannerText />
},

// Right-most icon in the navbar
chat: {
link: 'https://deepwiki.com/acaptutorials/acaptutorials.github.io',
icon: (
<img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki" />
)
},

// Side bar settings
sidebar: {
defaultMenuCollapseLevel: 1
},

// Custom footer contet
footer: {
text: (
<Footer />
Expand Down