Closed
Description
Needs and benefits
- mindmaps of My Stars
- mindmaps of Repos | "My repositories" sorting
- mindmaps of Issues
- mindmaps of misc
Feature Description
...
View Source
- View Rendered
+ View Rendered
+ View MarkMap
Raw
Permalink
...
Screenshots
References & Solutions
- https://markmap.js.org/repl
- https://docs.gitea.com/administration/external-renderers
- https://discourse.gitea.io/t/how-to-render-jupyter-notebooks-on-gitea-blog/5134/2
- https://blog.gitea.io/2022/04/how-to-render-jupyter-notebooks-on-gitea/
- Allow render HTML with css/js external links #19017
view_file.tmpl
{{if .HasSourceRenderedToggle}}
<div class="ui compact icon buttons two-toggle-buttons">
<a href="{{$.Link}}?display=source" class="ui mini basic button tooltip {{if .IsDisplayingSource}}active{{end}}" data-content="{{.locale.Tr "repo.file_view_source"}}" data-position="bottom center">{{svg "octicon-code" 15}}</a>
<a href="{{$.Link}}" class="ui mini basic button tooltip {{if .IsDisplayingRendered}}active{{end}}" data-content="{{.locale.Tr "repo.file_view_rendered"}}" data-position="bottom center">{{svg "octicon-file" 15}}</a>
+ <a href='{{AppSubUrl}}/assets/API-Editor/index.html?{{AppSubUrl}}{{$.RawFileLink}}' class="ui mini basic button">{{svg "octicon-eye" 15}}</a>
</div>
{{end}}
{{if not .ReadmeInList}}