GithubHelp home page GithubHelp logo

Comments (6)

jackyzha0 avatar jackyzha0 commented on May 25, 2024 2

Currently, there's no reference tracing in Quartz to support this so this is 'working as intended' and not a bug but I agree that it would be a good enhancement to have

from quartz.

bluerosegarden avatar bluerosegarden commented on May 25, 2024

As a small update, I've tried to make a workaround/solution following the instructions on this stack exchange to create a glob pattern to filter out every non markdown file out of the vault except the attachments folder. This led me to the pattern{!(*.md),!(attachments)/**/!(*.md)}, however this will filter out ALL files in the root folder, including .md files regardless of their published status. I checked this on digital ocean's glob tool and it looks like it should've worked. Maybe I'm misunderstanding something? I hope this helps.

edit:
Using just !(attachments)/**/!(*.md) Almost works, but doesn't filter out any non-markdown content on the root level. This is enough of a workaround for the moment but the main issue still stands

from quartz.

bluerosegarden avatar bluerosegarden commented on May 25, 2024

Oh alright!! In that case I still believe the documentation should mention it on the private pages page. Should I make a PR?

from quartz.

jackyzha0 avatar jackyzha0 commented on May 25, 2024

Yes! Feel free to make a docs fix for it :) Oversight on my part haha thank you

from quartz.

jackyzha0 avatar jackyzha0 commented on May 25, 2024

(btw, Quartz uses fast-glob for globbing and it's slightly different from the unix glob: https://github.com/mrmlnc/fast-glob?tab=readme-ov-file#pattern-syntax)

from quartz.

bluerosegarden avatar bluerosegarden commented on May 25, 2024

(btw, Quartz uses fast-glob for globbing and it's slightly different from the unix glob: https://github.com/mrmlnc/fast-glob?tab=readme-ov-file#pattern-syntax)

OK THAT EXPLAINS SO MUCH... I'll also update the part of the docs mentioning "any valid glob works" to say "any valid fast-glob works", since despite it linking there I just went straight to the pattern tester hahaha

thank you 🙏

edit: FINALLY GOT SOMETHING WORKING. The following two glob patterns will filter out any non-markdown items except for those in attachments. The reason it has to be split up into two patterns is because I couldn't figure out how to match both root-level files and sub-directories while including an exception for the attachments folder.

"!(attachments)**/!(*.md)", "!(*.md)"

and if you have more than one attachments folder, use this instead

"**/!(attachments)**/!(*.md)", "!(*.md)"

Alright now it's time to update the docs 👍

from quartz.

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.