tearust / website

The Unlicense
0 stars 1 forks source link

Add obsidian links support in docservices #1

Closed kevingzhang closed 3 years ago

kevingzhang commented 3 years ago

We will use Obsidian as our main markdown writing tool. The obsidian has link features which are the most important features. The [[link]] in obsidian will not directly convert to HTML link. So we may need to do the link conversion on our own.

We support three kinds of link

If a folder support Obsidian, there will be a folder called .obsidian. There will be a file .obsidian/config in JSON format. Open this json object, check the "newFileLocation":"current". If it is current (it should be ), then we know that all [[link_file_location]] should be in the same folder as the parent file. If the "newFileLocation" is not "current", the link md files should be the same folder where .obsidian folder located.

Please replace all [[links]] to tag so that user can click the hyper link in browser when visiting our website

kevingzhang commented 3 years ago

I saw your latest commit. based on the code, you have not solved the # tag yet. am I right?

liyangwood commented 3 years ago

Done with discussion. https://github.com/tearust/tea-docs/tree/main/test This is the sample folder structure. if test. please uncomment the https://github.com/tearust/tea-docs/blob/main/config.yaml#L80.