6c738818f98fc4e78afdb31f3de9b218be72e74e
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md   1) # How to contribute
README.md   2) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md   3) Thanks for being interested to work on the website, I tried to make a simple 
README.md   4) how-to for you to quickly get you setup:
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md   5) 
README.md   6) __Step 1:__ Clone the git repo.
README.md   7) 
README.md   8)     git clone https://git.torproject.org/project/web/webwml.git
README.md   9)     cd webwml
README.md  10) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  11) __Step 1b:__ Create a bare public repository (i.e on Github), where you'd push 
README.md  12) your commits to. Make sure you're in `webwml` directory, and run:
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  13) 
README.md  14)     git remote add pick-a-name your-git-url
README.md  15) 
README.md  16) _Example:_
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  17)     `git remote add tpo-gh git@github.com:mrphs/tpo.git`
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  18) 
README.md  19) __Step 2:__ Create and switch to a new branch.
README.md  20) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  21) _In the following example, I've named my branch "docs" as I'm planning to work 
README.md  22) on the documentations._
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  23) 
README.md  24)     git checkout -b docs
README.md  25) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  26) __Step 3:__ Now you can start working on website and make changes. Once you're 
README.md  27) done, commit and push it to your public repo.
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  28) 
README.md  29) _Example:_
README.md  30) 
README.md  31)     git push tpo-gh docs
README.md  32) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  33) __Step 4:__ Open a new ticket on [trac](https://trac.torproject.org) with a 
README.md  34) link to your shiny new repo/branch.
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  35) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  36) # Building website
README.md  37) Torproject website is being built and published automatically.
README.md  38) To quickly get set up and build website locally, simply follow these steps:
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     39) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  40)  __Step 1:__ Get the website's build dependencies.
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     41) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  42)     sudo apt-get install wml asciidoc
README.md  43) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  44)   __Step 2:__ Configure where to find your tor git repository. It needs this 
README.md  45) to make the
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     46)      manual page.
README     47) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  48)     git clone https://git.torproject.org/project/web/webwml.git
README.md  49)     cd webwml
README.md  50)     cp Makefile.local.sample Makefile.local
README.md  51)     
README.md  52) Note: Change the `TORGIT` in Makefile.local to point to your tor git repo.
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     53) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  54)   __Step 3:__ Make the website.
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     55) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  56)     make
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     57) 
README     58) You should now be able to point your browser at the locally generated site...
README     59) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  60)     file:///home/atagar/Desktop/tor/webwml/getinvolved/volunteer.html.en
README.md  61) 
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     62) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  63) ### Troubleshooting the build
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     64) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  65) The build fails with "Invalid object name".
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     66) 
README     67)   If you get an error like...
README     68) 
README     69)     ---- Contents of STDERR channel: ---------
README     70)     fatal: Invalid object name 'tor-0.2.6.1-alpha'.
README     71)     asciidoc: FAILED: manpage document title is mandatory
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  72)     No manpage because of asciidoc error or file not available from git at 
README.md  73)     /tmp/wml.zwcq0q/wml.30867.tmp1.wml line 415.
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     74) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  75)   This means your tor repository is out of date. Update your tor git 
README.md  76) repository.
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     77) 
Nima Fatemi Update and rename README to...

Nima Fatemi authored 9 years ago

README.md  78) 
README.md  79) ### More detailed instructions from Roger
README.md  80) 
Nima Fatemi Update README.md

Nima Fatemi authored 9 years ago

README.md  81) _Note: This section was written when website repo was still on svn, and it 
README.md  82) wasn't built automatically._
Damian Johnson Improving the readme instru...

Damian Johnson authored 9 years ago

README     83) 
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

README     84) Here are the instructions I sent David Fifield when he asked about
README     85) editing the website. I hope they are useful for you too! --Roger
README     86) 
Roger Dingledine update readme to know about...

Roger Dingledine authored 9 years ago

README     87) Copy Makefile.local.sample to Makefile.local in your webwml/ directory.
README     88) Point TORGIT to a tor git.
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

README     89) 
README     90) Then apt-get install wml and (alas) probably a shocking number of other
README     91) debs. Then you can type 'make' and it will build the website for you
README     92) locally. It's probably a smart move to see whether 'make' works before
Roger Dingledine update readme to know about...

Roger Dingledine authored 9 years ago

README     93) you git commit any changes to the wml files.
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

README     94) 
README     95) You can edit docs/en/pluggable-transports.wml (and that is
README     96) the right source file to edit, not the html). But go take a
README     97) look at that file. You'll notice it has a bunch of tags like
David Fifield Remove torobfsbundlealpha t...

David Fifield authored 10 years ago

README     98) <version-torbrowserbundle>. If you're just bumping version
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

README     99) numbers, you probably just want to change the definition of those tags.
README    100) They're in include/versions.wmi
README    101) 
README    102) (Every once in a while you may need to edit pluggable-transports.wml
README    103) too -- generally when you change the file name so drastically that just
README    104) changing the versions.wmi tags isn't enough.)
README    105) 
Peter Palfrader Somewhat update docs

Peter Palfrader authored 9 years ago

README    106) Pushes to the master branch of the git repository will cause the
Roger Dingledine update readme to know about...

Roger Dingledine authored 9 years ago

README    107) website to get re-built and published. Pushing to the staging branch
Peter Palfrader Somewhat update docs

Peter Palfrader authored 9 years ago

README    108) will update www-staging.torproject.org.
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

README    109) 
README    110) Alas, https://www.torproject.org/dist/ isn't in version control. You
Roger Dingledine update readme to know about...

Roger Dingledine authored 9 years ago

README    111) write to it by ssh'ing to dist-master.torproject.org and going to
Peter Palfrader Somewhat update docs

Peter Palfrader authored 9 years ago

README    112) /srv/dist-master.torproject.org/htdocs/ and then sticking your stuff
README    113) there. When you want it to go live, you run
Roger Dingledine update readme to know about...

Roger Dingledine authored 9 years ago

README    114) "static-update-component dist.torproject.org" on dist-master.
Roger Dingledine capture my "how to edit the...

Roger Dingledine authored 10 years ago

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