21ab3d9bd2a88b94312d8aab42e851d9cde43078
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

1) Here's a brief overview of how our wml set-up works.
2) ----------------------------------------------------
3) 
4) Here's a typical wml file:
traumschule update links in README and...

traumschule authored 5 years ago

5) http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/docs/en/bridges.wml
6) https://gitweb.torproject.org/project/web/webwml.git/docs/en/bridges.wml
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

7) 
8) The top of the file has:
9) 
10)   ## translation metadata
11)   # Revision: $Revision$
12)   # Translation-Priority: 1-high
13) 
Roger Dingledine mandate UTF-8 on all wml pages

Roger Dingledine authored 14 years ago

14)   #include "head.wmi" TITLE="Tor: Bridges"
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

15) 
16)   <div class="main-column">
17) 
18) and the bottom of the file has:
19) 
20)     </div><!-- #main -->
21) 
22)   #include <foot.wmi>
23) 
24) and the middle is standard html, plus a few extra tags like
25) <page> that we've added to automatically link to the translated
26) pages when they exist. So that wml page produces this html page:
27) https://www.torproject.org/bridges aka
28) https://www.torproject.org/bridges.html.en
traumschule update links in README and...

traumschule authored 5 years ago

29) http://expyuzz4wqqyqhjn.onion/docs/bridges
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

30) 
31) Then head.wmi and foot.wmi are just other mostly-html files you import
32) to handle the repeat parts of each page (well, that plus some embedded
33) perl scripts to generate some of the static content).
traumschule update links in README and...

traumschule authored 5 years ago

34) http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/include/head.wmi
35) http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/include/foot.wmi
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

36) 
37) You can basically ignore the wml part of them, and to a first
38) approximation just think of them as more html.
39) 
40) So in summary, wml is like html with a bit more markup.
41) 
42) ----------------------------------------------------
43) 
44) Where it gets interesting is the download page:
traumschule update links in README and...

traumschule authored 5 years ago

45) http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/download/en/download-easy.wml
Roger Dingledine a brief introduction to our...

Roger Dingledine authored 14 years ago

46) 
47) It has the standard header and footer section, but in the body of the page
48) it includes links like <a href="<package-osx-bundle-stable>". Rather than
49) putting URLs and Tor versions into every wml page, and then requiring
50) the translators to update their page whenever we bump a version number,
51) we instead define each URL and version as a new wml element:
traumschule update links in README and...

traumschule authored 5 years ago

52) http://jqs44zhtxl2uo6gk.onion/project/web/webwml.git/include/versions.wmi