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
10 changes: 0 additions & 10 deletions docs/data-points/_category_.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/developers/talent-api/api-reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Base URL: `https://api.talentprotocol.com/`
- [**Score Data**](/docs/developers/talent-api/api-reference/get-a-specific-score-using-wallet-scorer-slug-talent-id-or-account-identifier): `/score` - Get Builder Score and other scoring information
- [**Farcaster Scores**](/docs/developers/talent-api/api-reference/get-the-score-of-farcaster-accounts): `/farcaster/scores` - Get the Builder Score of Farcaster users
- [**Credentials Data**](/docs/developers/talent-api/api-reference/get-the-score-and-the-credentials-using-wallet-scorer-slug-talent-id-or-account-identifier): `/credentials` - Get the points each data point contributed to the Builder Score
- [**Data Points**](/docs/data-points): `/data_points` - Get the data points providing a list of slugs and for a Talent profile
- [**Data Points**](https://talent.app/~/data): `/data_points` - Get the data points providing a list of slugs and for a Talent profile
- [**Account Data**](/docs/developers/talent-api/api-reference/get-account-using-wallet-talent-id-or-account-identifier): `/accounts` - Get connected accounts information
- [**Social Data**](/docs/developers/talent-api/api-reference/get-socials-using-wallet-talent-id-or-account-identifier): `/socials` - Get connected social media information
- [**Projects**](/docs/developers/talent-api/api-reference/get-projects-created-by-the-talent-profile): `/projects` - Get projects created by ID or account identifier
Expand Down
2 changes: 1 addition & 1 deletion docs/developers/talent-api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ Integrate the Builder Score to help great builders stand out in your app.

Access verified reputation data to identify and engage with real builders in your app.

Our API provides Builder Scores, identity verification, and hundreds of other [data points](/docs/data-points)
Our API provides Builder Scores, identity verification, and hundreds of other [data points](https://talent.app/~/data)
through simple, reliable endpoints.
2 changes: 2 additions & 0 deletions docs/protocol-concepts/data-point.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ sidebar_position: 4

A Data Point is specific type of reputation data about a given user.

Explore data indexed by Talent at [https://talent.app/~/data](https://talent.app/~/data).

## Key Attributes:

- A Data Point provides a verified fact about a user's reputation at a given point in time.
Expand Down
38 changes: 23 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,31 @@ import webpack from "webpack";
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)

const replaceAutogeneratedWithSidebarFile = (sidebarItems) => {
return sidebarItems.map((item) => {
if (Array.isArray(item.items)) {
if (item.customProps?.autogenerate === false) {
const fs = require("fs");
const path = require("path");
const sidebarFilePath = path.resolve(item.customProps.sidebarFile);
const sidebarModule = require(sidebarFilePath);
item.items = sidebarModule.default || sidebarModule;
return item;
} else {
item.items = replaceAutogeneratedWithSidebarFile(item.items);
return item;
return sidebarItems
.filter((item) => {
// Filter out Data Points category entirely
if (item.label === "Data Points" || item.id === "data-points") {
return false;
}
return true;
})
.map((item) => {
if (Array.isArray(item.items)) {
if (item.customProps?.autogenerate === false) {
const fs = require("fs");
const path = require("path");
const sidebarFilePath = path.resolve(item.customProps.sidebarFile);
const sidebarModule = require(sidebarFilePath);
item.items = sidebarModule.default || sidebarModule;
return item;
} else {
item.items = replaceAutogeneratedWithSidebarFile(item.items);
return item;
}
}
}

return item;
});
return item;
});
};

/** @type {import('@docusaurus/types').Config} */
Expand Down
16 changes: 15 additions & 1 deletion plugins/docusaurus-plugin-gen-data-points/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ ${dataIssuer.description || `${dataIssuer.name} data points`}
console.log(`Generated ${filePath}`);
}

// Generate index.mdx file
const indexFilePath = path.join(outputDir, "index.mdx");
const indexContent = `---
sidebar_position: 1
---

# Data Points

Explore data indexed by Talent at [https://talent.app/~/data](https://talent.app/~/data).
`;
fs.writeFileSync(indexFilePath, indexContent);
console.log(`Generated ${indexFilePath}`);

console.log("✅ Generation complete!");
});
cli
Expand All @@ -80,7 +93,8 @@ ${dataIssuer.description || `${dataIssuer.name} data points`}
if (fs.existsSync(outputDir)) {
fs.readdirSync(outputDir).forEach((file) => {
const filePath = path.join(outputDir, file);
if (filePath.endsWith(".mdx")) {
// Preserve index.mdx - don't delete it
if (filePath.endsWith(".mdx") && file !== "index.mdx") {
console.debug(`Removing file: ${filePath}`);
// Remove the file
fs.unlinkSync(filePath);
Expand Down