Giter Site home page Giter Site logo

Comments (1)

secure-77 avatar secure-77 commented on May 18, 2024

Hi @athshean,

Yes, at the moment this won't work because only one metadata.json is supported.

The problem is, that:

  • The metadata.json needs to be located in the root of the NOTES_PATH or perlite folder (if none is defined).
  • Because of the relative paths in the metadata.json, the file needs to be in the root folder of the vault.

Example 1 (no vault defined):

-perlite
--metadata.json
--test.md
--test2.md

Example 2 (vault1 defined)
-perlite
--vault1
---metadata.json
---test.md
---test2.md

What should work is: copy the contents of all your vaults into the perlite folder and also merge all the metadata.json files into one that you provide in the perlite folder. Then Perlite will act like a "vault" and the graph should work.
If you want to keep your vault root folders for the structure and menu as well, you will need to adjust/expand the contents of each metadata.json vault to include the vault name before each relativePath key, you will also need to add another ../ before each displayText key. A simple Python script should automate this task.

To get the demo graph working without defining a NOTES_PATH, you can copy the contents of the demo folder to the perlite folder, provide the metadata.json in the Perlite folder as well, and the graph should work.

So this is not a bug, it's just not implemented yet... I will think about it, maybe i can implement it in the future.

BR,
Sec77

from perlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.