GithubHelp home page GithubHelp logo

Comments (10)

anuraghazra avatar anuraghazra commented on May 5, 2024 1

Thanks @forkbabu i'll see what i can do :D

from github-readme-stats.

nombrekeff avatar nombrekeff commented on May 5, 2024 1

Ohh, I see, definitely tricky... Didn't think about that... maybe just show the title and description and star count?

Even if you could highlight the code, you wouldn't want to show the full gist. I would imagine as it would take a lot of space.

from github-readme-stats.

dms24081999 avatar dms24081999 commented on May 5, 2024 1

Ohh, I see, definitely tricky... Didn't think about that... maybe just show the title and description and star count?

Even if you could highlight the code, you wouldn't want to show the full gist. I would imagine as it would take a lot of space.

Github Gist's doesn't have a title, it only has a Description(optional field), and Files(1 or multiple files) in same gist and gist URL (uniquely generated ID) and star can be counted.


Opt-1:

The project has to use unique ID (randomly generated by Github for Gists) instead of title, since description is optional.

Opt-2:

Let user enter the Gist title in the URL of the API /api?gist_title=Sample-for-Hello-world&....

Opt-3:

Let the user decide to use Unique ID of Gist as title OR enter title in the URL of the API.

from github-readme-stats.

nombrekeff avatar nombrekeff commented on May 5, 2024

That would be a cool addition :)

from github-readme-stats.

anuraghazra avatar anuraghazra commented on May 5, 2024

@nombrekeff yup, although i don't know how do i handle the syntax highlighting because github-readme-stat returns SVG images and it has to be static. so i think i might have to write a whole syntax highlighter for svg elements..

also SVG texts are not really optimal in terms of alignment, it's a real pain to get things where we want.

from github-readme-stats.

anuraghazra avatar anuraghazra commented on May 5, 2024

yes true... maybe i can just show the gists stats

from github-readme-stats.

nombrekeff avatar nombrekeff commented on May 5, 2024

I haven't looked at the source code yet, but I will be taking a look at it this evening and will try and help you out a bit with this.

from github-readme-stats.

anuraghazra avatar anuraghazra commented on May 5, 2024

Sound good to me :D

from github-readme-stats.

nathanchu avatar nathanchu commented on May 5, 2024

yup, although i don't know how do i handle the syntax highlighting because github-readme-stat returns SVG images and it has to be static. so i think i might have to write a whole syntax highlighter for svg elements..

also SVG texts are not really optimal in terms of alignment, it's a real pain to get things where we want.

The only solution I have is to use <foriegnObject> and Prism (which can be used backend I think). IMO the pinned gist card should look like a github pinned gist, so it should have a preview of the code...

from github-readme-stats.

anuraghazra avatar anuraghazra commented on May 5, 2024

I've decided that we won't include this feature even if it's possible since github-readme-stats is focused toward showing statistics and not the gist's contents, so it would be rather nice if we could do something like "Github Gist Stats" Which would show stats of total gists and stars on the gists but this gists card we won't include at the moment.

Feel free to open another issue for further discussions.

from github-readme-stats.

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.