-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Feature request: Embeddable .js option #8110
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
I just wanted to say that there are other people out there (i.e. me) that would like to have this feature :) |
folding this into #16670 |
I'd love to have the option to get an embeddable link to a file when viewing any specific file in a repo.
Example:
On GH you can create Gists, and once you do, it offers an option to copy an embeddable .js file that you can put on any other site. If you're not already familiar with it, it looks like this:
Which gives you a script like:
<script src="https://gist.github.com/STaRDoGG/70bc7807cfdb2a88a04dcad8474dbd07.js"></script>
And then once run on a site, shows you the code, all pretty and formatted, etc.
It'd be awesome to be able to do the same thing with any file in a repo in Gitea as well, so we can embed code from our own repos into other sites.
Perhaps just clone and modify the Gist .js file and modify it to work with Gitea?
The text was updated successfully, but these errors were encountered: