Debian / debiman

debiman generates a static manpage HTML repository out of a Debian archive
Apache License 2.0
188 stars 46 forks source link

Please allow access to component and source package in the template #88

Closed bdrung closed 7 years ago

bdrung commented 7 years ago

I want to change the snapshot.debian.org URL in the manpagefooterextra.tmpl to point to our inhouse repository (directly to the pool subdirectory). To construct the URL, I need access to the component and source package name. Please make them available to the template renderer.

stapelberg commented 7 years ago

I just noticed that our links to snapshots.d.o are sometimes broken (e.g. for mandoc(1)) because they use the binary package where they should use the source package, so we have an interest in this change, too.

Currently, we drop all data not required for rendering as early as possible, so this change will require quite some plumbing. I hope I can get to it in the next few days.

stapelberg commented 7 years ago

This was easier than I originally thought. I also plumbed through the filename, so I’d recommend you just use {{ .Meta.Package.Filename }}.

bdrung commented 7 years ago

Thanks.