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

Reorganize galleries, start on jak 3 #248

Merged
merged 2 commits into from
Nov 24, 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
7 changes: 7 additions & 0 deletions documentation/gallery/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Galleries",
"position": 8,
"link": {
"type": "generated-index"
}
}
7 changes: 7 additions & 0 deletions documentation/gallery/jak1/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Jak and Daxter Galleries",
"position": 0,
"link": {
"type": "generated-index"
}
}
9 changes: 9 additions & 0 deletions documentation/gallery/jak1/dev.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
title: 'Development Gallery'
description: 'Various pictures and videos we took while working on the Jak and Daxter: The Precursor Legacy port.'
---

import Gallery from '@site/./src/pages/gallery/jak1/dev';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak1/promo.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
title: 'Promo Gallery'
description: 'Composed shots meant to show off the port. Click the images to open them in 8K (7680x4320) resolution! Originally captured at 16K (15360x8640).'
---

import Gallery from '@site/./src/pages/gallery/jak1/promo';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2022-09.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
title: 'Development - Sept 2022'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2022-09';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2022-10.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
title: 'Development - Oct 2022'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2022-10';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2022-11.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 2
title: 'Development - Nov 2022'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2022-11';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2022-12.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 3
title: 'Development - Dec 2022'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2022-12';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-01.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 4
title: 'Development - Jan 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-01';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-02.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 5
title: 'Development - Feb 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-02';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-03.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 6
title: 'Development - Mar 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-03';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-04.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 7
title: 'Development - Apr 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-04';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-05.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 8
title: 'Development - May 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-05';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-06.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 9
title: 'Development - Jun 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-06';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-07.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 10
title: 'Development - Jul 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-07';

<Gallery/>
9 changes: 9 additions & 0 deletions documentation/gallery/jak2/2023-08.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 11
title: 'Development - Aug 2023'
description: 'Various pictures and videos we took while working on Jak II.'
---

import Gallery from '@site/./src/pages/gallery/jak2/2023-08';

<Gallery/>
7 changes: 7 additions & 0 deletions documentation/gallery/jak2/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Jak II Galleries",
"position": 1,
"link": {
"type": "generated-index"
}
}
9 changes: 9 additions & 0 deletions documentation/gallery/jak3/2024-04.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
title: 'Development - Apr 2024'
description: 'Various pictures and videos we took while working on Jak 3.'
---

import Gallery from '@site/./src/pages/gallery/jak3/2024-04';

<Gallery/>
7 changes: 7 additions & 0 deletions documentation/gallery/jak3/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"label": "Jak 3 Galleries",
"position": 2,
"link": {
"type": "generated-index"
}
}
9 changes: 9 additions & 0 deletions documentation/gallery/jak3/early.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
title: 'Early Development'
description: 'Various pictures and videos we took while working on Jak 3.'
---

import Gallery from '@site/./src/pages/gallery/jak3/early';

<Gallery/>
9 changes: 7 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,20 @@ const config = {
{ to: "/docs/faq", label: "FAQ", position: "left" },
{
label: "Galleries",
to: "/docs/category/galleries",
position: "left",
items: [
{
label: "Jak and Daxter: The Precursor Legacy",
to: "/gallery/jak1",
to: "/docs/category/jak-and-daxter-galleries",
},
{
label: "Jak II",
to: "/gallery/jak2",
to: "/docs/category/jak-ii-galleries",
},
{
label: "Jak 3",
to: "/docs/category/jak-3-galleries",
},
],
},
Expand Down
28 changes: 0 additions & 28 deletions scripts/gallery-updater/gallery-master.template

This file was deleted.

9 changes: 9 additions & 0 deletions scripts/gallery-updater/gallery-mdx.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: ___SIDEBAR-POSITION___
title: '___TITLE___'
description: '___DESCRIPTION___'
---

import Gallery from '@site/___GALLERY-SRC-PATH___';

<Gallery/>
16 changes: 14 additions & 2 deletions scripts/gallery-updater/gallery.template
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import ReactPlayer from 'react-player';

// NOTE - this file is generated at build time, don't touch it!
// - if you know of a better way to do this, contribute it!

export default function Gallery() {
return (
<div id="galleryContainer" className="container-fluid ms-1">
<section>
<div className="row">
<div className="col col--12">
<h2>___TITLE___</h2>
<div className="col">
<p>___DESCRIPTION___</p>
</div>
</div>
___ENTRIES___
</section>
</div>
);
}
Loading