First we need to parse the content of the repository:
Create 1 json file:
. Relations.json: Relations between file
. Explorer.json:
Facts:
A file is mentioned in another file by use of [[This is first file]].
Every .md has unique name
this unique name is the id of the file
filePath is relative path of the file from root directory example: folder1/folder2/This is first file.md
urlPath is created from the file name. The urlPath is also unique and has some rules while being created. example: This_is_first_file is the urlPath of the This is first file.md
backlinks are the id of other nodes that mentions the file in its content.
forwarlinks are the id of the nodes/files that are mentioned inside this file.