This commit is contained in:
Mrrp 2025-01-04 13:03:03 -08:00
parent ba72f0bf22
commit 5a911771d0
8 changed files with 114 additions and 100 deletions

View file

@ -1,70 +1,6 @@
{
"last_generated": "2025-01-04 19:53:08",
"last_generated": "2025-01-04 12:52:32",
"categories": {
"Blog": {
"posts": [
{
"metadata": {
"title": "3DS Programming - Using RomFS",
"description": "A guide to using RomFS on the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"previous": "old3ds_helloworld.md",
"next": "old3ds_touchscreen.md"
},
"id": "blog/old3ds_romfs.md",
"url": "/blog/old3ds_romfs.md",
"hash": "0b28a366868e9fa564b6a33d9b1aa1d8269f7971497f25488f05f54929e88410"
},
{
"metadata": {
"title": "3DS Programming - Touchscreen Input",
"description": "A guide to using the touchscreen on the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"previous": "old3ds_romfs.md"
},
"id": "blog/old3ds_touchscreen.md",
"url": "/blog/old3ds_touchscreen.md",
"hash": "59e0b9d701646fd5f747713832c47ce451e0ebe0975d4a148a820ca795741c2b"
},
{
"metadata": {
"title": "3DS Programming - Hello World",
"description": "A guide to creating a simple Hello, World program for the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"next": "old3ds_romfs.md"
},
"id": "blog/old3ds_helloworld.md",
"url": "/blog/old3ds_helloworld.md",
"hash": "86e0bd1deae0d00b17ab0960634ea7292d6387063f70600cec4001564fde9514"
}
],
"title": "Blog",
"description": "General blog posts",
"tags": [
"blog"
]
},
"Site": {
"posts": [
{
@ -77,8 +13,8 @@
"web"
]
},
"id": "site/styling_test.md",
"url": "/site/styling_test.md",
"id": "site/styling_test",
"url": "/site/styling_test",
"hash": "0ff9f34321a27f462ca26656a1dc5024c0e800ea1e176ff36316b158ab4606c9"
}
],
@ -100,8 +36,8 @@
"resources"
]
},
"id": "collections/lgbtq_resources.md",
"url": "/collections/lgbtq_resources.md",
"id": "collections/lgbtq_resources",
"url": "/collections/lgbtq_resources",
"hash": "3da76064aa95cc06937bde01128ed44aafb850f35a43bd214ce0cd89a875c674"
},
{
@ -115,8 +51,8 @@
"web"
]
},
"id": "collections/badges.md",
"url": "/collections/badges.md",
"id": "collections/badges",
"url": "/collections/badges",
"hash": "338ccfecc6523dff93708330a8b43af715f1e80d55e1cc3bea2d1a7306fc4f00"
},
{
@ -129,8 +65,8 @@
"curated"
]
},
"id": "collections/awesome.md",
"url": "/collections/awesome.md",
"id": "collections/awesome",
"url": "/collections/awesome",
"hash": "0632400858006b93f2f36d87953538c2a400bacc75aaa29928aee226e8b343b1"
}
],
@ -139,6 +75,70 @@
"tags": [
"collection"
]
},
"Guides": {
"posts": [
{
"metadata": {
"title": "3DS Programming - Using RomFS",
"description": "A guide to using RomFS on the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"previous": "old3ds_helloworld.md",
"next": "old3ds_touchscreen.md"
},
"id": "guides/old3ds_romfs",
"url": "/guides/old3ds_romfs",
"hash": "34062b79909f5b18a647b484687cf862e779c08da9fc6052c4ebab3eef67151c"
},
{
"metadata": {
"title": "3DS Programming - Touchscreen Input",
"description": "A guide to using the touchscreen on the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"previous": "old3ds_romfs.md"
},
"id": "guides/old3ds_touchscreen",
"url": "/guides/old3ds_touchscreen",
"hash": "c026e506fb60c8ed9943f5806e8adf611a382a7de34e30fc2a72f4578d66899e"
},
{
"metadata": {
"title": "3DS Programming - Hello World",
"description": "A guide to creating a simple Hello, World program for the 3DS. (Old)",
"date": "2024-12-31 16:00:00",
"tags": [
"3ds",
"programming",
"c",
"devkitpro",
"old"
],
"next": "old3ds_romfs.md"
},
"id": "guides/old3ds_helloworld",
"url": "/guides/old3ds_helloworld",
"hash": "77a21a1201a35d6a85cb2305166cfb20a0a45546fea1f73fd620b2b84ec70fda"
}
],
"title": "Guides",
"description": "Guides and tutorials",
"tags": [
"guide"
]
}
}
}

View file

