Coder Social home page Coder Social logo

datactivist-website's Introduction

datactivist website

Instructions pour pouvoir contribuer du contenu au site.

Mise en place pour nouveau contributeur

  1. Installer le framework hugo sur la machine.

Pour Ubuntu :

sudo apt-get install hugo

Pour macOS avec Homebrew :

brew install hugo

Pour Windows avec Chocolatey :

choco install hugo -confirm

En cas de soucis ou pour d'autres options, reportez-vous au site de Hugo.

  1. Sur GitHub, faire un fork de https://github.com/datactivist/datactivist-website

  2. Dans un terminal, cloner le fork et ajouter un lien vers le repo datactivist"upstream":

cd /path/to/wherever
git clone https://github.com/<your_login>/datactivist-website
cd datactivist-website
git remote add upstream https://github.com/datactivist/datactivist-website

Puis pour tenir son fork à jour : https://help.github.com/en/articles/syncing-a-fork

Modifier le contenu

  1. Dans un terminal:
cd /path/to/wherever
cd datactivist-website/hugo/

hugo server
  1. Modifier les fichiers markdown dans les dossiers /content/francais/homepage, /content/francais/a-propos etc.

  2. Appuyer sur Ctrl+C pour tuer le serveur

  3. Supprimer le dossier public et le submodule git correspondant:

cd ..
rm -rf .git/modules/hugo/public/ .gitmodules hugo/public
# edit .git/config (ex: emacs .git/config)
# delete [submodule "hugo/public"] and its daughters
git rm -r --cached hugo/public

5 - Ajouter le submodule git:

git submodule add -b master [email protected]:datactivist/datactivist.github.io.git hugo/public

6 - Générer le site statique à partir du contenu:

cd hugo
hugo

7 - Déployer la nouvelle version du site en poussant le contenu du dossier public/ sur datactivist.github.io (via le submodule git):

# go to public folder
cd public
# add changes to git and commit
git add .
git commit -m "MESSAGE DE COMMIT"
# push changes
git push origin master

8 - Committer et pousser les modifs du contenu sur son fork:

# commit modifs in the folder hugo/ only
cd ..
git add .
git commit -m "MESSAGE DE COMMIT"
# commit modifs in the root folder for datactivist-website
cd ..
git add .
git commit -m "AUTRE MESSAGE DE COMMIT"
# push all modifs
git push

datactivist-website's People

Contributors

cecilaki avatar enro avatar joelgombin avatar juliadumont avatar moreymat avatar peh4 avatar samgoeta avatar sylvainlapoix 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.