mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-05 16:06:15 +02:00
feat(archives): bootstrap what-is-archives from Github
This commit is contained in:
@@ -3,7 +3,7 @@ import { join, traversePathsToFiles } from "../../utils"
|
||||
|
||||
export default function useBuildTree(resources: IAllResourcesQuery) {
|
||||
const objects = resources.allFile.edges.map(({ node: file }: IFileQuery) =>
|
||||
traversePathsToFiles(file.relativePath.split("/"))
|
||||
traversePathsToFiles(file.relativePath.split("/"), "/resources")
|
||||
)
|
||||
|
||||
return join(objects)
|
||||
|
||||
Reference in New Issue
Block a user