Coder Social home page Coder Social logo

tbillon / lolicri.es Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ubitux/lolicri.es

1.0 2.0 0.0 9.68 MB

lolicri.es website source tree

Home Page: http://lolicri.es

License: Do What The F*ck You Want To Public License

Makefile 0.32% Python 69.01% JavaScript 14.12% CSS 16.54%

lolicri.es's Introduction

How to add a cry?

  • Update your local tree with git pull or clone the repository with git clone if you don't have it already
  • Add the cry or cries in www/snd. See the website FAQ (http://lolicri.es/faq.html) for more information on the format/codec restrictions and extraction.
  • Add a kawaii 300x200 PNG picture in www/img
  • Run git add on the just added sound and images files
  • Edit loli_list.py and add/edit the loli entry
  • Run make && firefox www/index.html and check if everything is fine
  • Commit the new loli with git commit -a -m <commit message>
  • Request a merge (if you forked the project) or send a patch (git format-patch -1)
  • Wait for a review from a developer

Eventually, a developer will run git push on the main server with your patch.

How to edit a standard page?

All the pages content are located in the src/ directory. Just edit them and follow the last steps of the previous section.

How to change page information or the index page?

Everything you need is in gen.py, just edit it and hack.

What is the setup of lolicri.es?

We have a shared bare repository in GITROOT=/home/$COMMON_GROUP/lolicri.es.git. This is the repository cloned by the developers, $COMMON_GROUP being a shared group between them.

A cloned repository (from the $GITROOT bare one) is located in WWWROOT=/home/$ADMIN_DEV/lolicri.es. The DocumentRoot of the httpd points on $WWWROOT/www. This directory contains all the images, cries, generated pages, etc. The web server is also configured to redirect any 404 to www/404.html.

Each time a developer pushes something, the script $GITROOT/hooks/post-receive is run. It contains the following code to update the $WWWROOT repository:

#!/bin/sh

ADMIN_DEV=...
WWWROOT=/home/$ADMIN_DEV/lolicri.es

read oldrev newrev refname
[ "$refname" != "refs/heads/master" ] && exit 0
cd $WWWROOT
unset GIT_DIR
git pull
make BASEURL=

lolicri.es's People

Contributors

ubitux avatar ggounot avatar db0company avatar roselapin avatar

Stargazers

Thibault Billon avatar

Watchers

Thibault Billon avatar James Cloos 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.