README.rst 1.94 KB
Newer Older
1 2 3 4 5
.. image:: https://img.shields.io/github/tag/gafam/www.gafam.info.svg
    :target: https://github.com/gafam/www.gafam.info

|

6 7 8 9 10 11 12
##############
www.gafam.info
##############


About
=====
13
This repository contains the sources of the `gafam.info`_ web page.
14

15 16 17 18 19 20 21 22 23 24 25 26 27
It is about collecting, maintaining and promoting translations of the
`GAFAM poster campaign`_ by `La Quadrature du Net`_.

The web page and its accompanying repository `gafam-poster-translations`_
are intended to support the lovely people of LQDN in spreading
the word about their campaign.

Contributions are always welcome!

.. _gafam.info: https://gafam.info/
.. _GAFAM poster campaign: https://twitter.com/laquadrature/status/942764007286591490
.. _La Quadrature du Net: https://www.laquadrature.net/
.. _gafam-poster-translations: https://github.com/gafam/gafam-poster-translations
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


How to work with it
===================
Bundle Javascript and CSS assets using webpack::

    yarn install
    yarn run build

Watch files for rebundling::

    yarn run watch

Have a look::

    open ./htdocs/index.html

45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64

Create thumbnail image from poster PDF
======================================
::

    # Just a workbench
    mkdir tmp; cd tmp

    # Acquire PDF file
    wget https://ptrace.gafam.info/upstream/pdf/lqdn-gafam-poster-de.pdf

    # Layout multiple pages in matrix
    pdfnup --nup 2x3 --landscape=true --no-tidy lqdn-gafam-poster-de.pdf

    # Convert to GIF format appropriately
    convert -units PixelsPerInch lqdn-gafam-poster-de-nup.pdf -density 72 -trim +repage -resize 595x gafam-german-card.gif

    # Copy to target directory
    cp gafam-german-card.gif ../htdocs/static/img/

65 66 67 68 69 70 71 72 73 74 75 76 77 78

Download MP4 video from Twitter
===============================
::

    # Just a workbench
    mkdir tmp; cd tmp

    # youtube-dl does it all ;]
    youtube-dl --output 'lqdn-gafam-paris.mp4' https://twitter.com/laquadrature/status/944148790684069888

    # Upload to content web space
    make ptrace source=lqdn-gafam-paris.mp4