Simple way to integrate Astro with Obsidian

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 22

  • @nikolovlazar
    @nikolovlazar  Рік тому +3

    Instructions for Windows users by Marco Campos (madcampos.dev):
    On Windows you can achieve this using mklink on cmd or New-Item on powershell:
    > mklink /D "" ""
    > New-Item -ItemType SymbolicLink -Path "" -Target ""
    Note that you have to either do this as Administrator or enable "developer mode" to do it without Administrator permissions.
    ss64.com/nt/mklink.html
    learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/new-item?view=powershell-7.4#example-7-create-a-symbolic-link-to-a-file-or-folder

    • @canowyrms
      @canowyrms 11 місяців тому

      For Windows, look up "Link Shell Extension". It's the easiest way to create symlinks, junctions, etc. and you do it right from File Explorer.

  • @Nextrix
    @Nextrix Рік тому +6

    On windows you need to make a Junction (mklink /J "path to junction link" "path to target folder"), not a symlink. Unless you are using WSL for a virtual Linux container. This is the only way to make sure the contents are also saved in your Astro Git repository. As for Linux and MacOS, also make sure the symbolic link reference path is relative to the repository or the contents will not be added to your Git repo. You can use the relative flag (ln -sr ... ...) to achieve this.

    • @TiBO_Uke
      @TiBO_Uke 5 місяців тому

      I also faced the same issue of not having the folder show up in the git repository and it therefore didn't sync/deploy to Netlify. Thanks for pointing toward a solution, it seems to be working (for now)

  • @evan_ry
    @evan_ry Рік тому +1

    Just what I needed, thank you man!
    Subscription deserved :D

  • @StrangeStar141
    @StrangeStar141 Рік тому +1

    Hey, thank you! I know about symlinks and use them occasionally, but it never came to mind that I can do this! This method should work on other markdown based websites too, not just Astro!

    • @nikolovlazar
      @nikolovlazar  Рік тому

      Totally! That's what I like about it. It's framework agnostic.

  • @zachshirow
    @zachshirow 9 місяців тому

    I love this video. Saves me quite a hassle. Thanks man.

  • @murtadha96
    @murtadha96 3 місяці тому

    This is great but I'm wondering why not just open the vault at the src/content directory and avoid all the symlinking? You don't need to open the vault at the root of the project. Also, you can just bring over the images to a directory inside the src/content directory as well and do the image referencing that way (relative). And the .Obsidian directory will be created at the root of the src/content directory as well, where is more convenient.

    • @nikolovlazar
      @nikolovlazar  3 місяці тому

      Yeah for simpler setups that's the way to go. I wanted to add my website's content folder in my existing vault, in which I have my whole knowledge base, so symlinks were the solution to achieve that.

  • @losource
    @losource Рік тому

    This is such a great idea. Thanks!

  • @alptugan
    @alptugan 9 місяців тому +1

    Thanks for the neat tip!

  • @navaneeth6157
    @navaneeth6157 Рік тому +1

    good video

  • @IgorDoesFrontend
    @IgorDoesFrontend Рік тому +2

    checkout frontmatter cms

  • @michbushi
    @michbushi Рік тому +3

    of course you can create links on windows, duh

    • @michbushi
      @michbushi Рік тому +4

      ...but great video otherwise, thank you. Dunno why I started with criticism. My bad. Have a good one, buddy.

    • @nikolovlazar
      @nikolovlazar  Рік тому +1

      Thank you. I know it should be possible. Since I don't have a way to learn and validate how links work in Windows, and I didn't want to sound like an expert in things I'm not, I left that part for y'all to figure it out 😁 have a good one!