Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/modelo-problema-generico.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Modelo de problema genérico
about: Pode ser usado para relatar qualquer tipo de problema envolvendo o site da comunidade
title: Problema envolvendo [MARCADOR DE POSIÇÃO]
labels: ''
assignees: ''
---

**Qual é o problema?**

**Qual a sugestão de alteração?**
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**Qual o objetivo deste PR?**


**O que foi feito para alcançar o objetivo?**


**Como testar se as alterações realmente funcionam?**
114 changes: 114 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Pasta do ambiente virtual
.venv

# Pastas e arquivos gerados gerada pelo Nikola : https://getnikola.com/
cache/
saida-nikola/
20 changes: 20 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
The MIT License (MIT)

Copyright (c) 2021 Python Floripa

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
60 changes: 60 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
![alt text](site_python_floripa/images/LOGO_PYTHON_FLORIPA_HORIZONTAL.svg "Logo Python Floripa")
# Site Python Floripa 2021

Repositório do site da comunidade Python Floripa versão 2021!

## Sumário

- [Inicialização](#Inicialização)
- [Windows](#Windows)
- [Linux/WSL](#Linux/WSL)
- [Mac OS](#Mac-OS)
- [Como Contribuir](#Como-Contribuir)
- [Código de Conduta](#Código-de-Conduta)
- [Licença](#Licença)

## Inicialização

Para inicializar o site eu sua máquina pessoal, siga a seção que corresponde ao seu sistema operacional.

### Windows

Contribua escrevendo como executar o nosso site no sistema operacional Windows!

### Linux/WSL

Na raiz do projeto, execute
```
source scripts/inicializacao.sh
```
O script irá criar e ativar um ambiente virtual, instalar as dependências do projeto e iniciar o servidor no site no endereço de hospedagem local (`127.0.0.1`), na porta `8000`.

Para para o servidor, execute `Ctrl+C`.

Para desativar o ambiente virtual, execute `deactivate`.

Para ativar o ambiente virtual, na raiz do projeto, execute
```
source .venv/bin/activate
```

Para iniciar o servidor, na pasta `site_python_floripa`, execute
```
nikola auto
```

### Mac OS

Contribua escrevendo como executar o nosso site no sistema operacional Mac OS!

## Como Contribuir

Ajude nossa comunidade a crescer ainda mais contribuindo e sugerindo melhorias à nossos projetos! Para mais informações em como contribuir, confira nosso [guia de como contribuir](docs/CONTRIBUTING.md) e também nossa [Wiki](https://github.com/PythonFloripa/pythonfloripa.github.io/wiki)!

## Código de Conduta

Todos que interagem com os projetos da nossa comunidade estão sujeitos à nosso [código de conduta](docs/CODE_OF_CONDUCT.md).

## Licença

Esse repositório é licenciado sob os termos da [Licença MIT](LICENSE).
3 changes: 3 additions & 0 deletions docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Código de Conduta

Nossa Comunidade é compromissada em acolher bem todos seus membros. Para tal, seguimos o [código de conduta da Python Brasil](https://python.org.br/cdc/).
7 changes: 7 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Como contribuir com o site da Python Floripa

Caso queira relatar um problema ou melhoria, confira se esta já não existe. Caso ainda tenha sido relatada, crie uma nova "issue" na seção "Issues" do repositório. Selecione o modelo de problema que melhor se adeque. Selecione também tags relacionadas ao tema. Por fim, selecione o quadro de tarefas "Site Python Floripa 2021" e crie a "issue".

Caso queira contribuir nas tarefas existentes, mova a tarefa quer trabalhar para coluna em andamento e atribua-a ao seu usuário do GitHub. Se for necessário alterações no código, crie uma nova branch a partir da `development`. Quando terminá-la, abra um PR preenchendo corretamente o modelo de PR.

Caso queira contribuir com nossa [Wiki](https://github.com/PythonFloripa/pythonfloripa.github.io/wiki), usamos markdown para sua edição.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Nikola[extras]
8 changes: 8 additions & 0 deletions scripts/inicializacao.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

virtualenv .venv
. .venv/bin/activate
pip install -U pip setuptools wheel
pip install -r requirements.txt
cd site_python_floripa
nikola auto
Binary file added site_python_floripa/.doit.db
Binary file not shown.
105 changes: 105 additions & 0 deletions site_python_floripa/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# -*- coding: utf-8 -*-
import time

BLOG_AUTHOR = 'Python Floripa'
BLOG_TITLE = 'Python Floripa'
BLOG_EMAIL = 'pythonflorianopolis@gmail.com'
BLOG_DESCRIPTION = 'Site da comunidade Python Floripa!'

DEFAULT_LANG = 'pt_br'

SITE_URL = 'http://floripa.sc.python.org.br/'
BASE_URL = 'http://pythonfloripa.github.io/'
PRETTY_URLS = True

NAVIGATION_LINKS = {
DEFAULT_LANG: (
('/', 'Início'),
),
}

POSTS = (
('posts/*.md', 'posts', 'post.tmpl'),
)
PAGES = (
('pages/*.md', '', 'page.tmpl'),
)
INDEX_PATH = 'pages/inicio.md'

THEME = 'python-floripa'
THEME_CONFIG = {
DEFAULT_LANG: {
'navbar_light': False,
'navbar_custom_bg': 'bg-python-floripa',
}
}
EXTRA_HEAD_DATA = '''
<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
'''
SHOW_SOURCELINK = False
CODE_COLOR_SCHEME = 'paraiso-dark'

OUTPUT_FOLDER = 'saida-nikola'
CACHE_FOLDER = 'cache'

TIMEZONE = 'America/Sao_Paulo'
DATE_FORMAT = 'dd/MM/yyyy HH:mm'
LUXON_DATE_FORMAT = {
DEFAULT_LANG: {'preset': False, 'format': DATE_FORMAT},
}

COMPILERS = {
'markdown': ['.md', '.mdown', '.markdown'],
'html': ['.html', '.htm'],
}

METADATA_FORMAT = 'Nikola'
ONE_FILE_POSTS = False
FILE_METADATA_UNSLUGIFY_TITLES = True

IMAGE_FOLDERS = {'images': 'images'}
DEFAULT_PREVIEW_IMAGE = '/images/CAPA_PYTHON_FLORIPA.png'
LOGO_URL = 'images/LOGO_PYTHON_FLORIPA_HORIZONTAL.svg'
SHOW_BLOG_TITLE = False

# FAVICONS contains (name, file, size) tuples.
# Used to create favicon link like this:
# <link rel="name" href="file" sizes="size"/>
FAVICONS = (
('icon', 'images/LOGO_PYTHON_FLORIPA.svg', '16x16'),
# ('icon', '/favicon.ico', '16x16'),
# ('icon', '/icon_128x128.png', '128x128'),
)

GITHUB_SOURCE_BRANCH = 'development'
GITHUB_DEPLOY_BRANCH = 'master'
GITHUB_REMOTE_NAME = 'origin'
GITHUB_COMMIT_SOURCE = True

LICENSE = '''
<a rel="license" href="
https://github.com/PythonFloripa/pythonfloripa.github.io/blob/development/LICENSE
">Licença MIT</a>
'''

CONTENT_FOOTER_FORMATS = {
DEFAULT_LANG: (
(),
{
'email': BLOG_EMAIL,
'author': BLOG_AUTHOR,
'date': time.gmtime().tm_year,
'license': LICENSE
}
)
}
CONTENT_FOOTER = '''
&copy; {date} <a href="mailto:{email}">{author}</a> |
Produzido com <a href="https://getnikola.com" rel="nofollow">Nikola</a>
'''

MARKDOWN_EXTENSIONS = [
'markdown.extensions.fenced_code',
'markdown.extensions.codehilite',
'markdown.extensions.extra'
]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading