Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display a specific file only #5

Open
raphaelbastide opened this issue Jul 2, 2012 · 8 comments
Open

Display a specific file only #5

raphaelbastide opened this issue Jul 2, 2012 · 8 comments

Comments

@raphaelbastide
Copy link

Is single file display planned? If for example I want to display a README.md
I think It can be interesting to create a GitHub powered website this way, what are your thoughts?

@darcyclarke
Copy link
Owner

Hey Raphael,

Appreciate the feedback. I'm going to set this as a feature request and get to work on some kind of implementation for sure. Right now you can view single files once you click on them but I think it would be cool to just showcase an individual file by default as well. Let me know if that's what you were thinking.

@raphaelbastide
Copy link
Author

Nice, just for your information (and inspiration), here is a project of mine that needed to import a README, and some other files. That is why I am really interested by you project.

@ghost
Copy link

ghost commented Jul 4, 2012

👍

@thomasklemm
Copy link

The Github API has an (I believe) fairly new call that will return any repo's Readme. (See Get a Readme (Github API).) If some specific headers are set in your request the API in HTML containing i.e. all the Syntax Highlighting that Github Flavoured Markdown offers.

@darcyclarke Great work on Repo.js. It would be great however if it would allow for embeding a Readme in rendered HTML instead of unrendered Markdown.

Background: I was looking for a way to embed a Readme in a project of mine, stumbled on Repo.js, and wrote a basic jQuery Plugin I extracted and called Readme.js.

Bye, Thomas

@ghost
Copy link

ghost commented Jul 6, 2012

@thomasklemm that is good info, but I would still like the option to embed individual files other than the README

@thomasklemm
Copy link

@svnpenn Gist-It might be what you are looking for until Repo.js offers this feature.

@ghost
Copy link

ghost commented Jul 7, 2012

@thomasklemm I have already created a ruby plugin that implements this functionality. I would prefer a Repo.js implementation over what I have written or some other Gist-it. Please stay on topic.

@thomasklemm
Copy link

Sure, just trying to help here with some related solutions I stumbled upon while searching for how to embed a Readme.
There's nothing as powerful as Repo.js out there, and I sure would favour an implementation of this feature as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants