webwml/include
2010-10-09 20:11:40 +00:00
..
._.DS_Store first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
foot.wmi add the cc-by link in the footer. 2010-10-09 01:18:46 +00:00
functions.wmi switch to Goldstein's idea of $lang/$dir/$page to keep all languages in 2010-07-14 19:39:08 +00:00
head.wmi fix the press links so they work correctly, update the affected pages. 2010-09-24 15:34:31 +00:00
info.wmi remove the glossary. fix up the rtfm link on the download page. 2010-10-07 16:09:57 +00:00
links.wmi clean up wiki and faq references. 2010-10-08 14:54:16 +00:00
mirrors-table.wmi move torbutton back to a main path rather than buried in projects, 2010-08-18 12:06:31 +00:00
navigation.wmi fix spacing for fun. 2010-10-08 03:41:45 +00:00
perl-globals.wmi first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
README first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
side.wmi first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
versions.wmi put back the unix links under vidalia bundles. fix a package tag in 2010-10-09 20:11:40 +00:00

Here's a brief overview of how our wml set-up works.
----------------------------------------------------

Here's a typical wml file:
https://svn.torproject.org/svn/website/trunk/en/bridges.wml

The top of the file has:

  ## translation metadata
  # Revision: $Revision$
  # Translation-Priority: 1-high

  #include "head.wmi" TITLE="Tor: Bridges"

  <div class="main-column">

and the bottom of the file has:

    </div><!-- #main -->

  #include <foot.wmi>

and the middle is standard html, plus a few extra tags like
<page> that we've added to automatically link to the translated
pages when they exist. So that wml page produces this html page:
https://www.torproject.org/bridges aka
https://www.torproject.org/bridges.html.en

Then head.wmi and foot.wmi are just other mostly-html files you import
to handle the repeat parts of each page (well, that plus some embedded
perl scripts to generate some of the static content).
https://svn.torproject.org/svn/website/trunk/include/head.wmi
https://svn.torproject.org/svn/website/trunk/en/foot.wmi

You can basically ignore the wml part of them, and to a first
approximation just think of them as more html.

So in summary, wml is like html with a bit more markup.

----------------------------------------------------

Where it gets interesting is the download page:
https://svn.torproject.org/svn/website/trunk/en/easy-download.wml

It has the standard header and footer section, but in the body of the page
it includes links like <a href="<package-osx-bundle-stable>". Rather than
putting URLs and Tor versions into every wml page, and then requiring
the translators to update their page whenever we bump a version number,
we instead define each URL and version as a new wml element:
https://svn.torproject.org/svn/website/trunk/include/versions.wmi