webwml/include
2019-01-30 13:14:18 +01:00
..
blog-recent.wmi Add some comments to include/blog-recent.wmi 2014-10-28 15:34:36 +01:00
dlhead.wmi Fix dropdown top link 2017-11-17 15:01:22 +01:00
donatefoot.wmi Fix typos 2017-10-31 20:12:24 +01:00
donatehead.wmi Fix #24233 2017-12-04 19:51:47 +01:00
foot.wmi Publish onion address in footer (fixes #23972) 2018-08-22 09:09:43 +02: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-index.wmi Add possibility to close banner 2018-11-06 19:49:13 +01:00
head.wmi Bug 25017: Remove 2017 donation banner from homepage 2018-01-25 00:14:50 -05:00
info.wmi fix run-on sentence 2010-10-09 23:16:47 +00:00
keys.txt update the keys to have no particular trust 2018-12-26 03:41:23 -05:00
keys.wmi update the keys to have no particular trust 2018-12-26 03:41:23 -05:00
lang.wmi Bug 27433: add new locales to stable downloads 2018-09-05 21:27:46 +02:00
links.wmi Fix #24233 2017-12-04 19:51:47 +01:00
mirrors-table.wmi do a mirror update (first time in too long) 2018-09-06 17:12:33 -04:00
navigation.wmi Fix dropdown padding and language nav 2017-11-17 14:37:54 +01:00
perl-globals.wmi Use languages dropdown and fix css 2017-11-17 14:21:58 +01:00
README fix links in include/README 2018-09-11 18:20:14 +02:00
side.wmi first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
subkey_fingerprints.wmi Update subkey fingerprints and signing keys page (#27698, #27702) 2018-09-18 15:30:16 +02:00
tor-mirrors.csv add new mirrors (#27941) 2018-10-12 03:02:34 -04:00
versions.wmi Add new Tor Browser version: 8.5a7 2019-01-30 13:14:18 +01:00

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

Here's a typical wml file:
https://gitweb.torproject.org/project/web/webwml.git/tree/docs/en/bridges.wml
http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/tree/docs/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
https://www.torproject.org/docs/bridges
http://expyuzz4wqqyqhjn.onion/docs/bridges

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://gitweb.torproject.org/project/web/webwml.git/tree/include/head.wmi
http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/tree/include/head.wmi
https://gitweb.torproject.org/project/web/webwml.git/tree/include/foot.wmi
http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/tree/include/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://gitweb.torproject.org/project/web/webwml.git/tree/download/en/download-easy.wml
http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/tree/download/en/download-easy.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://gitweb.torproject.org/project/web/webwml.git/tree/include/versions.wmi
http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/tree/include/versions.wmi