Allow link to other pages in table entry#12
Allow link to other pages in table entry#12MihaiAnca13 wants to merge 1 commit intodragonman225:masterfrom
Conversation
|
I've just tested this some more and it doesn't work with caching, unfortunately. Other than that, it seems fine! |
|
@MihaiAnca13 I would like to try this fix locally on my system. Could you tell where one would typically expect to find the notablog source files? I installed notablog via |
|
Hi @JanakyMurthy. If you are using Linux: when you install notablog globally using npm, it creates a symlink in /usr/local/bin/notablog. If you use If you are using windows, please have a look here. Let me know if you need more help. |
@MihaiAnca13 Thanks, I was able to find where the notablog repo was. However I was not able to find a I am assuming npm install does not copy the source files. Suppose I copy the |
|
@JanakyMurthy Here's how I did it:
Now, if you run notablog in your terminal, it should point to the repo and use the src files you have there without any need to recompile. |
@MihaiAnca13 , thank you. I got the symlinks updated. But Reverting back to old symlinks somehow fixes this. Note: I have cloned this repo at |
|
@JanakyMurthy |
|
@dragonman225 any update on when this pull request will be merged? I am not able to modify the source code now as I have |
|
Hi, it's not likely to be merged since the codebase has changed too much. |
@dragonman225 Say Page 1 has a text that links to subpage 2. When I export it using notablog the url of subpage 2 is a notion url instead of a local url. I understand that it is too much to ask for this use case for an arbitrary subpage 2. But suppose subpage 2 is a valid blog post (Say it is in the table) - then how do we reference it? |
I am also wondering if this can be done for an arbitrary subpage 2? what are the complications that can arise? Suppose we have a function that can generate distinct local-urls for given notion-url, then can this be done too? |
I added a bit of code that checks and re-maps the properties of an entry if the title is actually a link to another page. I'm sure you can find a better way to access the 'title' and 'uri', but I have very basic knowledge of javascript and could only make it work. I hope this would help others as well! Please let me know if you need me to explain anything.