FS#48427 - [arch-wiki-docs] Redirects to sections of another article break resulting html
Attached to Project:
Community Packages
Opened by Ingo Albrecht (indigo) - Thursday, 03 March 2016, 10:45 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 08 March 2016, 15:00 GMT
Opened by Ingo Albrecht (indigo) - Thursday, 03 March 2016, 10:45 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 08 March 2016, 15:00 GMT
|
Details
Description:
The ArchWiki uses redirects for a number of reasons. These redirects include editorial redirects to sections of another article. The reasons for using them are described in the top post of [1]. Most commonly used examples are [2] and [3]. Unfortunately, redirects like [2] and [3] require JavaScript enablement in the browser. Moreover, they break when converted to simple, standard conforming HTML for the package arch-wiki-docs. As a consequence, the package does not conform to the GNU FDL under which it is published.[4] Additional info: [1] https://wiki.archlinux.org/index.php/Help_talk:Style#Links_to_redirects [2] https://wiki.archlinux.org/index.php?title=Install&redirect=no [3] https://wiki.archlinux.org/index.php?title=Start&redirect=no [4] https://www.gnu.org/software/toutdoux/doc/user/fr/x522.html [5] file:///usr/share/doc/arch-wiki/html/en/AIDE.html#Installation Steps to reproduce: Install the package, open [5] with your favourite browser (JS enabled or not) and click on the "Install" link. |
This task depends upon
I would appreciate if somebody could test the script locally before the package is updated, otherwise it might get stuck on broken version for several months...
file:///usr/share/doc/arch-wiki/html/en/Help:Reading.html#Installation%20of%20packages
versus
file:///usr/share/doc/arch-wiki/html/en/Help:Reading.html#Installation_of_packages
It does not solve dot-encoding of special characters yet, but should cover most common cases. Soon I will probably rewrite the script to use wiki-scripts as the interface to the API, which will solve this issue.
file:///usr/share/doc/arch-wiki/html/en/Help%3AReading.html#Installation_of_packages
work, but the "start" links in the next section
file:///usr/share/doc/arch-wiki/html/en/Help%3AReading.html#Control_of_systemd_units
not (again, missing underscore).
Special characters: yes ok, can't all be in this report. If I can be any help when you tackle rewrite, give me a ping.
English first: subpages navigate well; also the templates conversion works pretty good. To improve those (just noting as a reminder): they all start with the two template icons from left/right at the beginning. They would look neater if the second template icon wraps to where the template closes with }}.
As for the templates, there is actually no conversion, only a few stylesheets are missing: https://github.com/lahwaacz/arch-wiki-docs/issues/12
Great, it works, even the stylesheet containing the templates. Many thanks!
Totally GNU again.
(removed http://www.gnu.org/graphics/gnu-ascii.de.html flyspray's css not fit for it:)