Giter VIP home page Giter VIP logo

pycontw-blog's Introduction

PRs Welcome Code style: black

PyCon Taiwan Blog

Getting Started

Prerequisites

Environment Setup

  1. Fork pycontw/pycontw-blog

  2. Clone the repository from your GitHub recursivly. (i.e., your-user-name/pycontw-blog)

    git clone --recursive https://github.com/[your-user-name]/pycontw-blog.git
  3. Setup development environment through the following command

    pipenv install --dev
  4. Setup pre-commit hooks which check common errors when you do certain types of git commits

    pipenv run pre-commit install --hook-type commit-msg --hook-type pre-push --hook-type pre-commit

Write a new article

  1. Create a file in markdown or reStructuredText format inside the content directory. The following section will detail how we organized the content directory. Your filename should be the English title of your article. You'll have to translate it if there's no English title. The following is a minimal example of an article.

    • In markdown

      Title: My super post
      Date: 2010-12-03 10:20
      Modified: 2010-12-05 19:30
      Category: Python
      Tags: pelican, publishing
      Slug: my-super-post
      Authors: Alexis Metaireau, Conan Doyle
      Summary: Short version for index and feeds
      
      This is the content of my super blog post.
    • In reStructuredText

      My super post
      ##############
      
      :date: 2010-10-03 10:20
      :modified: 2010-10-04 18:40
      :tags: thats, awesome
      :category: yeah
      :slug: my-super-post
      :authors: Alexis Metaireau, Conan Doyle
      :summary: Short version for index and feeds

      Please read Writing content section in pelican documentation for format detail.

  2. After you finish a new article, you can run pipenv run inv livereload. It will build our current content into web pages, serve it on http://localhost:8000/, and open your default browser.

  3. If everything looks good, use the following command to add the new article to this repository.

    git add <your new article>
    
    # use commitizen to do git commit
    # choose the "new post" type if you're adding a new article
    pipenv run cz commit
    
    git push origin <your feature branch>
  4. Create a pull request to pycontw/pycontw-blog.

How do we organize our data in the content directory?

TBD

Authors

Wei Lee [email protected]

pycontw-blog's People

Contributors

lee-w avatar tai271828 avatar rockhung avatar 9ukei avatar iknowright avatar jrycw 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.