aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/map.pm
Commit message (Collapse)AuthorAge
* map: postprocess to collapse useless </ul><ul> sequencesSimon McVittie2013-02-24
| | | | | | This re-fixes the same bug as 2d5c2f30, but without introducing malformed HTML in some situations. This is not a very elegant solution, but it has the advantage of passing more tests.
* Optionally add indentation to mapsSimon McVittie2013-02-24
| | | | | | | | | | | | | | | | | | | | | This makes them easier to debug by showing the structure. Sample output when $spaces is set to 4 spaces: <div class='map'> <ul> <li> <a href="../alpha" class="mapparent">alpha</a> <ul> <li> <a href="../alpha/1" class="mapitem">1</a> </li> </ul> </li> <li> <a href="../beta" class="mapitem">beta</a> </li> </ul> </div>
* Revert "map: don't create useless </ul><ul> sequences"Simon McVittie2013-02-24
| | | | This reverts commit 2d5c2f301c04a3daa3164a2df70899fa2c1aaa38.
* map: don't create useless </ul><ul> sequencesGiuseppe Bilotta2011-02-09
| | | | | | | | | | | | | 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 orderingJoey Hess2010-02-12
|
* rename use_pagespec to pagespec_match_listJoey Hess2009-10-08
| | | | | To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
* map: switch to use_pagespecJoey Hess2009-10-08
|
* change how dependency types are specified to add_dependsJoey Hess2009-10-08
| | | | Also, this fixes 2 bugs in dependency info.
* remove explicit addition of dependencies for displayed pagesJoey Hess2009-10-07
| | | | that hack is not needed, thanks to pagespec influences calculation
* fix add_depends to new apiJoey Hess2009-10-05
|
* map: Use a contentless dependency unless show= is specified.Joey Hess2009-10-04
| | | | This makes simple maps efficient enough that they can be used on sidebars!
* Revert "Allow add_depends to take an arrayref"Joey Hess2009-08-25
| | | | | | This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change.
* Allow add_depends to take an arrayrefSimon McVittie2009-08-25
|
* calendar, inline, map: don't pre-join dependenciesSimon McVittie2009-08-24
| | | | | | 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 itemsharishcm2009-07-25
| | | | Signed-off-by: Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
* pagespec_match_list added and used in most appropriate placesJoey Hess2009-04-23
| | | | | | | | * 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 apiJoey Hess2008-12-23
|
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
|
* map: The fix for #449285 was buggy and broke display of parents in certian ↵Joey Hess2008-08-23
| | | | | | | | | | 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 fixJoey Hess2008-08-23
|
* fix off-by-one, and fix linkJoey Hess2008-08-23
| | | | The link was broken if the inserted dir was not under the destpage
* fix links to inserted parent pagesJoey Hess2008-08-23
| | | | The parent page names had "/" prepended, which caused broken links.
* add plugin safe/rebuild info (part 1 of 2)Joey Hess2008-08-03
| | | | too many plugins.. brain exploding..
* bugfixes for show=titleJoey Hess2008-06-15
| | | | | | | | Can't sort by titles; the tree building logic requires that the list be sorted by page name. Setting linktext => $page is not the same as omitting it entirely. So some contortions to only set linktext when the page name is not being shown.
* check that parent hash exists, to avoid creating itJoey Hess2008-06-15
|
* note about titles and dependenciesJoey Hess2008-06-15
|
* map: Add a "show" parameter. "show=title" can be used to display page ↵Joey Hess2008-06-15
| | | | titles, rather than the default page name. Based on a patch from Jaldhar H. Vyas, Closes: #484510
* * map: Fix handling of common prefix to handle the case where it'sJoey Hess2007-12-28
| | | | in a subdirectory. Patch by Larry Clapp.
* * meta: Drop support for "meta link", since supporting this for internalJoey Hess2007-12-16
| | | | * map: Don't inline images.
* * map: Recent changes caused unnecessary ul's to be inserted for itemsJoey Hess2007-11-07
| | | | that were all at the same level, fix. Closes: #449285
* $common_prefix may never get definedjoey2007-09-22
|
* fix htmljoey2007-09-22
|
* * map: Render pages on the way to subpages whose parent pagesjoey2007-09-22
| | | | | | are not included in the map. Include special styling for such pages. * map: Remove common prefixes and don't over-indent. * Add class option to htmllink().
* * map: Render empty nodes on the way to subpages whose parent pagesjoey2007-09-21
| | | | | are not included in the map. * map: Fix valid html issue.
* * tag: Add taglink preprocessor directive, supporting visible tag links.joey2007-09-20
| | | | | * map: Fully specify paths to links to avoid issues when the bestlink didn't point to the correct page.
* * Make the map plugin notice when pages in the map are deleted and updatejoey2007-07-25
| | | | it.
* * pagespec_match() has changed to take named parameters, to better allowjoey2007-04-27
| | | | | | | | | for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.
* * Changed calling convention for httmllink slightly. The first threejoey2007-02-20
| | | | | | | | | | parameters remain the same, but additional options are now passed in using named parameters. * Change plugin interface version to 1.02 to reflect this change. * Add a new anchor option to htmllink. Thanks Ben for the idea. * Support anchors in wikilinks. * Add a "more" plugin based on one contributed by Ben to allow implementing those dreaded "Read more" links in blogs.
* * Patch based on a patch from Ethan to support relative matching injoey2007-02-06
| | | | | PageSpecs, by using "./". pagespec_match() has grown a new third parameter to support this.
* * Work on firming up the plugin interface:joey2006-09-09
| | | | | | | | | | | | | | | | | | | - Plugins should not need to load IkiWiki::Render to get commonly used functions, so moved some functions from there to IkiWiki. - Picked out the set of functions and variables that most plugins use, documented them, and made IkiWiki export them by default, like a proper perl module should. - Use the other functions at your own risk. - This is not quite complete, I still have to decide whether to export some other things. * Changed all plugins included in ikiwiki to not use "IkiWiki::" when referring to stuff now exported by the IkiWiki module. * Anyone with a third-party ikiwiki plugin is strongly enrouraged to make like changes to it and avoid use of non-exported symboles from "IkiWiki::". * Link debian/changelog and debian/news to NEWS and CHANGELOG. * Support hyperestradier version 1.4.2, which adds a new required phraseform setting.
* typojoey2006-09-07
|
* * Add first draft at a Restructured Text (rst) plugin, by Sergiojoey2006-08-19
| | | | | | Talens-Oliag. Note that this has many known issues -- see the caveats on the plugin's page. * Credit everyone who wrote a plugin on the plugins' wiki pages.
* generate valid xhtml in all cases, including nestingjoey2006-08-18
|
* remove maxdepth, it can be accomplished by pagespec like ".. and !*/*/*/*"joey2006-08-18
|
* * Add a map plugin contributed by Alessandro Dotti Contra.joey2006-08-18