8f5328eb4c99d1221664a1bb611d729472418f93
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

1) #!wml
2) 
Matt Pagan linking to git from tags wo...

Matt Pagan authored 9 years ago

3) <define-tag gitblob whitespace=delete>https://gitweb.torproject.org/tor.git/plain/</define-tag>
Sebastian Hahn Attempt to fix stable relea...

Sebastian Hahn authored 9 years ago

4) <define-tag cgitstable whitespace=delete>?id=tor-<version-stable></define-tag> 
Andrew Lewman work on the new website a b...

Andrew Lewman authored 14 years ago

5) <define-tag gittree whitespace=delete>https://gitweb.torproject.org/tor.git?a=tree;hb=HEAD;f=</define-tag>
6) <define-tag gitrepo whitespace=delete>https://gitweb.torproject.org/tor.git?a=tree;hb=HEAD</define-tag>
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

7) <define-tag svnwebsite whitespace=delete>https://svn.torproject.org/svn/website/trunk/</define-tag>
8) <define-tag svnprojects whitespace=delete>https://svn.torproject.org/svn/projects/</define-tag>
Andrew Lewman clean up wiki and faq refer...

Andrew Lewman authored 14 years ago

9) <define-tag wiki whitespace=delete>https://trac.torproject.org/projects/tor/wiki/</define-tag>
Karsten Loesing Update wiki links

Karsten Loesing authored 13 years ago

10) <define-tag wikifaq whitespace=delete>https://trac.torproject.org/projects/tor/wiki/doc/TorFAQ</define-tag>
Andrew Lewman put the extra /blog back to...

Andrew Lewman authored 14 years ago

11) <define-tag blog whitespace=delete>https://blog.torproject.org/blog/</define-tag>
hiromipaw Add newsletter link to nav

hiromipaw authored 7 years ago

12) <define-tag newsletter whitespace=delete>https://newsletter.torproject.org</define-tag>
Andrew Lewman replicate the tbb repo link...

Andrew Lewman authored 14 years ago

13) <define-tag tbbrepo whitespace=delete>https://gitweb.torproject.org/torbrowser.git/blob_plain/HEAD:</define-tag>
Roger Dingledine make the specblob tag be mo...

Roger Dingledine authored 9 years ago

14) <define-tag specblob whitespace=delete>https://gitweb.torproject.org/torspec.git/tree/</define-tag>
Sebastian Hahn Fix links that broke due to...

Sebastian Hahn authored 13 years ago

15) <define-tag spectree whitespace=delete>https://gitweb.torproject.org/torspec.git?a=tree;hb=HEAD;f=</define-tag>
Andrew Lewman define doxygen as a tag, mo...

Andrew Lewman authored 13 years ago

16) <define-tag doxygen whitespace=delete>https://doxygen.torproject.org/</define-tag>
Sebastian Hahn Fix links that broke due to...

Sebastian Hahn authored 13 years ago

17) 
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

18) 
19) #  Xinclude "locallinks.wmi"
20) #  Xinclude "langlocallinks.$(LANG).wmi"
21) 
22) <:
23) 	sub stripDotSlashs($) {
24) 		my ($s) = @_;
25) 		1 while ($s =~ s|/\./|/|);
26) 		1 while ($s =~ s|^\./||);
27) 		return $s;
28) 	};
29) :>
30) 
31) <:  sub pageToURL($$) {
32)  	    my ($page, $lang) = @_;
33) 	    my ($dir, $base) = $page =~ m,^(?:(.*)/)?(.*?)$,;
34) 	    $dir = '.' unless defined $dir;
Roger Dingledine get us closer to being able...

Roger Dingledine authored 13 years ago

35) 	    if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

36) 	    	return stripDotSlashs("$(DOCROOT)/$dir/$base.html.$lang");
37) 	    } elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
Andrew Lewman link to english files becau...

Andrew Lewman authored 14 years ago

38) 	    	return stripDotSlashs("$(DOCROOT)/$dir/$base.html.en");
Roger Dingledine get us closer to being able...

Roger Dingledine authored 13 years ago

39) 	    } elsif ($page =~ /^http/) {
40) 	    	return $page;
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

41) 	    } else {
Roger Dingledine get us closer to being able...

Roger Dingledine authored 13 years ago

42) 	    	warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

43) 	    }; 
44)     }
45) :>
46) 
47) <define-tag page whitespace=delete>
48) <:{
49) 	my $page="%0";
50) 	my $lang="$(LANG)";
51) 	my ($dir, $base) = $page =~ m,^(?:(.*)/)?(.*?)$,;
52) 	$dir = '.' unless defined $dir;
53) 	if (-e "$(DOCROOT)/$dir/$lang/$base.wml") {
54) 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html.$lang");
Roger Dingledine get us closer to being able...

Roger Dingledine authored 13 years ago

55) 	} elsif (-e "$(DOCROOT)/$dir/en/$base.wml") {
Andrew Lewman first cut of the new, shiny...

Andrew Lewman authored 14 years ago

56) 		print stripDotSlashs("$(DOCROOT)/$dir/$base.html");
57) 	} else {
Roger Dingledine get us closer to being able...

Roger Dingledine authored 13 years ago

58) 		warn "$WML_SRC_FILENAME has a [page $page] (parses to docdir: $(DOCROOT)/; dir: $dir; base: $base -> $(DOCROOT)/$dir/$lang/$base.wml), but that doesn't exist.";