Changes

Jump to navigation Jump to search
1,118 bytes removed ,  19:11, 5 September 2020
m
typo
{{todo|This page documents the situation that will become active in a few days/a week when the newly developed wiki extension will be ported over from the test wiki. This page is written in preparation. Soon, this todo block will be deleted.
 
We have a heatwave right now, and even though there are some things in the extension that I still want to improve on, it is too hot in the actual office to do any programming. Instead, I am on the couch in front of a fan.
 
--[[User:Taco|Taco]] ([[User talk:Taco|talk]]) 19:48, 10 August 2020 (CEST)}}
== An extension for editing `/Command` subpages ==
The ConTeXtXML extension is a new wiki feature specifically designed to edit the ConTeXt command referencs reference pages (the ones that live under the `/Command/` URL.
It does this by intercepting the creation of new wiki pages below `/Command/`, and using a ContentHandler extension to maintain those pages. The text model of those pages is `contextxml`, which is a special XML format developed for documenting ConTeXt commands that is based in the interface XML files by Wolfgang Schuster.
Sets the content model to `contextxml` if the wiki page title starts with `/Command`.
 
=== `PageContentSave` ===
 
On save, this saves `contextxml` pages to a designated harddisk location as well as in the wiki database.
=== `ArticleAfterFetchContentObject` ===
This fills the edit area for newly created `/Command` pages from the file on the harddisk
 
=== `EditPageNoSuchSection` ===
 
Error hook that is triggered if the user tried to edit a section that is generated from wiki code instead of from the XML data. This is an error because it is quite hard to extract the right block of text in that case and still keep track of where it is in relation to the XML data.
 
=== `EditPage::showEditForm:fields` ===
 
Prints a simple help message at the top of the edit field for `/Command` pages.
 
== Generating the wikitext code for page views and previews ==

Navigation menu