Go to file
2019-01-30 15:26:44 +01:00
.well-known security.txt: add TROVE (#27458) 2018-09-10 11:08:28 +02:00
about Move Tommy to past contributors section 2019-01-25 10:12:49 -08:00
cgi-bin first cut of the new, shiny tor website as wml. 2010-07-09 01:55:22 +00:00
css Bug 28722: Add cs, el, hu, ka links 2018-12-07 09:21:04 -05:00
docs Update subkey fingerprints and signing keys page (#27698, #27702) 2018-09-18 15:30:16 +02:00
donate and remove unused unmaintained donor-privacy-policy too 2018-12-11 16:22:53 -05:00
download es: fix spelling in download-easy (#28288) 2019-01-30 15:26:44 +01:00
eff Fix broken blog link (thanks dmr) 2016-09-23 06:19:35 +02:00
en Remove donate banner 2019-01-02 15:40:19 +01:00
es Remove donate banner 2019-01-02 15:40:19 +01:00
getinvolved volunteer: add hiring link 2018-09-24 18:37:38 +02:00
images Update Matt's photo 2019-01-29 10:15:36 -08:00
include Add new Tor Browser version: 8.5a7 2019-01-30 13:14:18 +01:00
js Add Win 64bit bundles to download page 2018-09-06 08:07:04 +00:00
keys Add Al Smith to the people page 2018-12-22 14:22:34 -08:00
press Add newest press clips (#28900) 2019-01-22 17:29:17 +01:00
projects Add new Tor Browser version: 8.5a7 2019-01-30 13:14:18 +01:00
tordnsel Fix #9736 2014-10-19 15:09:26 +02:00
videos Serve video from tpo and not extra 2018-04-24 14:02:19 +02:00
.gitignore Update gitignore to avoid editor drops 2018-02-06 11:09:06 +01:00
.htaccess Redirect support to support.tp.o 2018-11-12 23:14:59 +01:00
favicon.ico add a favicon.ico 2010-10-18 04:30:52 +00:00
googlec8083ab726611228.html Add yes-we-own-this-website token for google. Will remove later. 2015-10-15 12:04:02 -04:00
Makefile Tor 0.4.0.1-alpha released 2019-01-18 09:55:06 -05:00
Makefile.common Add language translation for download page 2017-11-16 18:39:18 +01:00
Makefile.local.sample Revert change to makefile.local.sample 2017-12-26 12:03:00 +01:00
po2wml.sh Minify JS and CSS 2017-07-03 09:05:56 +02:00
README.md update links in README and include/README 2018-09-11 18:20:14 +02:00
robots.txt Added subheads to the FAQ page; applied ln5's patch 2014-02-09 02:55:13 +00:00
update-mirrors.pl update the mirrors page, have the script update the csv list with last status. 2013-12-06 15:54:04 +00:00
wml2po.sh Remove unused version entries 2016-02-05 22:05:42 +01:00

How to contribute

Thanks for being interested to work on the website, I tried to make a simple how-to for you to quickly get you setup:

Step 1: Clone the git repo.

git clone https://git.torproject.org/project/web/webwml.git
cd webwml

Step 1b: Create a bare public repository (i.e on Github), where you'd push your commits to. Make sure you're in webwml directory, and run:

git remote add pick-a-name your-git-url

Example: git remote add tpo-gh git@github.com:mrphs/tpo.git

Step 2: Create and switch to a new branch.

In the following example, I've named my branch "docs" as I'm planning to work on the documentations.

git checkout -b docs

Step 3: Now you can start working on website and make changes. Once you're done, commit and push it to your public repo.

Example:

git push tpo-gh docs

Step 4: Open a new ticket on trac with a link to your shiny new repo/branch.

Building website

Torproject website is being built and published automatically. To quickly get set up and build website locally, simply follow these steps:

Step 1: Get the website's build dependencies.

sudo apt-get install wml asciidoc

Step 2: Configure where to find your tor git repository. It needs this to make the manual page.

git clone https://git.torproject.org/project/web/webwml.git
cd webwml
cp Makefile.local.sample Makefile.local

Note: Change the TORGIT in Makefile.local to point to your tor git repo.

Step 3: Make the website.

make

You should now be able to point your browser at the locally generated site...

file:///home/atagar/Desktop/tor/webwml/getinvolved/volunteer.html.en

For details on WML see http://www.shlomifish.org/open-source/projects/website-meta-language/

Troubleshooting the build

The build fails with "Invalid object name".

If you get an error like...

---- Contents of STDERR channel: ---------
fatal: Invalid object name 'tor-0.2.6.1-alpha'.
asciidoc: FAILED: manpage document title is mandatory
No manpage because of asciidoc error or file not available from git at
/tmp/wml.zwcq0q/wml.30867.tmp1.wml line 415.

This means your tor repository is out of date. Update your tor git repository.

Some information regarding working with minified CSS and JS sources

If you want to edit any of the CSS or JS sources, please bear in mind that the HTML uses the minified versions. We keep in the repository both versions side-to-side. Once you edit the original source make sure you generate the minified version again. Most editors have plugins to minify CSS and JS files. On Debian it is possible to install the yui-compressor package and use it as follows:

yui-compressor myfile.js -o myfile-min.js

If you are wondering why is it "cool" to minify sources even though compression is used on the server, please consider that Minification can be well be used in combination with gzipping sources. Minification does a lot of additional things that compression doesn't do. During minification comments are removed, long variables are renamed to shorter variable names, etc. Transferred data can be significantly smaller after minification, than by simply compressing the original. Although this depends a lot on the original source, minifying helps with mobile browsers and slower connections.

More detailed instructions from Roger

Note: This section was written when website repo was still on svn, and it wasn't built automatically.

Here are the instructions I sent David Fifield when he asked about editing the website. I hope they are useful for you too! --Roger

Copy Makefile.local.sample to Makefile.local in your webwml/ directory. Point TORGIT to a tor git.

Then apt-get install wml and (alas) probably a shocking number of other debs. Then you can type 'make' and it will build the website for you locally. It's probably a smart move to see whether 'make' works before you git commit any changes to the wml files.

You can edit docs/en/pluggable-transports.wml (and that is the right source file to edit, not the html). But go take a look at that file. You'll notice it has a bunch of tags like . If you're just bumping version numbers, you probably just want to change the definition of those tags. They're in include/versions.wmi

(Every once in a while you may need to edit pluggable-transports.wml too -- generally when you change the file name so drastically that just changing the versions.wmi tags isn't enough.)

Pushes to the master branch of the git repository will cause the website to get re-built and published. Pushing to the staging branch will update www-staging.torproject.org.

Alas, https://www.torproject.org/dist/ isn't in version control. You write to it by ssh'ing to dist-master.torproject.org and going to /srv/dist-master.torproject.org/htdocs/ and then sticking your stuff there. When you want it to go live, you run "static-update-component dist.torproject.org" on dist-master.

Weasel has hopes that somebody will write some scripts to make maintaining packages in dist/ less awful -- automatically check that they have signatures and that the sigs match, that the items on the website are in fact in dist, only allow certain people to put files in certain places, etc. One day! :)

tp_donation