-
Notifications
You must be signed in to change notification settings - Fork 9
/
pelicanconf.py
160 lines (137 loc) · 4.19 KB
/
pelicanconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
from pelican.readers import HTMLReader
from pelican.settings import DEFAULT_CONFIG
from utils.filters import sidebar
from markdown.extensions.tables import TableExtension
from markdown.extensions.md_in_html import MarkdownInHtmlExtension
from markdown.extensions.attr_list import AttrListExtension
from markdown.extensions.toc import TocExtension
from utils.ext_table_class import PMAttrListExtension
AUTHOR = "PyTexas Devs"
SITETITLE = "PyTexas 2023"
SITENAME = "PyTexas 2023"
SITESUBTITLE = "Home of Python in Texas"
SITEDESCRIPTION = "The PyTexas Foundation is a non-profit dedicated to educating engineers about Python in the state of Texas"
SITEURL = "http://localhost:8000"
SITESRC = "https://github.com/pytexas/conference.pytexas.org"
SITELOGO = SITEURL + "/static/favicon.png"
FAVICON = SITEURL + "/static/favicon.ico"
CONFERENCE_YEAR = 2023
CONFERENCE_DATES = "April 1 & 2, 2023"
PATH = "content/"
TIMEZONE = "America/Chicago"
DEFAULT_LANG = "en"
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# URL settings
# ARTICLE_URL = "{date:%Y}/{date:%m}/{date:%d}/{slug}/"
# ARTICLE_SAVE_AS = "{date:%Y}/{date:%m}/{date:%d}/{slug}/index.html"
PAGE_URL = "{slug}/"
PAGE_SAVE_AS = "{slug}/index.html"
HOME_BUTTON_TEXT = "PyTexas 2023 Recordings"
HOME_BUTTON_URL = "https://www.youtube.com/playlist?list=PL0MRiRrXAvRhiru4h8fVF987v5tdLlr1X"
# DRAFT_URL = '{slug}.html'
# DRAFT_SAVE_AS = 'drafts/{slug}.html'
# Theme
THEME = "theme/pytexas-conf"
MARKDOWN = {
"extensions": [
TableExtension(),
# AttrListExtension(),
MarkdownInHtmlExtension(),
TocExtension(),
PMAttrListExtension()
]
}
# Plugins
# PLUGIN_PATHS = ['pelican-plugins']
# PLUGINS = ['neighbors']
# static files
STATIC_PATHS = [
"static",
"favicon.ico"
]
JINJA_ENVIRONMENT = {
"extensions": [
"jinja2.ext.do"
]
}
COPYRIGHT_YEAR = 2022
COPYRIGHT_NAME = "PyTexas Foundation"
MAIN_MENU = True
DISPLAY_PAGES_ON_MENU = False
MENUITEMS = {
"About": {
"Index": "/about",
"Pages": {
"About PyTexas": "/about",
"Code of Conduct": "/about/code-of-conduct",
"Diversity Statement": "/about/diversity-statement",
"Privacy Statement": "/about/privacy-statement",
"Volunteering": "/about/volunteering",
"FAQ": "/about/faq",
},
"Dropdown": True,
},
"Attend": {
"Index": "/attend",
"Pages": {
"Registration Intake Form": "https://forms.gle/i2cvgQzkSm85kFH47",
"Buy Tickets": "https://ti.to/pytexas/2023",
"Health and Safety Guidelines": "/attend/health",
"Venue": "/attend/venue",
"Parking": "/attend/parking",
"Food": "/attend/food",
"Grants": "/attend/grants",
},
"Dropdown": True,
},
"Sponsors": {
"Index": "/sponsors",
"Pages": {
"Sponsors": "/sponsors/sponsors",
"Why Sponsor": "/sponsors/why-sponsor",
"Prospectus": "/sponsors/prospectus",
},
"Dropdown": True,
},
# "Speaking": {
# "Index": "/speaking",
# "Pages": {
# "Keynote Speakers": "/speaking/keynotes",
# "Give A Talk": "/speaking/talks",
# },
# "Dropdown": True,
# },
"Schedule": {
"Index": "/schedule",
"Pages": {
"Event Schedule": "/schedule",
"Talks": "/schedule/talks",
"Keynote Speakers": "/schedule/keynotes",
"Propose a Lightning Talk": "https://forms.gle/GWiEri4XZPguc1LX7",
},
"Dropdown": True,
},
}
JINJA_FILTERS = {
"sidebar": sidebar
}
# Blogroll
LINKS = {
"PyCon": "https://pycon.org/",
"Python.org": "https://www.python.org/"
}
# Social widget
SOCIAL = {
"Twitter": "https://twitter.com/pytexas",
"Discord": "https://discord.gg/jNPAbcNukj",
"YouTube": "https://www.youtube.com/channel/UCkn0L-L6auy9YAmlSy9Kv1Q/playlists",
}
DEFAULT_PAGINATION = False