1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/templates/package/content
KN4CK3R 8498e67309
Some NuGet package enhancements (#30280)
Fixes #30265

1. Read second type of dependencies
2. Render `Description` and `ReleaseNotes`

old:

![grafik](https://github.com/go-gitea/gitea/assets/1666336/abac057c-11cd-4d25-b196-01ff899d948e)

new:

![grafik](https://github.com/go-gitea/gitea/assets/1666336/35302273-740c-481a-a031-1f80d2d7d336)

The NuGet spec does not specify what kind of text can be stored in the
description but we can best guess markdown. The official NuGet registry
just [converts the newlines to html
lines](https://www.nuget.org/packages/rb.Firefox#readme-body-tab).

3. Extract and render the readme. This is the new and better place to
store larger text than in the description. The content is markdown.

![grafik](https://github.com/go-gitea/gitea/assets/1666336/f442264e-3735-4b55-92c4-3b89a8ebafb0)

---------

Co-authored-by: Benjamin Heemann <benjamin.heemann@raith.de>
2024-04-07 16:46:59 +00:00
..
alpine.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
cargo.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
chef.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
composer_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
composer.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
conan.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
conda.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
container.tmpl Remove unnecessary "Safe" modifier from templates (#29318) 2024-02-22 17:02:33 +00:00
cran.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
debian.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
generic.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
go.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
helm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
maven.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
npm_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
npm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
nuget.tmpl Some NuGet package enhancements (#30280) 2024-04-07 16:46:59 +00:00
pub.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
pypi.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
rpm.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
rubygems_dependencies.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00
rubygems.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
swift.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00
vagrant.tmpl Add <overflow-menu>, rename webcomponents (#29400) 2024-03-15 02:05:31 +00:00