Comments (8)
@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.
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.
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.
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.
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.
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.
ah thats very easy then
from scc.
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)
- Unable to use multiple count-as flags HOT 5
- GNUmakefile is not recognized as Makefile HOT 1
- Recognize file type base on mime type HOT 8
- --exclude-dir doesn't exclude directories HOT 5
- Shields like style HOT 2
- Different Results on Windows and Linux HOT 5
- Cut new release? HOT 2
- Why CUDA files are not supported? HOT 2
- scc handle .gitignore are unexpected HOT 2
- error in Ubuntu 18.06: file or directory does not exist HOT 4
- Wrong language Complexity/Lines calculation when using -wide
- scc version 3.2.0 fails to compile with 32 bit golang toolchain in Windows HOT 3
- "Arvo" should be "Avro" HOT 1
- Add Templ Support
- Let badge exclude/include some folders HOT 4
- scc includes the .ignore file as part of the project counting HOT 4
- Feature Request Azure Bicep Support HOT 4
- RISCV assembly - can't count comments HOT 2
- Incorrect calculation of the number of lines in a badge if it was added to the repository at the start HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scc.