Skip to content
Snippets Groups Projects
Commit dc8b68a0 authored by mh17's avatar mh17
Browse files

updated notes about build script

parent 9e163b69
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,9 @@
<fieldset>
<legend>Practicalities</legend>
<h3>Prototype System</h3>
<p>Initially we will only provide HTML files as part of the ZMap source tree in ZMap/doc/design. Each ZMap source directory will have a README (or README.html) which will provide a link to the relevant page on this directory, and each page will have links to related pages and the index.</p>
<p>Initially we will only provide HTML files as part of the ZMap source tree in ZMap/doc/Design_notes. Each ZMap source directory will have a README (or README.html) which will provide a link to the relevant page on this directory, and each page will have links to related pages and the index.</p>
<p>Current web standards and links to the web team can be found <a href="http://intweb.sanger.ac.uk/help/webdocs/">here</a> and include CSS and some notes about header.ini which is a Perl script. To access HTML in the ZMap source tree we need to provide simple HTML files (shtml actually - this is as needed for intweb) and scripts cannot be included as we are not running a web server locally. </p>
<p>Current web standards and links to the web team can be found <a href="http://intweb.sanger.ac.uk/help/webdocs/">here</a> and include CSS and some notes about header.ini which is a Perl script. To access HTML in the ZMap source tree we need to provide simple HTML files (.shtml actually - this is as needed for intweb) and scripts cannot be included as we are not running a web server locally. </p>
<h3>Headers and Navigation</h3>
<p> The Sanger NavBar can be used for related links on any set of pages uploaded to intweb and some way needs to be found to generate this for files in the ZMap source tree. As an interim measure a &lt;div&gt; will be used for a left hand list of links and another for the page's text; these will be set with styles such that they do not overlap. A script can be used to generate a local shtml file, and another one for files to upload to intweb. This is necessary to avoid having to edit many files to add links if we add a new one.</p>
......@@ -29,7 +29,7 @@
<p>A script will be used to generate a usable page (*.shtml) from a headerless source file (*.html), and each file will have a *.rel file to specify related links. </p>
<h3>External modules and the document tree</h3>
<p>The pages proper will be stored in ZMap/doc/design (as new documentation files) and there are some existing file we wish to refer to. The pages will be set up with a document root of ZMap/doc and therefore it will be easy to refer to any previously written html files.</p>
<p>The pages proper will be stored in ZMap/doc/Design_notes (as new documentation files) and there are some existing file we wish to refer to. The pages will be set up with a document root of ZMap/doc and therefore it will be easy to refer to any previously written html files.</p>
<p>
A directory (ZMap/doc/scripts} will be used to store scripts to maintain these files and should be added to a ZMap developer's path. Note that after editing a headerless source file it is necessay top re-generate the *.shtml using 'docgen filename', and of course the CVS has to be operated as well.
</p>
......@@ -39,13 +39,11 @@ A directory (ZMap/doc/scripts} will be used to store scripts to maintain these f
<li>Choose a directory in the document tree
<li>Choose a file name and a short description/ title
<li>Run the command 'new filename "description"' (NB: filename is the root and does not include .html) in your chosen directory
<li>Edit scripts/navbar.rel and any other files (eg doc/design/index.html) to add links
<li>Edit scripts/navbar.rel and any other files (eg doc/Design_notes/index.html) to add links
<li>Re-generate all the files using docgen.
</ul></p>
<p>
<i>We could use a script to rebuild all files given a list of directories.</i> Given that ZMap can be stored at any location it would have to use relative pathnames and be run from a specific directory. This could be scripted...
</p>
<p>NB: Only the *.html files are held in CVS as otherwise rebuilding pages would thrash the system somewhat.
<p>NB: Only the *.html and *.rel files are held in CVS as otherwise rebuilding pages would thrash the system somewhat.
</p>
</fieldset>
......@@ -55,6 +53,8 @@ A directory (ZMap/doc/scripts} will be used to store scripts to maintain these f
<b>scripts/navbar.rel</b> list of links and descriptions used by navbar scripts<br />
<b>scripts/new</b> create a new *.html and *.rel file. Two args: module name and description<br />
<b>scripts/docgen</b> generate a local .shtml file<br />
<b>scripts/build</b> build all *.shtml files <br />
NB: this currenty doe doc/ and Design_notes/* only. <i>It must be run from ZMAP/doc/</i>.
<b>&lt;module&gt;.rel</b> list of links relevant to the module or page<br />
<b>ZMap/doc/css/dev_server.css</b> as cut and paste from the Sanger web development pages</b>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment