Git Product home page Git Product logo

Comments (7)

peterbe avatar peterbe commented on August 18, 2024 1

Even that isn't trivial. E.g. you can only become a member being by being one of the other members :)
Because that would require first traversing all existing documents to build up the set of allowed tag strings.

But there are other tricks we could consider such as a dedicated CLI tool that you manually execute once.
It could produce a little report that lists each tags and how often they appear. If a tag is the same as most others but in an unusual case, it could be highlighted.

from yari.

peterbe avatar peterbe commented on August 18, 2024

pages under a tag case-insensitive.

Yes please! But it won't stop someone from typing proprety.

I went through the same problem with my Firebase app I'm hacking on. It's a document store so I basically rely on typing the same string exactly identical in multiple locations of the database. Sucks but everything as its trade-offs.

But how do you know what the valid tags are? Do you need to intimately know exactly what the relevant KS macro expects?
I.e. it's "attribute" not "member".
Does there exist a list somewhere?

We might want to transfer this issue to mdn/yari.

from yari.

peterbe avatar peterbe commented on August 18, 2024

By the way, we could easily validate slugs and use the Flaw system to highlight the ones we don't like. But I still don't understand how you're supposed to know which ones are valid in the first place?

We can also break this down and switch to case insensitivity first if you think that's smart.

from yari.

jpmedley avatar jpmedley commented on August 18, 2024

I only intended to imply that we do it for certain known and previously standardized tags. Doing more than that is a longer discussion.

from yari.

jpmedley avatar jpmedley commented on August 18, 2024

We already have a list of standard tags. All I'm advocating here duplicating functionality that we had when this was a wiki. It's worth duplicating because that functionality prevented a lot of pain and an enormous amount of technical debt.

from yari.

himanshugarg avatar himanshugarg commented on August 18, 2024

From #7456

We might want to transfer this issue to mdn/yari.

from yari.

Rumyra avatar Rumyra commented on August 18, 2024

I'm going to move this issue to yari (as that's where it should live) but I'm going to add the on-hold label. From what i understand we are only using tags for experimental, deprecated et al and if we're able to power that a different way (say from bcd) we should be able to remove them.

Having said that this issue reminds us to validate front matter as a whole.

from yari.

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.