Changeset 31 in projects


Ignore:
Timestamp:
Mar 13, 2009, 3:09:05 AM (10 years ago)
Author:
sven
Message:

Improved documentation (navigation linking)

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • documentation/index.php

    r30 r31  
    33 * The Paper Tape Project -- Documentation
    44 *
    5  * This is a very small "template" like system that quickly wraps a design around any
    6  * *.htm file in the Paper-Tape-Project repository. It should handle links, etc.
    7  * well and works with PATH_INFO, typical calls are ".../index.php/path/to/file.htm".
     5 * This is a very small "template" like system that quickly wraps a design
     6 * around almost every file (html,txt,source codes,...) in the Paper-Tape-Project
     7 * repository.
     8 * It should handle links, etc. well and works with PATH_INFO; typical calls are
     9 * linke "path/to/documentation/index.php/path/to/file.htm".
    810 * There's a small menu nested as PHP array in this script.
    911 *
    1012 * Use this small script as in the public domain.
    11  * 22.12.2008 -- Sven Koeppel
     13 * 22.12.2008, 12.02.2009 -- Sven Koeppel
    1214 **/
    1315
     
    6062  function syntax_highlight_file($filename) {
    6163      // syntax highlight some file
    62       include_once('geshi.php');
    63       $geshi = new GeSHi();
    64       $geshi->load_from_file("../$filename");
    65       $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
     64      global $extension; // yes, this is bad.
    6665      echo "<h2>Contents of <code>$filename</code></h2>";
    67       echo $geshi->parse_code();
     66      if($extension == 'txt') {
     67          echo "<pre>";
     68          readfile("../$filename");
     69          echo "</pre>";
     70      } else {
     71          include_once('geshi.php');
     72          $geshi = new GeSHi();
     73          $geshi->load_from_file("../$filename");
     74          $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
     75          echo $geshi->parse_code();
     76      }
    6877  }
    6978?>
     
    8897        'The Paper Tape Project' => array(
    8998                'Start' => $doc.'/paper-tape-project.htm',
     99                'Abstract' => array(
     100                        'Subproject overview' => 'paper-tape/README.txt',
     101                        'To Do' => 'paper-tape/TODO.txt',
     102                        'Using Windows' => 'paper-tape/WINDOWS.txt',
     103                ),
    90104                'Data' => 'paper-tape/daten/README.htm',
    91105                'Perl tools' => 'paper-tape/perl-tools/README.htm',
    92106                'Labeling and Fonts' => array(
    93107                        'Generating Labels' => 'paper-tape/schriften/README.htm',
    94                         'Paper Tape Font Files' => 'paper-tape/schriften/font_files.htm'
     108                        'Font Files' => 'paper-tape/schriften/font_files.htm'
     109                ),
     110                'Devices' => array(
     111                        'Facit Tape Punch' => 'paper-tape/driver/FACIT-MANUAL.txt',
     112                        'Ghielmetti Tape Reader' => 'paper-tape/reader/GHIELMETTI-MANUAL.txt'
     113                ),
     114                'Driver framework' => array(
     115                        'Legacy reader documentation' => 'paper-tape/reader/README.txt',
     116                        'Legacy puncher documentation' => 'paper-tape/puncher/README.txt',
     117                        'Legacy old puncher documentation' => 'paper-tape/userspace-driver/README.txt'
    95118                ),
    96119                'Visualisation' => 'paper-tape/visualisator/README.htm',
    97                 'Generating Paper Tapes online!' => 'paper-tape/web-frontend/'
     120                'Web Frontend' => array(
     121                        'Abstract' => 'paper-tape/web-frontend/README.txt',
     122                        'Generating Paper Tapes online!' => 'paper-tape/web-frontend/'
     123                )
    98124        ),
    99125        'The Punch Card Project' => array(
    100126                'Start' => $doc.'/punch-card.htm'
    101127        ),
    102         //'About' => $doc.'/about.htm'
     128        #'About' => $doc.'/about.htm'
    103129 );
    104130
  • documentation/start.htm

    r30 r31  
    2828<h2>Who's running the project</h2>
    2929<p>The Punched Paper Project is an <b>Open Source</b> project by a
    30    german student. It's hosted on the servers of the german computer
    31    museum <a href="http://www.technikum29.de">technikum29</a>.</p>
     30   german student. It's hosted on the servers of the german
     31   <a href="http://www.technikum29.de">techniku29 museum of calculator,
     32   computer and communication technology</a>.
     33</p>
     34
     35<p>Feel free to contact me for any purpose via E-Mail at <em>sven</em> at
     36   <a href="http://www.technikum29.de" title="Link just for antispam"
     37   >technikum29.de</a> or by using the form mailer at
     38   the <a href="http://dev.technikum29.de/correspondence/">technikum29
     39   foreign correspondence</a> (these mails go to the same target address)</p>
     40
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License