cosmocode / dokuwiki-plugin-top

Simple DokuWiki plugin to count page accesses and display the most popular pages
1 stars 3 forks source link

Make top pages available via DokuWiki's feed #19

Closed annda closed 3 years ago

annda commented 3 years ago

This PR makes top pages available through the RSS endpoint (feed.php).

The required parameter is mode=plugin-top. All options available in syntax are also supported.

Feed items contain very little data:

<item rdf:about="http://doku.wiki/doku.php?id=test:plugins:top">
    <dc:format>text/html</dc:format>
    <dc:date>2020-11-24T12:56:00+00:00</dc:date>
    <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
    <title>test:plugins:top</title>
    <link>http://doku.wiki/doku.php?id=test:plugins:top</link>
    <description>3</description>
</item>
splitbrain commented 3 years ago

Looks good now. Any idea why the tests fail?

annda commented 3 years ago

Tests run fine locally with the same phpunit version as on Travis CI, I will keep investigating.