Commit Graph

7 Commits

Author SHA1 Message Date
Thomas Lamprecht
60598f4ce3 mediawiki: bring doc includer again in line with the HTMLets plug it bases on
We probably always wanted to use a real HTML comment as "tag" here,
but it seems the '!' was forgotten. With older mediawiki it still
worked, but 1.31 got stricter and thus it was converted to HTML
entities.

Bring the plugin again in line with the HTMLets MediaWiki
extension[0] it based on in the first place.

[0]: 11e5ef1ea2/HTMLets.php (140)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-26 08:52:08 +02:00
Thomas Lamprecht
3e5c017486 mediawiki: make docs include plugin tags robuster for new MW version
Some (new) mediawiki versions can convert '<' and '>' to '&lt;' or
'&gt;', this resulted in a situation where our encoded tag did not
get detected by the decode logic, and thus a visitor only saw
something like the following:

> <--- @PVEDOCHACK@
> PCEtLSBhc2NpaWRvYyBIRUFERVIgLS0+DQo8c2NyaXB0IHR5.....
> @PVEDOCHACK@ -->

The word "HACK" was a bit unfortunate too, as it could be interpreted
as in the docs got hacked, by unknowing people. So change that too to
'PVEDOCS_BASE64'

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-07-25 17:22:38 +02:00
Dietmar Maurer
208f75bc96 pvedocs-include.php: avoid to use javascript
Use a ParserAfterTidy hook to avoid JS. This hack was
found in the htmlet tag extension.
2016-10-17 10:09:40 +02:00
Dietmar Maurer
349e8c55b5 fix typo 2016-10-17 10:09:40 +02:00
Dietmar Maurer
599714d655 pvedocs-include.php: add new mediawiki tag <pvehide>
We can use this tag to add content which is not shown
on the final page, but included in the mediawiki search.
2016-10-17 09:06:43 +02:00
Dietmar Maurer
a45b098f98 update for our new mediawiki installation 2016-08-11 12:55:38 +02:00
Dietmar Maurer
cfabc2e9b3 add new pve-docs-mediawiki package 2016-08-09 07:55:35 +02:00