map: don't create useless </ul><ul> sequences With the previous logic, same-level items would go down one level and then again up one level closing and re-opening UL tags each time. The resulting redundant lists caused whitespace layout issues in the rendered pages. Adjust the "moving up?" logic to check if the current item base is different from the previous item _base_. Adjust the "going down?" logic by moving it to an earlier phase and checking for (1) parent item not being what it should be and (2) remaining bits; the root is grown unconditionally as long as (2) is verified.
setup file ordering
rename use_pagespec to pagespec_match_list To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
map: switch to use_pagespec
change how dependency types are specified to add_depends Also, this fixes 2 bugs in dependency info.
remove explicit addition of dependencies for displayed pages that hack is not needed, thanks to pagespec influences calculation
fix add_depends to new api
map: Use a contentless dependency unless show= is specified. This makes simple maps efficient enough that they can be used on sidebars!
Revert "Allow add_depends to take an arrayref" This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change.
Allow add_depends to take an arrayref
calendar, inline, map: don't pre-join dependencies The new dependency handling works better (eliminates more duplicates) if dependencies are split up. On the same wiki mentioned in the previous commit, this saves about a second (i.e. 4%) on the same test.
Fix failure to close <ul> in maps with no items Signed-off-by: Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
pagespec_match_list added and used in most appropriate places * pagespec_match_list: New API function, matches pages in a list and throws an error if the pagespec is bad. * inline, brokenlinks, calendar, linkmap, map, orphans, pagecount, pagestate, postsparkline: Display a handy error message if the pagespec is erronious.
finalise version 3.00 of the plugin api
Coding style change: Remove explcit vim folding markers.
map: The fix for #449285 was buggy and broke display of parents in certian circumstances. The use of $dummy was not sufficient, because it only stuck around for the first element after a dummy parent, and was then lost. Instead, use a $addparent that contains the actual dummy parent, so it can be compared with the new item to see if we're still under that parent or have moved to another one.
fix my broken fix
fix off-by-one, and fix link The link was broken if the inserted dir was not under the destpage
fix links to inserted parent pages The parent page names had "/" prepended, which caused broken links.
add plugin safe/rebuild info (part 1 of 2) too many plugins.. brain exploding..