Skip to content

Commit

Permalink
criado base em construção
Browse files Browse the repository at this point in the history
  • Loading branch information
Perceu committed Dec 9, 2023
1 parent a382c10 commit a2625dc
Show file tree
Hide file tree
Showing 88 changed files with 60,216 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,6 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

output/
cache/
Empty file added content/apoios/.gitkeep
Empty file.
Empty file added content/bronze/.gitkeep
Empty file.
Empty file added content/cobre/.gitkeep
Empty file.
7 changes: 7 additions & 0 deletions content/construcao.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Title: Em Construção
slug: em-construcao
Date: 2024-01-01 12:00
Category: Home
Summary: Em Construção

Estamos trabalhando para logo trazer mais informações
Empty file added content/diamante/.gitkeep
Empty file.
Empty file added content/images/.gitkeep
Empty file.
Empty file added content/keynotes/.gitkeep
Empty file.
Empty file added content/ouro/.gitkeep
Empty file.
Empty file added content/palestras/.gitkeep
Empty file.
Empty file added content/parceiros/.gitkeep
Empty file.
Empty file added content/platina/.gitkeep
Empty file.
Empty file added content/prata/.gitkeep
Empty file.
Empty file added content/tutoriais/.gitkeep
Empty file.
67 changes: 51 additions & 16 deletions pelicanconf.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
AUTHOR = 'pybr-organizers'
SITENAME = 'pybr2024-site'
from util.jinja_filters import get_by_slug


SITEYEAR = 2023
SITEURL = ''

AUTHOR = 'Python Brasil'
SITENAME = 'Python Brasil 2023'
THEME = 'theme'
PATH = 'content'

TIMEZONE = 'America/Bahia'

DEFAULT_LANG = 'pt'
DEFAULT_LANG = 'pt-br'

# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
Expand All @@ -15,17 +18,49 @@
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (('Pelican', 'https://getpelican.com/'),
('Python.org', 'https://www.python.org/'),
('Jinja2', 'https://palletsprojects.com/p/jinja/'),
('You can modify those links in your config file', '#'),)
JINJA_FILTERS = {
"get_by_slug": get_by_slug,
}

PLUGINS = []

MENU = [
('#inicio', 'Início', False),
('#evento', 'Sobre o evento', False),
('#keynotes', 'Keynotes', False),
('#programacao', 'Programação', False),
('#patrocinadores', 'Patrocinadores', False),
('#faq', 'FAQ', False),
('#footer', 'Site Map', False),
]

SOCIAL = {
'twitter':'https://twitter.com/pythonbrasil',
'instagram':'https://instagram.com/pythonbrasil',
'linkedin':'https://www.linkedin.com/company/apyb/',
'youtube':'https://www.youtube.com/c/pythonbrasiloficial',
'facebook':'https://www.facebook.com/pythonbrasil',
'flickr':'https://www.flickr.com/pythonbrasil',
'telegram':'https://t.me/pythonbrasil',
'email':'mailto:[email protected]',
}

DEFAULT_PAGINATION = False
SITE_META_KEYWORDS = f"Python Brasil, Python Brasil {SITEYEAR}, evento python, comunidade, evento, Programação, Python"
SITE_META_DESCRIPTION = "Python Brasil é o maior evento sobre linguagem de programação Python do Brasil. Feito pela comunidade para a comunidade, tem o objetivo de difundir a linguagem, promover a troca de experiências e manter a comunidade crescendo igualmente em público e impacto social."

# Social widget
SOCIAL = (('You can add links in your config file', '#'),
('Another social link', '#'),)
EVENTO = {
'inscricao':'',
'submissao':'',
'data_evento': '',
'cidade': ''
}

DEFAULT_PAGINATION = 10
PLANOS = {
'pt_br':'',
'en':'',
}

# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True
GUIA = {
'pt_br':'',
}
1 change: 1 addition & 0 deletions publishconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://2024.pythonbrasil.org.br'

RELATIVE_URLS = False

FEED_ALL_ATOM = 'feeds/all.atom.xml'
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
blinker==1.7.0
docutils==0.20.1
feedgenerator==2.1.0
invoke==2.2.0
Jinja2==3.1.2
livereload==2.6.3
Markdown==3.5.1
markdown-it-py==3.0.0
MarkupSafe==2.1.3
Expand All @@ -13,5 +15,6 @@ pytz==2023.3.post1
rich==13.6.0
six==1.16.0
smartypants==2.0.1
tornado==6.4
typogrify==2.0.7
Unidecode==1.3.7
12 changes: 7 additions & 5 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from invoke import task
from invoke.main import program
from invoke.util import cd
from util.cname import move_cname
from pelican import main as pelican_main
from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
from pelican.settings import DEFAULT_CONFIG, get_settings_from_file
Expand Down Expand Up @@ -43,17 +44,18 @@ def clean(c):
@task
def build(c):
"""Build local version of site"""
pelican_run('-s {settings_base}'.format(**CONFIG))
pelican_run('-t theme -s {settings_base}'.format(**CONFIG))
move_cname()

@task
def rebuild(c):
"""`build` with the delete switch"""
pelican_run('-d -s {settings_base}'.format(**CONFIG))
pelican_run('-d -t theme -s {settings_base}'.format(**CONFIG))

@task
def regenerate(c):
"""Automatically regenerate site upon file modification"""
pelican_run('-r -s {settings_base}'.format(**CONFIG))
pelican_run('-r -t theme -s {settings_base}'.format(**CONFIG))

@task
def serve(c):
Expand Down Expand Up @@ -92,7 +94,7 @@ def livereload(c):
from livereload import Server

def cached_build():
cmd = '-s {settings_base} -e CACHE_CONTENT=true LOAD_CONTENT_CACHE=true'
cmd = '-t theme -s {settings_base} -e CACHE_CONTENT=true LOAD_CONTENT_CACHE=true'
pelican_run(cmd.format(**CONFIG))

cached_build()
Expand Down Expand Up @@ -127,7 +129,7 @@ def cached_build():
@task
def publish(c):
"""Publish to production via rsync"""
pelican_run('-s {settings_publish}'.format(**CONFIG))
pelican_run('-t theme -s {settings_publish}'.format(**CONFIG))
c.run(
'rsync --delete --exclude ".DS_Store" -pthrvz -c '
'-e "ssh -p {ssh_port}" '
Expand Down
Empty file added theme/static/css/.gitkeep
Empty file.
Loading

0 comments on commit a2625dc

Please sign in to comment.