Skip to content

Commit

Permalink
Merge pull request #187 from UnsignedArduino/staging
Browse files Browse the repository at this point in the history
Quick updates
  • Loading branch information
UnsignedArduino authored Oct 22, 2024
2 parents 2793349 + e67b3ab commit 40e4388
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 6 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ NEXT_PUBLIC_GROWTHBOOK_API_KEY=XXXXXXXXXXXXXXXX
// TinaCMS
NEXT_PUBLIC_TINA_CLIENT_ID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
TINA_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TINA_SEARCH_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TINA_PUBLIC_IS_LOCAL=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Extension } from "@/scripts/FetchListsFromCMS/types";
import React from "react";
import Link from "next/link";
import { smoothScrollHash } from "@/components/Linkable/Header";
import { AvatarImageRenderer } from "@/components/Blog/Elements";

export function ExtensionTableOfContents({
list,
Expand All @@ -13,6 +14,10 @@ export function ExtensionTableOfContents({
{list.map((ext) => (
<li key={ext.repo}>
<Link href={`#${ext.repo}`} onClick={smoothScrollHash}>
<AvatarImageRenderer
url={`https://github.com/${ext.author}.png?size=16`}
name={ext.author}
/>{" "}
{ext.repo}
</Link>
</li>
Expand Down
13 changes: 9 additions & 4 deletions src/components/AwesomeArcadeList/Tool/toolTableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Tool } from "@/scripts/FetchListsFromCMS/types";
import React from "react";
import Link from "next/link";
import { smoothScrollHash } from "@/components/Linkable/Header";
import { AvatarImageRenderer } from "@/components/Blog/Elements";

export function ToolTableOfContents({
list,
Expand All @@ -10,10 +11,14 @@ export function ToolTableOfContents({
}): React.ReactNode {
return (
<ul>
{list.map((ext) => (
<li key={ext.repo}>
<Link href={`#${ext.repo}`} onClick={smoothScrollHash}>
{ext.repo}
{list.map((tool) => (
<li key={tool.repo}>
<Link href={`#${tool.repo}`} onClick={smoothScrollHash}>
<AvatarImageRenderer
url={`https://github.com/${tool.author}.png?size=16`}
name={tool.author}
/>{" "}
{tool.repo}
</Link>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Blog/Elements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function ShortAuthorRenderer({
<>
<AutoLink href={`https://github.com/${author}`}>
<AvatarImageRenderer
url={`https://github.com/${author}.png`}
url={`https://github.com/${author}.png?size=16`}
name={author}
/>{" "}
{author}
Expand Down
10 changes: 10 additions & 0 deletions tina/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,27 @@ export default defineConfig({

clientId: process.env.NEXT_PUBLIC_TINA_CLIENT_ID,
token: process.env.TINA_TOKEN,
search: {
tina: {
indexerToken: process.env.TINA_SEARCH_TOKEN,
stopwordLanguages: ["eng"],
},
indexBatchSize: 100,
maxSearchIndexFieldLength: 100,
},

build: {
outputFolder: "admin",
publicFolder: "public",
},

media: {
tina: {
mediaRoot: "",
publicFolder: "public",
},
},

schema: {
collections: [
{
Expand Down
7 changes: 6 additions & 1 deletion tina/tina-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@
}
],
"config": {
"media": { "tina": { "publicFolder": "public", "mediaRoot": "" } }
"media": { "tina": { "publicFolder": "public", "mediaRoot": "" } },
"search": {
"tina": { "stopwordLanguages": ["eng"] },
"indexBatchSize": 100,
"maxSearchIndexFieldLength": 100
}
}
},
"lookup": {
Expand Down

0 comments on commit 40e4388

Please sign in to comment.