FrontPage 

TB Wiki

Login

Regression Test

Expected HTML for page "DocConfiguration"


expected html
nothing
t1 t
2<table align="right"><tr><td><div class="toc">
3Contents:
4<ul>
5  <li><a href="#Core_locations_and_URL_prefixes">Core&nbsp;locations&nbsp;and&nbsp;URL&nbsp;prefixes</a></li>
6  <li><a href="#Title,_theme_and_page_decorations">Title,&nbsp;theme&nbsp;and&nbsp;page&nbsp;decorations</a></li>
7  <li><a href="#Security">Security</a></li>
8  <li><a href="#Debugging">Debugging</a></li>
9</ul>
10</div></td></tr></table>
11Several aspects of a tbwiki are configurable.
12<p>
13An instance of a tbwiki is configured by setting several variables in
14the .cgi file that is first accessed by the web server when executing
15a page on the wiki.
16<p>
17Here is a description of the variables in the CGI script, and how they are used:
18<p>
19<h1><a name="Core_locations_and_URL_prefixes">Core locations and URL prefixes</a>
20<span align=right class="section_edit_link">[<a href="/tbwiki/DocConfiguration?action=edit&section=Core_locations_and_URL_prefixes">edit section</a>]</font></span>
21</h1>
22<ul><li><b>config.tbwiki_dir</b> = absolute path to directory where the tbwiki_engine.py script is.
23<ul><li>This is used for the 'git_commit' and 'git_describe' data variables
24<li>This directory should never be exposed (via the wiki or the web server) to direct external access.
25</ul><li><b>config.data_dir</b> = absolute path to the location of the data files for the wiki
26<ul><li>This is where all the data files for a wiki instance live
27<li>This directory should have the following sub-directories:
28<ul><li><b>pages</b> - were the actual wiki pages (in tbwiki markup) are stored
29<li><b>admin</b> - where user account files are stored
30<li><b>backup</b> - where page backup files are stored
31<li><b>files</b> - where non-page files are stored
32<li>(optional) <b>expected_output</b> - where the 'correct' HTML output for the page markup for a page is located
33<ul><li>this is used on the test wiki, for automated regression testing
34</ul><li><b>cache</b> - where cached html for a page is stored
35</ul><li>The log for the wiki is in this directory
36<li>The test wiki has an extra directory called:
37<ul><li><b>expected_output</b> - where HTML is stored for each page of the wiki
38<ul><li>this is used by the RegressionTest processor to validate page rendering by the tbwiki engine.
39</ul></ul><li>All files in this directory should be readable and writable by the web server running this wiki instance.
40</ul><li><b>config.base_url</b> = prefix used for URLS referencing page files in this wiki
41<li><b>config.files_dir</b> = absolute path to the place where this wiki stores non-page files
42<ul><li>This is used for uploaded files, and for images and links to non-page items
43</ul><li><b>config.files_url_base</b> = prefix used for URLs referencing non-page files
44</ul>
45<p>
46<h1><a name="Title,_theme_and_page_decorations">Title, theme and page decorations</a>
47<span align=right class="section_edit_link">[<a href="/tbwiki/DocConfiguration?action=edit&section=Title,_theme_and_page_decorations">edit section</a>]</font></span>
48</h1>
49<ul><li><b>config.site_title</b> = This is the title of the wiki instance
50<li><b>config.default_theme</b> = this is the name of the theme used, by default, for this wiki.
51<ul><li>the files 'header.&lt;theme&gt;' and 'footer.&lt;theme&gt;' are loaded to provide the start and end HTML when a wiki page is displayed.
52<li>Also the CSS file '&lt;theme&gt;.css' is loaded to provide the layout for the page.
53</ul><li><b>config.base_css_url</b> = prefix used for accessing CSS files for this wiki
54<ul><li>The location this references is where theme CSS files are stored on the server
55</ul><li><b>config.nav_list</b> = list of page links to show in the navigation box (usually in the left-hand sidebar)
56<li><b>config.home_page</b> = name of the home page for a site.
57<ul><li>This page will be presented if no page is specified in the URL for the wiki
58</ul><li><b>config.has_talk_pages</b> = set to 1 if the wiki should support Talk: pages
59<ul><li>This results in an extra tab in the top bar for the content area of the page, labeled "discussion".
60<li>When the "discussion" link is clicked, the "Talk" page is accessed for that page.  ex: Talk:FrontPage
61</ul>
62</ul>
63<p>
64<h1><a name="Security">Security</a>
65<span align=right class="section_edit_link">[<a href="/tbwiki/DocConfiguration?action=edit&section=Security">edit section</a>]</font></span>
66</h1>
67<ul><li><b>config.global_password</b> = is a password that any user can use to access the site
68<ul><li>if this is empty, a global password is not available to access the wiki
69<li>if present, this password can be used instead of a user's stored password.
70<li>This is provided to allow access to a wiki instance with a single shared password
71<ul><li>Normally, users must log in with their own password to access the wiki, but this allows any user to use this password.
72</ul></ul><li><b>config.global_reader_mode</b> = describes the access level required to read pages on the wiki
73<ul><li>may have the following values
74<ul><li>"all" - any user, logged in or not, may read the pages in the wiki
75<li>"user" - only logged in users may read pages in the wiki
76<li>"admin" - only a logged in user with administrator access may read pages in the wiki
77</ul></ul><li><b>config.global_writer_mode</b> = describes the access level required to write pages or data on the wiki
78<ul><li>may have the following values
79<ul><li>"all" - any user, logged in or not, may write data to the wiki
80<li>"user" - only logged in users may write data in the wiki
81<li>"admin" - only a logged in user with administrator access may write data to the wiki
82</ul></ul><li><b>config.user_creation_allowed</b> = set to 1 if the wiki allows new user accounts to be created
83</ul>
84<p>
85<h1><a name="Debugging">Debugging</a>
86<span align=right class="section_edit_link">[<a href="/tbwiki/DocConfiguration?action=edit&section=Debugging">edit section</a>]</font></span>
87</h1>
88<ul><li><b>config.do_debug</b> = True or False - If True, put debug data into the debug log, which is named "tbwiki-debug.log" and appears in the directory specificed by config.data_dir
89</ul>
90<p>
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Differences for page "DocConfiguration"


expected html
generated html
t No Differences Found t No Differences Found 
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op

Update saved output

Back to diff page

Return to Regression_Test page
TBWiki engine 1.9.3 by Tim Bird