makeweb.c

Home


Show content only (no menu, header)


The navigation system for this website was created by "makeweb", a small C program I wrote. Feel free to use/modify the source code if you find it useful. You may also use the script mkwebpicgrad which is used by makeweb to create the gradient image at the top right of each page.

To use makeweb, you need to build a directory tree which matches the navigation tree you want to create. Each directory is named with a ".web" extention (for example, "something.web"), with subdirectories in "something.web/somethingelse.web" and so on...
In each directory/subdirectory, a "title.txt" file contains the name of the directory as you want it to appear in the navigation tree. The html content of the directory is in a "content.txt" file (for example "something.web/somethingelse.web/content.txt". An "intro.txt" file also contains a short description of the current webpage, to appear in the upper left corner. You can view, as an example, the files used to create the current webpage:
  • File title.txt: Title for the current webpage (to appear in the menu on the left)
  • File intro.txt: Short description of the current webpage
  • File content.txt: html content of the current webpage
  • File webpic.png: image used for top right part of webpage

makeweb looks for all of the *.web, *.web/*.web etc... directories and builds the navigation bar you can see on the left. Simple rules are used to decide which links should be displayed in the menu:
  • All of the root ("level = 0" in the code) directories
  • All directories above the current directory (mother, grand-mother, grand-grand-mother, etc...)
  • All directories immediately below the current directory (children)
  • All "brothers/sisters"

Page content last updated: 27/06/2023 06:35:52 HST
html file generated 27/06/2023 06:34:42 HST