| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
This reverts commit 2d5c2f301c04a3daa3164a2df70899fa2c1aaa38.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
To avoid breaking plugins, also support the old pagespec_match_list
calling convention, with a deprecation warning.
|
| |
|
|
|
|
| |
Also, this fixes 2 bugs in dependency info.
|
|
|
|
| |
that hack is not needed, thanks to pagespec influences calculation
|
| |
|
|
|
|
| |
This makes simple maps efficient enough that they can be used on sidebars!
|
|
|
|
|
|
| |
This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c.
There was no benefit to this change.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Signed-off-by: Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
The link was broken if the inserted dir was not under the destpage
|
|
|
|
| |
The parent page names had "/" prepended, which caused broken links.
|
|
|
|
| |
too many plugins.. brain exploding..
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
titles, rather than the default page name. Based on a patch from Jaldhar H. Vyas, Closes: #484510
|
|
|
|
| |
in a subdirectory. Patch by Larry Clapp.
|
|
|
|
| |
* map: Don't inline images.
|
|
|
|
| |
that were all at the same level, fix. Closes: #449285
|
| |
|
| |
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
are not included in the map.
* map: Fix valid html issue.
|
|
|
|
|
| |
* map: Fully specify paths to links to avoid issues when the bestlink
didn't point to the correct page.
|
|
|
|
| |
it.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
PageSpecs, by using "./". pagespec_match() has grown a new third parameter
to support this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|