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

Quick updates #187

Merged
merged 2 commits into from
Oct 22, 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
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
Loading