Git Product home page Git Product logo

pythonclassmates.org's Introduction

PythonClassmates

Opinions d'étudiants en programmation python


Ce blog propose d'offrir une plateforme de publication collaborative maintenue par les étudiants et mentors du discord des étudiants Python d'Openclassrooms. L'objectif de ce dernier est de fournir des news, des didacticiels, des critiques de livres, des astuces en relation avec le langage de programmation python.

Contribuer via l'interface Github

  1. Connectez-vous à votre Github
  2. Faites un fork du dépôt
  3. Créez votre nouvel article (ou modifiez un existant) au format rst ou md dans content/articles/, l'en-têtes doit respecter le modèle correspondant au format choisi. (N'hésitez pas à consulter les autres articles en exemple) :

Pour un article au format ReStructuredText, l'en-tête du fichier .rst doit suivre le format suivant :

Le titre de mon article
#######################

:date: 2018-07-14 14:00
:modified: 2019-01-08 08:00
:category: Articles
:tags: tag1, tag2
:slug: le-titre-de-mon-article-sous-forme-de-slug
:author: Jean Dupont
:summary: Version courte de l'article

Voici un article d'aide pour vous accompagner dans la [rédaction d'un article au format ReStructuredText](http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) (le format de markup officiel pour les projets python).

Pour un article au format Markdown, l'en-tête du fichier .md doit suivre le format suivant :

Title: Le titre de mon article
Date: 2018-07-14 14:00
Modified: 2019-01-08 08:00
Tags: tag1, tag2
Slug: le-titre-de-mon-article-sous-forme-de-slug
Author: Jean Dupont
Summary: Version courte de l'article

Voici un [article pour vous aider](https://guides.github.com/features/mastering-markdown/) si vous n'avez encore jamais rédigé de fichiers au format _Markdown_.

Une fois votre article terminé, demandez d'ajouter cette modification en soumettant une pull request (PR) depuis l'interface Github (dans votre fork). Cette PR sera traitée par un mainteneur du projet. Voici un article pour vous aider : créer une pull request.

Contribuer depuis votre ordinateur

  1. Installez git

    • Pour Mac OS et Linux, vous avez peut-être une version déjà installée, essayez la commande $ git --version dans un terminal pour vous en assurer
    • Pour Windows, installez Git For Windows et suivre ce cours si vous avez besoin de découvrir l'outil
  2. Clonez votre fork du projet avec de la commande git clone <adresse-de-votre-fork>.git

  3. Ajoutez/modifiez un article comme indiqué ci dessus.

  4. Poussez la modification sur github avec la commande git push origin master

  5. Retournez sur la page d'accueil de votre fork sur Github un message vous invitera à créer une PR

Outils pour visualiser son article

Pour pouvoir visualiser son article lors du développement local, les dépendances à installer sont:

  • Python 3.6+
  • $ pip3 install pipenv ou $ pip install pipenv (sous windows)
  • $ pipenv install

Pour générer le html statique à partir de l'article en ReStructuredText ou en Markdown:

  • $ pipenv run invoke build

Pour visualiser son article sur http://localhost:8000:

  • $ pipenv run invoke runserver (Vous pouvez arrêter le server en appuyant sur CTRL+C ou Cmd+C selon l'OS)

pythonclassmates.org's People

Contributors

cmigazzi avatar freezed avatar gil-x avatar horlas avatar jn-lab avatar louis-gabriel-tm avatar sebdeclercq avatar tchappui avatar

Watchers

 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.