Giter Club home page Giter Club logo

Comments (8)

boyter avatar boyter commented on August 23, 2024

@nektro got some examples of how you would expect it to work and the repos it would be pulling from?

Its not hard to do actually, just I don't think I have an account.

from scc.

nektro avatar nektro commented on August 23, 2024

i particularly wanted to add https://github.com/boyter/scc#badges-beta to the README of https://git.sr.ht/~nektro/magnolia-desktop

from scc.

nektro avatar nektro commented on August 23, 2024

so i imagine the badge url would either be hardcoded to the main instance like https://sloc.xyz/git.sr.ht/~nektro/magnolia-desktop or generic over self hosted ones as well eg https://sloc.xyz/sourcehut/git.sr.ht/~nektro/magnolia-desktop

from scc.

nektro avatar nektro commented on August 23, 2024

depending on how sloc.xyz is architected, the former could be ideal from a user's perspective as then it would be identical to the http git clone path and be able to support other self hosting options as well

from scc.

boyter avatar boyter commented on August 23, 2024

Yep thats how I would do it. So long as it follows the same pattern then no problem.

What does the git repo for that example you have look like though? I need to convert

https://sloc.xyz/git.sr.ht/~nektro/magnolia-desktop

to a git repo under the hood to ensure it works.... I guess I could create an account, but if you have it handy I can probably do this now.

from scc.

nektro avatar nektro commented on August 23, 2024

https://git.sr.ht/~nektro/magnolia-desktop is a valid git clone url so the idea if you take the request path to sloc which in this case would be /git.sr.ht/~nektro/magnolia-desktop, trim the leading /, and prepend https://

from scc.

boyter avatar boyter commented on August 23, 2024

ah thats very easy then

from scc.

boyter avatar boyter commented on August 23, 2024

So easy in fact I totally forgot about it.

https://sloc.xyz/sr.ht/~nektro/magnolia-desktop/

Works now though.

Will also work got git.sr.ht, just in case you forget to tweak it.

https://sloc.xyz/git.sr.ht/~nektro/magnolia-desktop/

I also tweaked the README.md to have examples for each provider https://github.com/boyter/scc#a-example-for-each-supported-provider just to make things easier for everyone.

from scc.

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.