Giter VIP home page Giter VIP logo

pythonnepal.github.io's Introduction

Python Users Group Nepal Website Build Status

This is the repo for the Python User Group Nepal's website. The site is built using Pelican, a static site generator, powered by Python. The site's theme is based on Pure Pelican Theme.

Find us

Setup for local development

  • Fork repo

    Fork the repository to your account so that you have your copy of the website.

  • Clone repo

      $ git clone --recursive [email protected]:<your-username>/pythonnepal.github.io.git pynepal-website
    

This will clone the repository on to your system and clone the submodules inside it as well recursively. Additionally, the folder to which it will be cloned to is called pynepal-website.

  • Set up a virtual env in that folder and activate it

      $ cd <repo>
      $ virtualenv venv
      $ source venv/bin/activate
    
  • Install the requirements using pip from inside the virtual environment

      (venv)$ pip install -r requirements.txt
    
  • Start the server

      fab serve
    
  • Visit local site

    Open up your web browser and point it to http://localhost:8000 to see the site running locally. Yay!

Blog Workflow

If you're interested in writing a blog post for the website, you need to:

  • Fork the repository
  • Write a blog post using Markdown in the content directory
  • Push the changes to a topic branch, like an-example-article, on your fork of the repository
  • Make a pull request against the master branch.

Deployment

We use Fabric for automating the tasks and deployment. Type fab --list to see the available commands.

Available commands:

    build       Build local version of site
    clean       Remove generated files
    preview     Build production version of site
    publish     Push the generated html to master branch on GitHub.     
    rebuild     `clean` then `build`
    regenerate  Automatically regenerate site upon file modification
    reserve     `build`, then `serve`
    serve

Contributing

See CONTRIBUTING.md

If you're a python developer from Nepal, you can add yourself to the website. To do that,

  • Fork the repo
  • Edit the file present at content/pages/developers.md. The format is Markdown.
  • Send us a pull request

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.