Giter VIP home page Giter VIP logo

Comments (5)

rgroves avatar rgroves commented on July 18, 2024

I'm currently working on this so I can then move #26 forward.

@JugglerX What do you want the cutoff date for determining the "stale" status? A hardcoded date of January 1st, 2018 is being used. It should likely be based on a calculation from the current date. Is something like current date minus one year acceptable (so a repo without a commit in the past year would be considered stale)? Or should the period be shorter than a year?

from jamstackthemes.

JugglerX avatar JugglerX commented on July 18, 2024

@rgroves thanks for the PR with the scrub script. I did some work today which generates the github_branch and last_commit data in the generate-github.js - So this is available in data/themes.json

I was able to run scrub-themes.js and add the github_branch to the markdown files, which is nice. I also used it to generate a submission date for each theme. If we are going to be modifying the markdown files programmatically we need to decouple from using git info as the themes "submission date"

I tested the scrub script to generate stale data and it does, great! But I think this data should live in the data/themes.json not in the markdown. Let me know if you want to do that otherwise I can make the changes.

Really appreciate your work on this, thanks! :)

from jamstackthemes.

rgroves avatar rgroves commented on July 18, 2024

Sorry, I originally misunderstood where the stale flag should reside. I can work on moving this into data/themes.json via the generate-github.js script.

from jamstackthemes.

JugglerX avatar JugglerX commented on July 18, 2024

Ok sure. I agree it should exist in generate-github.js. stale flag is something we can update every build.

Broadly speaking. We want to avoid modifying the markdown files as much as possible. The scrub script should be used to make major updates to the markdown files when otherwise unavoidable.

from jamstackthemes.

rgroves avatar rgroves commented on July 18, 2024

That makes sense. Will have a PR for this later today.

from jamstackthemes.

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.