GithubHelp home page GithubHelp logo

sh4ntipir4te / i2p.www Goto Github PK

View Code? Open in Web Editor NEW

This project forked from i2p/i2p.www

0.0 0.0 0.0 146.4 MB

Website

License: Other

Shell 0.43% Python 8.24% Makefile 0.04% CSS 5.60% TeX 3.94% HTML 81.48% PHP 0.27%

i2p.www's Introduction

I2P website

To run locally (for testing purposes):

  • Install proxychains, configure it for Tor

  • Pull in the dependencies:

    $ proxychains ./setup_venv.sh
    

    (you can also pull them non-anon by leaving out proxychains)

  • Compile translations (if you want to see them):

    $ ./compile-messages.sh
    
  • Start the webserver:

    $ ./runserver.py
    
  • Open the site at http://localhost:5000/

Running a mirror

If you want to mirror the I2P website, thanks! Here is a checklist:

  • Do not edit any of the files in i2p2www/
    • In particular, do not change the CANONICAL_DOMAIN variable in i2p2www/__init__.py, it needs to point to the official site for SEO.
  • If you need to edit variables in etc/update.vars, copy the file to etc/update.vars.custom and edit appropriately. The only variable you may need to edit is MTNURL in etc/update.vars (if your Monotone client tunnel is listening on a different port).
  • If you want to enable caching, copy i2p2www/settings.py.sample to i2p2www/settings.py and edit appropriately.
  • Add ./site-updater.sh to your crontab. This will keep the site updated, recompile the translations when necessary, and touch a file in /tmp/ (look in etc/update.vars for the filename, your webserver should restart WSGI when the timestamp of this file changes).

Configuration

Configuration files for the various scripts are in etc/. Environment variables in etc/translation.vars can be overridden by creating the file etc/translation.vars.custom and re-defining the environment variables there.

Updating translations

  1. Pull new and updated translations from Transifex:

    $ tx pull -a
    
  2. Correctly format the translations:

    $ ./update-existing-po.sh
    
  3. Check in the updated translations:

    $ mtn ci i2p2www/translations/ -m "Updated translations"
    
  4. Check in any new translations:

    $ mtn add -R i2p2www/translations/ && mtn ci i2p2www/translations/ -m "New translations"
    
  5. Update the POT files with any changes to the website text:

    $ ./extract-messages.sh
    
  6. Update the translations with any changes to the website text:

    $ ./update-existing-po.sh
    
  7. Check in any changes to the website text:

    $ mtn ci pots/ i2p2www/translations/ -m "Updated translation strings"
    
  8. Push website text changes to Transifex:

    $ tx push -s
    

i2p.www's People

Contributors

str4d avatar welterde avatar robertfoss avatar ducki2p avatar mikalv avatar hungryhobo avatar majestrate avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.