Git Product home page Git Product logo

free-geek's Introduction

free-geek

Source code and documentation for the "Code for Good" Conference (hackathon) for Free Geek.

Getting Started

Check out the docs where we keep a copy of the feature requests from Free Geek staff.

Also, we abide by the Free Geek volunteer Code of Conduct to make sure you review it here

Installation

$ pip install geeksched

Contributing

$ git clone https://github.com/codeforgoodconf/freegeek.git
$ mkvirtualenv freegeek
$ pip install -e freegeek/

Documentation

The project documentation is auto-rendered from the github repository to read the docs.

Generating documentation

After changes are made in markdown files run these from the level of free-geek folder:

$ python freegeek/convert_docs.py
$ python freegeek/link_fix.py
$ python setup.py docs

These commands:

  1. Convert .md to .rst files
  2. Fix links in README.rst
  3. Build sphinx docs (read the docs)

Pandoc is required to convert the files. Installation is OS dependent.

Generating documentation automatically.

It is possible to add the above python scripts to pre-commit hooks. Changes will not be commited, but they are generated for the next commit/push.

Please follow the "Adding flake8 into a pre-commit hook" for instructions on pre-commit hook, and use this script instead.

#!/bin/sh

flake8 .
python freegeek/convert_docs.py
python freegeek/link_fix.py
python setup.py docs

exit 0

It is possible to further automate the generation by adding git commands to the bash script. It is hover not reccomended to auto commit to git, thus it is left from the instructions.

Testing

    pip install -r test-requirements.txt

Adding flake8 into a pre-commit hook

  1. Open the hidden .git folder inside free-geek folder
  2. Open the hook folder.
  3. You are now in free-geek/.git/hooks/.
  4. Create a file pre-commit. No extensions.
  5. Write this into the file:
#!/bin/sh

flake8 .

exit 0
  1. Make the file executable: chmod +x pre-commit

Commits must be executed in the terminal, not GUI.

Now before every commit flake8 will run and display the output into terminal window. It will not prevent the commit.

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.