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

Feature request: Embeddable .js option #8110

Closed
STaRDoGG opened this issue Sep 5, 2019 · 5 comments
Closed

Feature request: Embeddable .js option #8110

STaRDoGG opened this issue Sep 5, 2019 · 5 comments
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality

Comments

@STaRDoGG
Copy link

STaRDoGG commented Sep 5, 2019

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:

image

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?

@sapk sapk added the type/enhancement An improvement of existing functionality label Sep 5, 2019
@stale
Copy link

stale bot commented Nov 4, 2019

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.

@stale stale bot added the issue/stale label Nov 4, 2019
@lunny
Copy link
Member

lunny commented Nov 5, 2019

@stale stale bot removed the issue/stale label Nov 5, 2019
@stale
Copy link

stale bot commented Jan 4, 2020

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.

@stale stale bot added the issue/stale label Jan 4, 2020
@lunny lunny added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label Jan 4, 2020
@stale stale bot removed the issue/stale label Jan 4, 2020
@csarn
Copy link

csarn commented Jun 3, 2022

I just wanted to say that there are other people out there (i.e. me) that would like to have this feature :)

@techknowlogick
Copy link
Member

folding this into #16670

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/enhancement An improvement of existing functionality
Projects
None yet
Development

No branches or pull requests

5 participants