chiark / gitweb /
Reorganise docs to include new howto material in intro etc.
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 31 Oct 2009 18:33:41 +0000 (18:33 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 31 Oct 2009 18:33:41 +0000 (18:33 +0000)
yarrg/web/copyrightdate
yarrg/web/devel
yarrg/web/dhandler
yarrg/web/docs
yarrg/web/docshead [new file with mode: 0644]
yarrg/web/howto [deleted file]
yarrg/web/intro
yarrg/web/lookup
yarrg/web/navbar [new file with mode: 0644]
yarrg/web/style.css
yarrg/web/upload [new file with mode: 0755]

index 87a35661577349db7bf6ef5304ea1720ef7ee09b..ab80393dc8b7289114eccf91ae9dd035a3acb722 100644 (file)
@@ -1 +1 @@
-Copyright 2009 Ian Jackson, Clare Boothby, Steve Early, Naath
+Copyright 2009 Ian Jackson, Clare Boothby, Steve Early, Naath
\ No newline at end of file
index 8654a04dcadf7b9ce6cc06756f82fa89f9818d31..2d664e19bec9dbb9726442e8f951d8a1b503f7d8 100755 (executable)
 
 
 </%doc>
-<html lang="en"><head>
-<title>YARRG (Yet Another Revenue Research Gatherer)</title>
-<link rel="stylesheet" type="text/css" href="style.css">
-</head><body>
-
-<div class="navoptbar">
-<a href="lookup">YARRG</a> -
- Yet Another Revenue Research Gatherer
-|
-<a href="intro">introduction</a>
-|
-<a href="docs">documentation</a>
-|
-<b>development</b>
-</div>
-<div class="docs">
-
+<& docshead &>
 <h1>YARRG development, contribution and troubleshooting</h1>
 
 <h2>Free Software (aka Open Source) licensing</h2>
index 2cdb09c823ec81ded6fad8a8672bebd723d534e6..aec56ca39e3c22c3d6d6aecedb5179f6ad55a961 100644 (file)
@@ -1,7 +1,7 @@
 <%perl>
 my $arg= $m->dhandler_arg;
 if ($arg =~ m,^/?$,) {
-       $m->redirect('lookup');
+       $m->redirect('intro');
 } else {
        $r->header_out('Status','404 Not found');
 </%perl>
index 02cbeebdc90ba63569582c2fbd3bd21fa90ae9e2..6511b7e7114318e6d45e1b13cf6acee392dfe854 100755 (executable)
 
 
 </%doc>
-<html lang="en"><head><title>Website documentation - YARRG</title>
-<link rel="stylesheet" type="text/css" href="style.css">
-</head><body>
-
-<div class="navoptbar">
-<a href="lookup">YARRG</a> -
- Yet Another Revenue Research Gatherer
-|
-<a href="intro">introduction</a>
-|
-<b>documentation</b>
-|
-<a href="devel">development</a>
-</div>
-<div class="docs">
-
+<& docshead &>
 <h1>Looking up data in YARRG</h1>
 
 YARRG (Yet Another Revenue Research Gatherer) is a third-party tool
@@ -66,6 +51,11 @@ Hopefully you will be able to work it without too much help, but this
 documentation page contains information about the database website
 which you may not be able to divine from the online user interface.
 
+<p>
+
+If this page is all too complicated for you, you may prefer to read
+<a href="intro">the introduction</a> instead.
+
 <h2>Bookmarkable URLs</h2>
 
 Mostly, you can bookmark the specific pages and queries.  Select the
diff --git a/yarrg/web/docshead b/yarrg/web/docshead
new file mode 100644 (file)
index 0000000..7b7dd1c
--- /dev/null
@@ -0,0 +1,9 @@
+<html lang="en"><head>
+<title>YARRG (Yet Another Revenue Research Gatherer)</title>
+<link rel="stylesheet" type="text/css" href="style.css">
+</head><body>
+
+<div class="navoptbar">
+<& navbar &>
+</div>
+<div class="docs">
diff --git a/yarrg/web/howto b/yarrg/web/howto
deleted file mode 100644 (file)
index 8631102..0000000
+++ /dev/null
@@ -1,253 +0,0 @@
-<html lang="en"><head>
-
-</head>
-
-<body>
-
-<h1>How to use YARRG.</h1>
-A basic introduction to YARRG.
-
-<h2>What is YARRG for?</h2> 
-
-<p> 
-
-YARRG is designed to help pirates make profitable trades, it is not
-designed as a trading tutorial and some familiarity with trading in
-YPP is assumed. <a
-href="http://yppedia.puzzlepirates.com/Trading">yppedia.puzzlepirates.com/Trading</a>
-contains some advice on trading basics.
-
-<p> 
-
-<h2>So how do I use it then?</h2> 
-
-<p> First look at the top of the page.  You need to select your Ocean,
-the sort of Interface you would like and the type of Query you wish to
-ask.
-
-
-<p> 
-
-<h2>Selecting your Ocean: </h2> 
-
-<p> 
-
-<b>Which ocean do you want to trade on?</b>  just click on that ocean's
-name.
-
-<p> 
-
-<h2>Selecting your Interface:</h2>
-
-<p> You can choose to enter commodity and island names by typing them
-into a text entry field or by selecting them from a drop down menu.
-The "select from menu" option allows only a restricted number of
-options to be entered into each field.
-
-<p>
-
-<h2>Type of Query:</h2> 
-
-<p> 
-
-There are currently four types of query available, which answer
-slightly different questions.
-
-<p> 
-
-<h3>Trades for route: </h3>
-
-<p> 
-
-<b>For pirates who know where they are going.</b>  Trades for route allows
-you to enter a route that you are planning to sail and find out if
-there are any profitable trades you can make along the way.  This is
-for pirates who already have a definate sailing plan for some reason.
-Under "Enter Route" you need to type (or select from menus) the names
-of the islands or Archipelagoes that you plan to visit.  If you wish
-to know about arbitrage opportunities at an island you can enter just
-that island name.  If you enter only one Archipelago then you will get
-arbitrage opportunities in that archipelago, if you enter the same
-archipelago twice you'll get trades within that archipelago.
-
-<p> 
-
-<h3>Prices for commodity: </h3> 
-
-<p> 
-
-<b>For pirates wanting to sell or buy a specific comodity</b> prices for
-commodity returns the best buy and sell prices for the selected
-commodity at each island where trades are available.  Type (or select
-from a menu) the name of one commodity at a time.  This is useful for
-pirates wishing to purchase or sell a specific commodity and wanting
-the best price.  
-
-<p> 
-
-<h3>Offers at location: </h3>
-
-<p>
-
-<b>For pirates wanting more details about comodity prices at specified
-locations.</b> Offers at location returns all the offers to buy and sell
-wood at the selected location(s). Type (or select) a commodity and the
-islands (or achipelagos) you are interested in.  This is useful when
-the best buy or sell offer is for only a small quantity, you can check
-what the others offers are like.
-
-<p>
-
-<h3>Find Profitable route: </h3> 
-
-<p>
-
-<b>For pirates just wanting to make some poe moving comodities about.</b> Find
-Profitable Route finds you a profitable trading route, first select
-either "open-ended" (which might take you anywhere) or "circular"
-(which takes you back to where you started) then type (or select) your
-starting point (or points - you may for instance have two ships in
-different locations either of which you could use).
-
-<p>
-
-<h2>Data age: </h2>
-
-<p>
-
-Data age tells you how long ago data was uploaded from each island in
-your ocean, data changes very quickly and trusting old data to be
-accurate is unlikely to be rewarding.
-
-<p>
-
-<h2>What do the results mean:</h2>
-
-<p>
-
-Prices for commodity and offers at location give very similar results;
-there will be two tables the first titled Offers to BUY your
-commodity, the second offers to SELL it.  The tables can be resorted
-by your prefered heading by clicking on the arrows.
-
-<p>
-
-Trades for route and Find profitable route both return voyage plans.
-Find profitable route has an additional step to get at your results -
-when you enter your query you are given a list of 15 good routes for
-total profit and 15 good routes for profit per league which visit
-different islands; select your prefered route, perhaps you will choose
-to take the best profit or perhaps you need to miss out one island
-because it is blockaded or another because you don't have the charts
-to get to or from it.  If you have asked for a trade for route or
-after selecting the profitable route you prefer you will get a Voyage
-trading plan - this provides you with instructions for what to do (buy
-this, sell that, sail there).
-
-<p>
-
-Sometimes no useful trades are available, in this case the results
-section says simply "No profitable trading opportunities were found".
-
-<p>
-
-After this there is a table reporting the age of the data used.  And
-then a table of Relevant trades which lists just about everything you
-could want to know about each trade the plan suggests you make(yes,
-this table is fairly complicated), the ticky boxes down the side of
-this table allow you to choose which trades you like the look of -
-untick any that you are not interested in (for instance you may be
-uninterested in trades with a low profit margin).
-
-<p>
-
-<h2>What are the Advanced options:</h2>
-
-<p>
-
-These options are very useful, and not very advanced, but not needed
-for searching the data.
-
-<p>
-
-<h3>Capacity: </h3>
-
-<p>
-
-You can't trade more than fits in your hold.  If you don't say
-anything YARRG assumes that you have infinite hold space (perhaps you
-will go over the route many times).  You can enter a ship-type, a mass
-or a volume; additionally you can subtract quantities of comodities
-from a ship-type (for instance 'sloop - 10 grog' gives the capacity of
-a sloop that has 10 grog already on board); click the ? by this field
-to get a full description of permitted entries here.
-
-<p>
-
-<h3>Capital:</h3>
-
-<p>
-How much poe do you have?  If you don't say anything YARRG assumes you
-have infinite poe to spend, but you probably don't.  Enter the amount
-you are willing to spend on commodities for trading with.
-
-<p>
-
-<h3>Expected losses:</h3> 
-
-<p>
-
-How much do you expect to lose to the dasterdly brigands? enter either
-a % (as eg - 1%) or a fracition (as eg - 1/100) of the goods you
-expect to loose to Brigands.  Brigands take 10% if they defeat you,
-but only you know how often you are defeated.  Note that this doesn't
-include rum-consumed, and you will need to account for that
-seperately.
-
-<p>
-
-<h3>Max distance: </h3>
-
-<p>
-
-How far are you willing to sail today?  The default is 20 leagues, the
-maximum supported is 35.  Are you willing to sail all the way accross
-the ocean for a profit?  or would you prefer to go only a short way?
-
-<p>
-
-<h2>Other fairly useful information:</h2>
-
-<p>
-
-The search information is encoded in the URL - you can bookmark pages
-for searches you want to perform a lot and go straight to them without
-re-entering you data (or you can copy the URL and tell your hearties
-and crew mates if you want to).  There's no need to come back to the
-introductory page each time.
-
-<p>
-
-Java magic - when you type things into the text entry fields YARRG
-will try to guess what you meant, if you pause for a moment then
-beneath the text entry field you'll see what YARRG thinks you meant if
-it's got it correct you don't have to type any more of that
-comodity/island name, just go on to the next one.
-
-<p>
-
-You'll probably want to upload data to ensure you have fresh data
-available, unfortunately YARRG only has a Linux upload client at
-present (a windows one is in the works).  You should read
-http://yarrg.chiark.net/intro and the linked README page for
-information about the client which contain easy-to-follow instructions
-to download, install and run it in the form of a few comand line
-instructions that you can copy and paste.
-
-<p>
-
-It's all free, both free-as-in-beer or free-as-in-speach.  If you're
-interested, read the 'development' pages for more info about how to
-contribute or how to run your own website using YARRG data (perhaps
-you don't like our colour choices)
\ No newline at end of file
index 8e993a0034254d7586dd13b315d3d68f13c7d1b1..3b0e50f667680d3382532fed69daff5f0cc6c5ed 100755 (executable)
 
 
 </%doc>
-<html lang="en"><head>
-<title>YARRG (Yet Another Revenue Research Gatherer)</title>
-<link rel="stylesheet" type="text/css" href="style.css">
-</head><body>
-
-<div class="navoptbar">
-<a href="lookup">YARRG</a> -
- Yet Another Revenue Research Gatherer
-|
-<b>introduction</b>
-|
-<a href="docs">documentation</a>
-|
-<a href="devel">development</a>
-</div>
-<div class="docs">
+<& docshead &>
 <h1>Introduction to YARRG</h1>
 
 YARRG (Yet Another Revenue Research Gatherer) is a third-party tool
@@ -58,66 +43,292 @@ Pirates.  It was inspired by
 
 <p>
 
-The system has two main parts: this website which maintains a
-searchable database of commodity prices, and an upload client, which
-screenscrapes the commodity data from the Puzzle Pirates game client
-and uploads it to the database.
+Information about commodity prices is collected by pirates like you
+and uploaded to the YARRG server, using the special yarrg upload
+client.  You can then query and search on this website for commodity
+prices and good trade routes.
 
-<h2><a href="lookup">Market prices database</a></h2>
 
-The <a href="lookup">lookup page</a> gives access to the uploaded data;
-there is also <a href="docs">documentation</a> to help with using that
-website.
+<p>
 
-<h2>Uploading from Linux</h2>
+</div>
+<div class="emph">
+<h2>Quick start</h2>
 
-The YARRG upload client uploads both to YARRG and
-<a href="http://pctb.crabdance.com/">PCTB</a>.
+<h3>Straight to the commodity prices database</h3>
+
+If you already know about trading on Puzzle Pirates, understand what
+the YARRG website is for, and just want to get down to playing with
+it right away, simply select your ocean:
+
+<p>
+<div align="center">
+% my @oceans= ocean_list();
+% my $delim= '';
+% foreach my $ocean (@oceans) {
+%      my $uri= URI->new('lookup');
+%      $uri->query_form('ocean', $ocean) if $ocean ne 'Midnight';
+<% $delim %><a href="<% $uri->path_query() |h %>"><% $ocean |h %></a>
+%      $delim=' | ';
+% }
+</div>
+
+<h3>But before you start ...</h3>
+
+If you are going to use YARRG seriously you will almost certainly want
+to upload your own data.  See <a href="upload">Uploading to YARRG</a>
+for details.
+
+<p>
+
+You will also probably at some point want to read the
+<a href="docs">Documentation</a> which covers some features of the
+website which you might not guess just from using it.
+
+</div>
+<div class="docs">
+
+<h2>How to use the YARRG website</h2>
+
+YARRG is designed to help pirates make profitable trades.  It is not
+designed as a trading tutorial and some familiarity with trading in
+YPP is assumed. <a
+href="http://yppedia.puzzlepirates.com/Trading">yppedia.puzzlepirates.com/Trading</a>
+contains some advice on trading basics.
+
+<h3>So how do I use it then?</h3> 
+
+<p> First look at the top of the page.  You need to select your Ocean,
+the sort of Interface you would like and the type of Query you wish to
+ask.
+
+<p> 
+
+<h3>Selecting your Ocean</h3> 
+
+<p> 
+
+Which ocean do you want to trade on?
+Just click on that ocean's name.
+
+<p> 
+
+<h3>Selecting your Interface</h3>
+
+<p> You can choose to enter commodity and island names by typing them
+into a text entry field or by selecting them from a drop down menu.
+The "select from menu" option allows only a restricted number of
+options to be entered into each field.
+
+<p>
+
+<h3>Type of Query</h3> 
+
+<p> 
+
+There are currently four types of query available which answer
+slightly different questions.
+
+<p> 
+
+<h4>Trades for route</h4>
+
+<p> 
+
+<b>For pirates who know where they are going.</b>  Trades for route allows
+you to enter a route that you are planning to sail and find out if
+there are any profitable trades you can make along the way.  This is
+for pirates who already have a definate sailing plan for some reason.
+Under "Enter Route" you need to type (or select from menus) the names
+of the islands or Archipelagoes that you plan to visit.  If you wish
+to know about arbitrage opportunities at an island you can enter just
+that island name.  If you enter only one Archipelago then you will get
+arbitrage opportunities in that archipelago; if you enter the same
+archipelago twice you'll get trades within that archipelago.
+
+<p> 
+
+<h4>Prices for commodity</h4> 
+
+<p> 
+
+<b>For pirates wanting to sell or buy a specific comodity</b> prices for
+commodity returns the best buy and sell prices for the selected
+commodity at each island where trades are available.  Type (or select
+from a menu) the name of one commodity at a time.  This is useful for
+pirates wishing to purchase or sell a specific commodity and wanting
+the best price.  
+
+<p> 
+
+<h4>Offers at location</h4>
+
+<p>
+
+<b>For pirates wanting more details about comodity prices at specified
+locations.</b> Offers at location returns all the offers to buy and sell
+wood at the selected location(s). Type (or select) a commodity and the
+islands (or achipelagos) you are interested in.  This is useful when
+the best buy or sell offer is for only a small quantity: you can check
+what the others offers are like.
+
+<p>
+
+<h4>Find Profitable route</h4> 
+
+<p>
+
+<b>For pirates just wanting to make some poe moving comodities about.</b> Find
+Profitable Route finds you a profitable trading route: first select
+either "open-ended" (which might take you anywhere) or "circular"
+(which takes you back to where you started) then type (or select) your
+starting point (or points - you may for instance have two ships in
+different locations either of which you could use).
+
+<p>
+
+<h3>Data age</h3>
+
+<p>
+
+Data age tells you how long ago data was uploaded from each island in
+your ocean.  Data changes very quickly and trusting old data to be
+accurate is unlikely to be rewarding.
+
+<p>
+
+<h3>What do the results mean</h3>
 
 <p>
 
-The current official version of YARRG for use as an upload
-client can browsed here:
- <a href="http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/">http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/</a>
-See particularly the
-<a href="http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/yarrg/README">YARRG README</a>.
+Prices for commodity and offers at location give very similar results;
+there will be two tables: the first titled Offers to BUY your
+commodity, the second offers to SELL it.  The tables can be resorted
+by your prefered heading by clicking on the arrows.
 
 <p>
-To install the client, install the `git' version control system
-and the other dependencies listed in the `Installation requirements'
-section of the README and then run:
-<pre>
-git-clone http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/.git ypp-sc-tools
-cd ypp-sc-tools
-cd yarrg
-make
-</pre>
-this will download the code into the directory <code>ypp-sc-tools</code>,
-and build the software.  (If your Linux is very up to date you may
-find that it complains that it doesn't know the command <kbd>git-core</kbd>.
-In that case, use <kbd>git core</kbd>, with a space, instead.)
+
+Trades for route and Find profitable route both return voyage plans.
+Find profitable route has an additional step to get at your results -
+when you enter your query you are given a list of 15 good routes for
+total profit and 15 good routes for profit per league which visit
+different islands. Select your prefered route: perhaps you will choose
+to take the best profit or perhaps you need to miss out one island
+because it is blockaded or another because you don't have the charts
+to get to or from it.  If you have asked for a trade for route or
+after selecting the profitable route you prefer you will get a Voyage
+trading plan - this provides you with instructions for what to do (buy
+this, sell that, sail there).
 
 <p>
 
-When new versions of the upload client are released, you can:
-<pre>
-cd .../ypp-sc-tools
-git-pull
-cd yarrg
-make
-</pre>
-to fetch the new version.  (Again, you may need <kbd>git pull</kbd>
-instead of <kbd>git-pull</kbd>.)
+Sometimes no useful trades are available.  In this case the results
+section says simply "No profitable trading opportunities were found".
+
+<p>
+
+After this there is a table reporting the age of the data used.  And
+then a table of Relevant trades which lists just about everything you
+could want to know about each trade the plan suggests you make (yes,
+this table is fairly complicated).  The ticky boxes down the side of
+this table allow you to choose which trades you like the look of -
+untick any that you are not interested in (for instance you may be
+uninterested in trades with a low profit margin).
+
+<p>
 
-<h2>Uploading from Windows</h2>
+<h3>What are the Advanced options</h3>
 
-There is not currently an upload client for Windows which feeds data
-into YARRG.  It would probably be straightforward to modify the
-Windows PCTB v5 upload client to upload to YARRG as well.
+<p>
+
+These options are very useful, and not very advanced, but not needed
+for searching the data.
+
+<p>
+
+<h4>Capacity</h4>
+
+<p>
+
+You can't trade more than fits in your hold.  If you don't say
+anything YARRG assumes that you have infinite hold space (perhaps you
+will go over the route many times).  You can enter a ship-type, a mass
+or a volume; additionally you can subtract quantities of comodities
+from a ship-type (for instance 'sloop - 10 grog' gives the capacity of
+a sloop that has 10 grog already on board); click the ? by this field
+to get a full description of permitted entries here.
+
+<p>
+
+<h4>Capital</h4>
+
+<p>
+How much poe do you have?  If you don't say anything YARRG assumes you
+have infinite poe to spend, but you probably don't.  Enter the amount
+you are willing to spend on commodities for trading with.
 
 <p>
 
-See our <a href="devel">Developers' information</a> page.
+<h4>Expected losses</h4> 
+
+<p>
+
+How much do you expect to lose to the dasterdly brigands? enter either
+a % (as eg - 1%) or a fracition (as eg - 1/100) of the goods you
+expect to loose to Brigands.  Brigands take 10% if they defeat you,
+but only you know how often you are defeated.  Note that this doesn't
+include rum-consumed so you will need to account for that
+seperately.
+
+<p>
+
+<h4>Max distance</h4>
+
+<p>
+
+How far are you willing to sail today?  The default is 20 leagues, the
+maximum supported is 35.  Are you willing to sail all the way accross
+the ocean for a profit?  or would you prefer to go only a short way?
+
+<p>
+
+<h3>Other fairly useful information</h3>
+
+<p>
+
+The search information is encoded in the URL - you can bookmark pages
+for searches you want to perform a lot and go straight to them without
+re-entering you data (or you can copy the URL and tell your hearties
+and crew mates if you want to).  There's no need to come back to the
+introductory page each time.
+
+<p>
+
+Javascript magic - when you type things into the text entry fields
+YARRG will try to guess what you meant.  If you pause for a moment then
+beneath the text entry field you'll see what YARRG thinks you meant.
+If it's got it correct you don't have to type any more of that
+comodity/island name: just go on to the next one.
+
+<p>
+
+You'll probably want to upload data to ensure you have fresh data
+available.  Unfortunately YARRG only has a Linux upload client at
+present (a windows one is in the works).  You should <a
+href="upload">read about how to upload</a>: particularly the linked
+README page for information about the client which contain
+easy-to-follow instructions to download, install and run it in the
+form of a few comand line instructions that you can copy and paste.
+
+<p>
+
+It's all free, both free-as-in-beer or free-as-in-speach.  If you're
+interested, read the <a href="devel">Development pages</a> for more
+info about how to contribute or how to run your own website using
+YARRG data (perhaps you don't like our colour choices)
+
+
 
 <h2>Contacting the YARRG developers</h2>
 
index 365ed58129407277626411e60f96b8bc8fe2ba1e..6fc1cd76e0cafa0d93da1ce9c8d3037f1254616b 100755 (executable)
@@ -149,14 +149,7 @@ $ours
 
 % if (!printable($m)) {
 <div class="navoptbar">
-<a href="<% $m->current_comp()->name() |u %>">YARRG</a> -
- Yet Another Revenue Research Gatherer
-|
-<a href="intro">introduction</a>
-|
-<a href="docs">documentation</a>
-|
-<a href="devel">development</a>
+<& navbar &>
 <p>
 % }
 <%perl>
diff --git a/yarrg/web/navbar b/yarrg/web/navbar
new file mode 100644 (file)
index 0000000..1b6ed81
--- /dev/null
@@ -0,0 +1,22 @@
+<a href="lookup">YARRG</a> -
+ Yet Another Revenue Research Gatherer
+<%perl>
+
+$_= <<END;
+intro  introduction
+upload uploading
+docs   documentation
+devel  development
+END
+
+my $name= $m->request_comp()->name();
+
+while (s/^(\w+)\t(.*)$//m) {
+       my ($tname, $thtml) = ($1,$2);
+       if ($tname eq $name) {
+               print "| <b>$thtml</b>\n";
+       } else {
+               print "| <a href=\"$tname\">$thtml</a>\n";
+       }
+}
+</%perl>
index a397e5c1f4fdea7a1f5261bb644382e1b22cf58a..aca398a4bad9810cc108f2d480f17fb5a2a9a85e 100755 (executable)
@@ -41,8 +41,9 @@ $r->content_type('text/css')
   if $m->callers(-1) == $m->callers(0);
 </%init>
 
-  body { margin: 0; }
+  body { margin: 0; color: #000000; background: #ffffff; }
   div.navoptbar { padding: 1em; background: #e0e0ff; }
+  div.emph { padding: 1em; background: #c5c7ae; }
   address { background: #d7d8b3; padding: 1em; }
   div.docs { padding: 1em; }
   hr { display: none; }
diff --git a/yarrg/web/upload b/yarrg/web/upload
new file mode 100755 (executable)
index 0000000..f723c7c
--- /dev/null
@@ -0,0 +1,73 @@
+<& docshead &>
+<h1>Uploading to YARRG</h1>
+<p>
+
+The YARRG system has two main parts: this website which maintains a
+searchable database of commodity prices, and an upload client, which
+screenscrapes the commodity data from the Puzzle Pirates game client
+and uploads it to the database.
+
+<p>
+
+You will need to upload data yourself if there is no data for your
+ocean or island, or the data that is there is too old.  You should
+also upload when preparing trade run, as market conditions change and
+you want a plan based on recent data.
+
+<h2>Uploading from Linux</h2>
+
+The YARRG upload client uploads both to YARRG and
+<a href="http://pctb.crabdance.com/">PCTB</a>.
+
+<p>
+
+The current official version of YARRG for use as an upload
+client can browsed here:
+ <a href="http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/">http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/</a>
+See particularly the
+<a href="http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/yarrg/README">YARRG README</a>.
+
+<p>
+To install the client, install the `git' version control system
+and the other dependencies listed in the `Installation requirements'
+section of the README and then run:
+<pre>
+git-clone http://www.chiark.greenend.org.uk/~ijackson/ypp-sc-tools/master/.git ypp-sc-tools
+cd ypp-sc-tools
+cd yarrg
+make
+</pre>
+this will download the code into the directory <code>ypp-sc-tools</code>,
+and build the software.  (If your Linux is very up to date you may
+find that it complains that it doesn't know the command <kbd>git-core</kbd>.
+In that case, use <kbd>git core</kbd>, with a space, instead.)
+
+<p>
+
+When new versions of the upload client are released, you can:
+<pre>
+cd .../ypp-sc-tools
+git-pull
+cd yarrg
+make
+</pre>
+to fetch the new version.  (Again, you may need <kbd>git pull</kbd>
+instead of <kbd>git-pull</kbd>.)
+
+<h2>Uploading from Windows</h2>
+
+There is not currently an upload client for Windows which feeds data
+into YARRG.  It would probably be straightforward to modify the
+Windows PCTB v5 upload client to upload to YARRG as well.
+
+<p>
+
+See our <a href="devel">Developers' information</a> page.
+
+<h2>Uploading from Macs</h2>
+
+There is not currently a publicly available upload client for Macs for
+either YARRG or PCTB.
+
+</div>
+<& footer &>