Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

Hand written articles tutorial



This article is a tutorial explaining how to add hand-written html articles in the wiki. You only need to have done the first tutorial. You will:

Create an index article

Main Article: first tutorial

We will create an index file exactly as for the first tutorial. The index file will contain the following content:
   <index>
   The index for the tutorial wiki. A link to the <ref id="first article" />.
   </index>

Create a regular article

Main Article: first tutorial

We will create our regular article exactly as for the first tutorial.

The first article will contain the following content:
   <article desc="article 1">
   The article.
   </article>

Create the first hand-written article

We will use the Karnaval article in the English wikipedia.

Save the html content locally

We will create a doc-file directory as a sub-directory of our wiki directory. Now go into you favorite browser (in my case, it is Firefox), and save the html file in this directory. Be sure to save the whole page[1]
With Firefox, the output is called "Web Page, complete"
. You will have a file called Karnaval - Wikipedia.htm in the doc-file sub-directory.

Create the article

We will now create a xml file with the following content:
  <rawHTML desc="Karnaval" url="Karnaval - Wikipedia.htm"/>

Create the second hand-written article

We will use the Towards Zero (film) article in the English wikipedia.

Save the html content locally

We will create a doc-file directory as a sub-directory of our wiki directory. Now go into you favorite browser (in my case, it is Firefox), and save the html file in this directory. Be sure to save the whole page[1]
With Firefox, the output is called "Web Page, complete"
. You will have a file called Towards Zero (film) - Wikipedia.htm in the doc-file sub-directory.

Create the article

We will now create a xml file with the following content:
  <rawHTML desc="Towards Zero" url="Towards Zero (film) - Wikipedia.htm"/>
In this case we would like to use the left menu of our wiki, so we will modify the content of our xml file as:
   <rawHTML desc="Towards Zero" url="Towards Zero (film) - Wikipedia.htm" frame="true"/>

Generate the wiki

Let's generate the wiki. As you can see, the two hand-written html files are included in the wiki output, and searchable by the Search box.

Notes

  1. ^ [1] [2] With Firefox, the output is called "Web Page, complete"

See also


Categories: tutorials

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.