mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-27 08:48:46 +00:00
* Improve how generators are listed on home * Add some icons for generators * Remove debug * Refactor cachedFetch and use generated changelogs * Add limit to how many changes are shown by default * Add more generator icons * Refactor cards * Fix generator icons for light theme * Add more worldgen icons * Add remaining generator icons * Refactor navigation and badges style * Group on homepage for guides and tools * Fix header button style * Add versions and technical changelog to homepage * Make it clear that not all changes could be documented
21 lines
365 B
TypeScript
21 lines
365 B
TypeScript
export interface Guide {
|
|
id: string,
|
|
title: string,
|
|
versions?: string[],
|
|
tags?: string[],
|
|
}
|
|
|
|
declare var __GUIDES__: Guide[]
|
|
|
|
export function getGuides() {
|
|
return __GUIDES__
|
|
}
|
|
|
|
export function getGuide(id: string): Guide {
|
|
const guide = getGuides().find(g => g.id === id)
|
|
if (guide === undefined) {
|
|
return { id, title: 'Unknown Guide' }
|
|
}
|
|
return guide
|
|
}
|