manned/www
Yorhel 659b7afece Implement man selection algorithm in SQL + fix various related bugs
Man selection has to be performed over several thousand rows in some
cases. Loading all those in Perl and then doing the selection isn't very
efficient[1]. The getman() implementation was also buggy: The comparison
function used to determine which man page should be preferred was not
associative[2], and the result thus depended on the order in which the
man pages were compared. This resulted in some wrong selections in some
cases.

While I was at it, I also made the selection more strict:
- /man/unknown-hash would previously ignore the hash and just select
  whatever man page. Now it results in a 404.
- Same with /man.unknown-section
- /man.section/hash is now disallowed, it's either /man.section or
  /man/hash.

1) Note that all possible man pages are currently still loaded into Perl
anyway, because the ugly navigation menu on the right needs them. I plan
to revamp that entire menu to be more efficient and usable.

2) Initially I wrote the SQL implementation in a similar fashion to the
Perl implementation, and ended up with the same bug. I wasted more than
a day before I finally got to the current CTE query.
2016-10-09 09:10:40 +02:00
..
images Added FreeBSD icon + description and future ideas on about page 2012-08-14 20:26:05 +02:00
favicon.ico Added crappy favicon.ico to get rid of 404's 2012-07-19 12:29:13 +02:00
index.pl Implement man selection algorithm in SQL + fix various related bugs 2016-10-09 09:10:40 +02:00
man.css Improved layout of package page 2016-10-06 14:43:07 +02:00
man.js Remove HTML-formatted man pages 2016-10-03 20:04:23 +02:00