@ -10,8 +10,8 @@ import Card from './Card.vue';
<div class="flex justify-center">
<NuxtLink href="/" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Home</NuxtLink>
<NuxtLink href="/article/" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Articles</NuxtLink>
<NuxtLink href="/article/collections/awesome.md" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Awesome</NuxtLink>
<NuxtLink href="/article/collections/badges.md" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Badges</NuxtLink>
<NuxtLink href="/article/collections/awesome" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Awesome</NuxtLink>
<NuxtLink href="/article/collections/badges" class="transition text-xl pl-2 pr-2 ease-in-out text-purple-100 hover:text-purple-400 duration-200">Badges</NuxtLink>
</div>
<div class="flex justify-center text-white">
<small class="ml-3 mr-3">Hosted with <NuxtLink href="https://github.com/TheFelidae/thefelidae.github.io" class="text-blue-500">GitHub Pages</NuxtLink></small>

View file

@ -8,11 +8,12 @@ next: old3ds_romfs.md
# Hello, World!
> [!warning]
> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
> I might make a new one in the future.
> I'm doing some alterations at least to make it more readable.
> It doesn't teach why things are done very well is my primary issue with it.
::alert{type="warning"}
This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
I might make a new one in the future.
I'm doing some alterations at least to make it more readable.
It doesn't teach why things are done very well is my primary issue with it.
::
'Hello, World!' is a very simple program used for checking a program's build system, and showing its basic syntax.
We should do both before going forward. You should have your project set up for this.

View file

@ -9,11 +9,12 @@ next: old3ds_touchscreen.md
# Accessing ROM files with RomFS
> [!warning]
> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
> I might make a new one in the future.
> I'm doing some alterations at least to make it more readable.
> It doesn't teach why things are done very well is my primary issue with it.
::alert{type="warning"}
This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
I might make a new one in the future.
I'm doing some alterations at least to make it more readable.
It doesn't teach why things are done very well is my primary issue with it.
::
RomFS allows us to access files stored on the ROM file, cartridge, or application.

View file

@ -8,11 +8,12 @@ previous: old3ds_romfs.md
# Touchscreen Input
> [!warning]
> This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
> I might make a new one in the future.
> I'm doing some alterations at least to make it more readable.
> It doesn't teach why things are done very well is my primary issue with it.
::alert{type="warning"}
This guide of mine is old - Like 3 years old at the time of posting. I prefer to keep it up, but I don't think it very highly - It should still work though.
I might make a new one in the future.
I'm doing some alterations at least to make it more readable.
It doesn't teach why things are done very well is my primary issue with it.
::
Here we will find the position of a touch on the touchscreen.

View file

@ -22,6 +22,11 @@ export default defineNuxtConfig({
autoprefixer: {},
},
},
routeRules: {
'/article/:category:/:id': {
redirect: '/article/:category:/:id/index.html'
}
},
app: {
pageTransition: {
name: 'page',
@ -38,7 +43,8 @@ export default defineNuxtConfig({
},
nitro: {
prerender: {
routes: blog_nitro_routes
routes: blog_nitro_routes,
autoSubfolderIndex: false
}
},
particles: {

View file

@ -73,18 +73,23 @@ export function getPagesInfo(searchDirectory: string, pageLocation: PageLocation
console.log(files);
files.forEach((file) => {
const fullPath = path.join(currentDirectory, file);
const localPath = fullPath.replace(pageLocation.root, pageLocation.map);
var fullPath = path.join(currentDirectory, file);
var localPath = fullPath.replace(pageLocation.root, pageLocation.map);
console.log(fullPath);
console.log(localPath);
if (fs.lstatSync(fullPath).isDirectory()) {
Object.assign(pageInfo, getPagesInfo(path.join(searchDirectory, file), pageLocation));
} else if (file.endsWith('.md')) {
const metadata = getMetadata(fullPath);
const sha256Hash = getSha256Hash(fullPath);
const charCount = getCharCount(fullPath);
const wordCount = getWordCount(fullPath);
// Remove the .md extension
localPath = localPath.replace('.md', '');
fullPath = fullPath.replace('.md', '');
pageInfo[fullPath] = {
local_path: localPath,
absolute_path: fullPath,

View file

@ -52,13 +52,6 @@ function generatePageCategory(pagesInfo: Record<string, any>): PageCategory {
}
const postDirectories: pages.PageLocation[] = [
{
title: "Blog",
description: "General blog posts",
tags: ["blog"],
map: "blog",
root: "content/blog"
},
{
title: "Site",
description: "Articles to test site functionality",
@ -72,6 +65,13 @@ const postDirectories: pages.PageLocation[] = [
tags: ["collection"],
map: "collections",
root: "content/collections"
},
{
title: "Guides",
description: "Guides and tutorials",
tags: ["guide"],
map: "guides",
root: "content/guides"
}
]