Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit 1d51694

Browse files
committed
Create Newsletter template and connect to buttondown
Fixes #10
2 parents 8e88264 + 6780e88 commit 1d51694

File tree

15 files changed

+84
-31
lines changed

15 files changed

+84
-31
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
layout python python

.github/ISSUE_TEMPLATE/Add Conference.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Add Conference
22
description: Add Conference dates, location, CFP and other information that you would like shared on the show and in the newsletter
3-
title: "[CONFERENCE] <CONFERENCE NAME>"
3+
title: "[CONFERENCE] <CONFERENCE NAME> YYYY"
44
labels: ['conference']
55
assignees: ['kjaymiller', 'jonafato']
66
body:
@@ -24,7 +24,7 @@ body:
2424
attributes:
2525
label: Conference Dates
2626
description: The start and end date of the conference.
27-
placeholder: "YYYY-MM-DD - YYYY-MM-DD"
27+
placeholder: "DD (MMM) -DD MMM YYYY"
2828
validations:
2929
required: true
3030
- type: dropdown
@@ -55,15 +55,15 @@ body:
5555
id: conference_cfp_dates
5656
attributes:
5757
label: CFP Dates
58-
description: The start and end date of the Call for Papers.
59-
placeholder: "YYYY-MM-DD"
58+
description: The end date of the Call for Papers.
59+
placeholder: "DD MMM YYYY"
6060
validations:
61-
required: false
61+
required: false
6262
- type: textarea
6363
id: conference_description
6464
attributes:
6565
label: Conference Description
6666
description: Add any pertinent information about the conference e.g. focuses, topics, talk-length
6767
placeholder: "This is a general python conference with open spaces and sprints"
6868
validations:
69-
required: false
69+
required: false

.github/ISSUE_TEMPLATE/episode-post-prep.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ body:
5454
placeholder: "YYYY-MM-DDTHH:MMZ"
5555
validations:
5656
required: true
57-
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Add add issues to project
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add-to-project:
10+
name: Add admin issue to project
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
# You can target a repository in a different organization
16+
# to the issue
17+
project-url: https://github.com/users/kjaymiller/projects/4
18+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
19+
labeled: bug, admin, feature, discuss, conference, content
20+
label-operator: OR

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ dmypy.json
128128
.direnv
129129
node_modules
130130
.envrc
131-
output/
131+
output/

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: requirements-txt-fixer
11+
files: requirements.in
12+
13+
- repo: https://github.com/psf/black
14+
rev: 22.8.0
15+
hooks:
16+
- id: black
17+
name: Format Python
18+
language_version: python3.10
19+
20+
- repo: https://github.com/pycqa/isort
21+
rev: 5.10.1
22+
hooks:
23+
- id: isort
24+
name: Format Python imports
25+
args:
26+
- --profile=black
27+
28+
- repo: https://github.com/jazzband/pip-tools
29+
rev: 6.8.0
30+
hooks:
31+
- id: pip-compile
32+
name: Compile Python requirements
33+
34+
35+
- id: pip-compile
36+
name: Upgrade Python dependencies
37+
stages: [manual]
38+
args:
39+
- --upgrade

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"python.analysis.extraPaths": [
33
"./site/src"
44
]
5-
}
5+
}

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,4 @@ For answers to common questions about this code of conduct, see the FAQ at
128128
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
129129
[Mozilla CoC]: https://github.com/mozilla/diversity
130130
[FAQ]: https://www.contributor-covenant.org/faq
131-
[translations]: https://www.contributor-covenant.org/translations
131+
[translations]: https://www.contributor-covenant.org/translations

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pytzdata==2020.1
4646
# via pendulum
4747
pyyaml==6.0
4848
# via python-frontmatter
49-
render-engine==2022.7.2
49+
render-engine==2022.8.1
5050
# via -r requirements.in
5151
rfc3986[idna2008]==1.5.0
5252
# via httpx

site/__init__.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,26 @@
11
from render_engine.site import Site
2-
from render_engine.blog import Blog, BlogPost
2+
from render_engine.blog import Blog
33
from render_engine.page import Page
4-
import jinja2
4+
55

66
class Site(Site):
7-
output_path = 'output'
7+
output_path = "output"
88
site_vars: dict = {
99
"SITE_TITLE": "Python Community News",
10-
"SITE_URL": "https://pythoncommunitynews.com"
10+
"SITE_URL": "https://pythoncommunitynews.com",
1111
}
12-
engine = jinja2.Environment(loader=jinja2.FileSystemLoader("./site/templates"))
13-
12+
1413
if __name__ == '__main__':
15-
site = Site(static="site/static")
14+
site = Site(static="static")
1615

1716
@site.render_page
1817
class index(Page):
1918
template = 'index.html'
2019

21-
2220
@site.render_collection
2321
class archive(Blog):
2422
has_archive = True
2523
output_path = './'
26-
content_path = './site/content'
27-
template:str = 'new_post.html'
28-
archive_template: str = 'archive.html'
29-
30-
def __init__(self, *args, **kwargs):
31-
super().__init__(*args, **kwargs)
24+
content_path = './app/content'
25+
template = 'new_post.html'
26+
archive_template: str = 'archive.html'

0 commit comments

Comments
 (0)