Skip to content

codeforgoodconf/free-geek

Repository files navigation

Note: Master branch is currently out of date. Please checkout Delevop branch for current info.

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.

About

Code for Good Hackathon for Free Geek

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published