Skip to content

Commit

Permalink
fix content topic id
Browse files Browse the repository at this point in the history
  • Loading branch information
terrancrypt committed Jul 20, 2024
1 parent 26625dc commit 5bcae30
Show file tree
Hide file tree
Showing 18 changed files with 85 additions and 83 deletions.
166 changes: 83 additions & 83 deletions src/data/roadmaps/polkadot-sdk/polkadot-sdk.json
Original file line number Diff line number Diff line change
@@ -1,86 +1,86 @@
[
{
"phase_id": "1",
"phase_name": "Substrate",
"topics": [
{
"topic_id": "1-1-what-is-substrate",
"topic_name": "What is Substrate?",
"subtopics": [
{
"subtopic_id": "1-1-1-why-substrate",
"subtopic_name": "Why Substrate?"
}
]
},
{
"topic_id": "1-2-substrate-node-architecture",
"topic_name": "Substrate Node Architecture",
"subtopics": [
{
"subtopic_id": "1-2-1-blockchain-basic",
"subtopic_name": "Blockchain Basic"
},
{
"subtopic_id": "1-2-2-client-and-runtime-architecture",
"subtopic_name": "Client And Runtime Architecture"
},
{
"subtopic_id": "1-2-3-consensus",
"subtopic_name": "Consensus"
}
]
},
{
"topic_id": "1-3-FRAME",
"topic_name": "FRAME Runtime",
"subtopics": [
{
"subtopic_id": "1-3-1-what-is-frame-pallet",
"subtopic_name": "What is FRAME pallet?"
},
{
"subtopic_id": "1-3-2-rust-libraries",
"subtopic_name": "Rust Libraries"
}
]
},
{
"topic_id": "1-4-substrate-development-tool",
"topic_name": "Substrate Development Tool"
}
{
"phase_id": "1",
"phase_name": "Substrate",
"topics": [
{
"topic_id": "what-is-substrate",
"topic_name": "What is Substrate?",
"subtopics": [
{
"subtopic_id": "why-substrate",
"subtopic_name": "Why Substrate?"
}
]
},
{
"phase_id": "2",
"phase_name": "Cumulus",
"topics": [
{
"topic_id": "2-1-develop-a-parachain",
"topic_name": "Develop a parachain",
"subtopics": [
{
"subtopic_id": "2-1-1parachain-architecture",
"subtopic_name": "Parachain Architecture"
},
{
"subtopic_id": "2-1-2-parachain-pallet",
"subtopic_name": "Parachain Pallet"
},
{
"subtopic_id": "2-1-3-relaychain-and-parachain",
"subtopic_name": "Relaychain and Parachain"
},
{
"subtopic_id": "2-1-4-cross-chain-message",
"subtopic_name": "Cross-chain Message"
}
]
},
{
"topic_id": "2-2-cumulus-development-tool",
"topic_name": "Cumulus Development Tool"
}
},
{
"topic_id": "substrate-node-architecture",
"topic_name": "Substrate Node Architecture",
"subtopics": [
{
"subtopic_id": "blockchain-basic",
"subtopic_name": "Blockchain Basic"
},
{
"subtopic_id": "client-and-runtime-architecture",
"subtopic_name": "Client And Runtime Architecture"
},
{
"subtopic_id": "consensus",
"subtopic_name": "Consensus"
}
]
}
]
},
{
"topic_id": "FRAME",
"topic_name": "FRAME Runtime",
"subtopics": [
{
"subtopic_id": "what-is-frame-pallet",
"subtopic_name": "What is FRAME pallet?"
},
{
"subtopic_id": "rust-libraries",
"subtopic_name": "Rust Libraries"
}
]
},
{
"topic_id": "substrate-development-tool",
"topic_name": "Substrate Development Tool"
}
]
},
{
"phase_id": "2",
"phase_name": "Cumulus",
"topics": [
{
"topic_id": "develop-a-parachain",
"topic_name": "Develop a parachain",
"subtopics": [
{
"subtopic_id": "parachain-architecture",
"subtopic_name": "Parachain Architecture"
},
{
"subtopic_id": "parachain-pallet",
"subtopic_name": "Parachain Pallet"
},
{
"subtopic_id": "relaychain-and-parachain",
"subtopic_name": "Relaychain and Parachain"
},
{
"subtopic_id": "cross-chain-message",
"subtopic_name": "Cross-chain Message"
}
]
},
{
"topic_id": "cumulus-development-tool",
"topic_name": "Cumulus Development Tool"
}
]
}
]
2 changes: 2 additions & 0 deletions src/pages/[roadmapId]/[...topicId].astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import {
export async function getStaticPaths() {
const topicPathMapping = await getRoadmapTopicFiles();
console.log(topicPathMapping);
return Object.keys(topicPathMapping).map((topicSlug) => {
const topicDetails = topicPathMapping[topicSlug];
const roadmapId = topicDetails.roadmapId;
Expand Down

0 comments on commit 5bcae30

Please sign in to comment.