Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
h4child committed Mar 2, 2018
2 parents 34ce86b + eb099dc commit e5aa77a
Show file tree
Hide file tree
Showing 66 changed files with 17,743 additions and 710 deletions.
72 changes: 66 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,67 @@
build/
bld/
build-vs/
build-vs17/
x64/
structure

# Created by https://www.gitignore.io/api/c

### C ###
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf


# End of https://www.gitignore.io/api/c

build/
bld/
build-vs/
build-vs17/
x64/
structure
.vscode/
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ deploy:
file_glob: true
file: $TRAVIS_BUILD_DIR/README.md
skip_cleanup: true
before_deploy:

before_release:

- ls -LR
on:
repo: giancarlopro/framebot
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Framebot - 0.1.0 [![Build Status](https://travis-ci.org/giancarlopro/framebot.svg?branch=dev)](https://travis-ci.org/giancarlopro/framebot) [![Open Source Helpers](https://www.codetriage.com/giancarlopro/framebot/badges/users.svg)](https://www.codetriage.com/giancarlopro/framebot)
# Framebot - 0.1.0 [![Build Status](https://travis-ci.org/giancarlopro/framebot.svg?branch=dev)](https://travis-ci.org/giancarlopro/framebot) [![Open Source Helpers](https://www.codetriage.com/giancarlopro/framebot/badges/users.svg)](https://www.codetriage.com/giancarlopro/framebot) [![Documentation Status](https://readthedocs.org/projects/framebot/badge/?version=latest)](http://framebot.readthedocs.io/pt/latest/?badge=latest)

This is the official repository for Framebot.

Expand Down
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = Framebot
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Binary file added docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file added docs/_build/doctrees/index.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/starting.doctree
Binary file not shown.
4 changes: 4 additions & 0 deletions docs/_build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f7e70013576fda49f28e4114e47e33ff
tags: 645f666f9bcd5a90fca523b33c5a78b7
21 changes: 21 additions & 0 deletions docs/_build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. Framebot documentation master file, created by
sphinx-quickstart on Sat Feb 24 20:48:01 2018.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Framebot's documentation!
====================================

.. toctree::
:maxdepth: 2
:caption: Contents:

starting


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
53 changes: 53 additions & 0 deletions docs/_build/html/_sources/starting.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Começando
=========

Framebot é uma biblioteca feita em C para facilitar o uso da BOT API do telegram.

Instalação
----------

Para instalar a biblioteca você deve primeiro clonar o nosso repositório:
``$ git clone https://github.com/giancarlopro/framebot``

Agora você vai precisar ter o `cmake` instalado, e algumas libs:
``$ sudo apt install cmake openssl curl jansson``

Após isso entre na pasta onde a biblioteca foi clonada, por padrão vai ser `framebot`:
``$ cd framebot``

Agora crie uma pasta para compilar a biblioteca e rode o cmake para criar o makefile:
``$ mkdir build``

``$ cd build``

``$ cmake ..``

Agora utilize o makefile para compilar e instalar a biblioteca:
``$ make``

``$ make install``

Configuração
------------

Para utilizar a biblioteca em seus projetos, você deve informar ao compilador explicitamente
as bibliotecas que serão compiladas juntas.

* Se estiver compilando pelo terminal:
``$ gcc projeto.c -o out -lcurl -ljansson -lframebot``

* Se estiver utilizando o cmake basta informar no seu CMakeLists.txt, em target_link_libraries:
``target_link_libraries(seuexecutavel framebot)``

Utilização
----------

Para utilizar a biblioteca em seus projetos, você deve incluir o arquivo `framebot.h`.
``#include <framebot/framebot.h>``

Exemplos
--------

Você encontra exemplos de uso da biblioteca na pasta `examples` em nosso repositório no `GitHub`_.

.. _`GitHub`: https://github.com/giancarlopro/framebot/blob/master/examples
Binary file added docs/_build/html/_static/ajax-loader.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e5aa77a

Please sign in to comment.