Skip to content

Commit

Permalink
Merge pull request #114 from pythonpune/pythonpune-in
Browse files Browse the repository at this point in the history
meetup-talks is a Hugo site now! 🎉
  • Loading branch information
bhavin192 authored Jul 25, 2020
2 parents 6509c34 + ed0e1de commit 6ccf724
Show file tree
Hide file tree
Showing 69 changed files with 1,059 additions and 310 deletions.
14 changes: 13 additions & 1 deletion .github/ISSUE_TEMPLATE/propose-a-talk.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Propose a talk/workshop
name: Propose a talk / workshop
about: Propose a talk or workshop for upcoming meetup/event
title: ''
labels: 'talk-proposal'
Expand All @@ -18,6 +18,11 @@ assignees: ''
#### Description
<!-- Please include brief abstract about your talk. -->

#### Table of contents
<!-- Please add an outline of your talk. A few bullet points which you
will be covering during the talk can be added here. You can update
this later as well. -->

#### Duration (including Q&A)
<!-- Please add estimated duration of the talk including Q&A -->

Expand All @@ -26,6 +31,13 @@ assignees: ''
<!-- for the talk i.e. software, tools set up on machine etc, please -->
<!-- include it here -->

#### Speaker bio
<!-- Please add your introduction. Also add link to your Twitter (make
sure you follow PythonPune so that we can DM you there) or LinkedIn so
that we can coordinate with you before the event. If you don't want to
share any of the above, please send an email to punepython at
gmail.com with subject: "Contact details for the talk". -->

#### Checklist
<!-- Place an '[x]' (no spaces) in all the fields you agree to. You can keep the fields blank on which you don't agree. -->

Expand Down
1 change: 0 additions & 1 deletion 2018/April/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/August/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/December/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/February/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/January/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/July/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/June/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/March/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/May/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/November/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/October/talk_name.md

This file was deleted.

1 change: 0 additions & 1 deletion 2018/September/talk_name.md

This file was deleted.

9 changes: 0 additions & 9 deletions 2019/April/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions 2019/August/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions 2019/December/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions 2019/February/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions 2019/January/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions 2019/March/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions 2019/May/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions 2020/April/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions 2020/February/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions 2020/June/README.md

This file was deleted.

4 changes: 3 additions & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# PythonPune Code of Conduct
---
title: PythonPune Code of Conduct
---

*Anti-Harassment and Anti-Bullying Code of Conduct*

Expand Down
22 changes: 17 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
DIR ?= $(shell date "+%Y/%B")
HUGO ?= hugo
DATE_DIR ?= $(shell date "+%Y/%B")
DIR = content/$(DATE_DIR)

event_entry:
@echo "Creating summary and newsletter files for '$(DIR)'."
build:
$(HUGO) --gc --minify

newsletter:
@echo "Creating newsletter files in '$(DIR)'."
mkdir --parents $(DIR)
$(HUGO) new $(DIR)/community_news.md --kind "newsletter"

event:
@echo "Creating summary files in '$(DIR)'."
mkdir --parents $(DIR)
cp --no-clobber templates/README.md $(DIR)
cp --no-clobber templates/community_news.md $(DIR)
$(HUGO) new $(DIR)/README.md --kind "event"

server:
$(HUGO) server --buildDrafts --buildFuture
82 changes: 52 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,46 +40,68 @@ during the meetup as well.
## Summary of past events
This is the index of summaries of past events.

* 2020
* [January](./2020/January/README.md)
* [February](./2020/February/README.md)
* 2019
* [January](./2019/January/README.md)
* [February](./2019/February/README.md)
* [March](./2019/March/README.md)
* [April](./2019/April/README.md)
* [May](./2019/May/README.md)
* [June](./2019/June/README.md)
* [July](./2019/July/README.md)
* [August](./2019/August/README.md)
* [September](./2019/September/README.md)
* [October](./2019/October/README.md)
* [November](./2019/November/README.md)
* [December](./2019/December/README.md)

<details>
<summary>2020</summary>

* [January](./content/2020/January/README.md)
* [February](./content/2020/February/README.md)
* [March](./content/2020/March/README.md)
* [April](./content/2020/April/README.md)
* [May](./content/2020/May/README.md)
* [June](./content/2020/June/README.md)
</details>

<details>
<summary>2019</summary>

* [January](./content/2019/January/README.md)
* [February](./content/2019/February/README.md)
* [March](./content/2019/March/README.md)
* [April](./content/2019/April/README.md)
* [May](./content/2019/May/README.md)
* [June](./content/2019/June/README.md)
* [July](./content/2019/July/README.md)
* [August](./content/2019/August/README.md)
* [September](./content/2019/September/README.md)
* [October](./content/2019/October/README.md)
* [November](./content/2019/November/README.md)
* [December](./content/2019/December/README.md)
</details>

## How to add newsletter and event summary
To add newsletter file (`community_news.md`) and event summary
(`README.md`) for the current month run following command.
To add newsletter file (`community_news.md`) or event summary
(`README.md`) for the current month run following commands. Make sure
you have [installed
Hugo](https://gohugo.io/getting-started/installing/ "Hugo docs page:
Install Hugo") and [Go](https://golang.org/doc/install "Go docs page:
Install Go") on your machine.

> **Note**: It will not overwrite the existing files from the directory.
```console
$ make event_entry
Creating summary and newsletter files for '2020/March'.
mkdir --parents 2020/March
cp --no-clobber templates/README.md 2020/March
cp --no-clobber templates/community_news.md 2020/March
$ make event
Creating summary files in 'content/2020/March'.
mkdir --parents content/2020/March
hugo new content/2020/March/README.md --kind "event"
content/2020/March/README.md created
```

```console
$ make newsletter
Creating newsletter files in 'content/2020/March'.
mkdir --parents content/2020/March
hugo new content/2020/March/community_news.md --kind "newsletter"
content/2020/March/community_news.md created
```

It's possible to generate the files for a specific year and month
combination by setting the value of `DIR` variable.
combination by setting the value of `DATE_DIR` variable.
```console
$ DIR="2020/January" make event_entry
Creating summary and newsletter files for '2020/January'.
mkdir --parents 2020/January
cp --no-clobber templates/README.md 2020/January
cp --no-clobber templates/community_news.md 2020/January
$ DATE_DIR="2020/April" make event
Creating summary files in 'content/2020/April'.
mkdir --parents content/2020/April
hugo new content/2020/April/README.md --kind "event"
content/2020/April/README.md created
```

## Code of Conduct
Expand Down
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

26 changes: 26 additions & 0 deletions archetypes/event.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "{{ now.Format "January PythonPune meetup 2006" }}"
date: {{ .Date }}
event_date: {{ .Date }}
url: event/{{ now.Format "January-PythonPune-meetup-2006" | lower }}
author:
featured_image:
categories:
- Event
tags:
draft: true
---

* [Event page on meetup.com]()
* [Community Newsletter](./community_news.md)
* [Recording]() <!-- link to video recording of live stream/whole event if available -->

## Talk title
* **Speaker**: <!-- name of the speaker -->
* **Description**: <!-- Short description about the
talk/workshop. What was covered? -->
* **References**:
* [Slides]() <!-- link to slides -->
* [Source]() <!-- link to any code/snippets from talk -->
* [Video recording]() <!-- link to any video recording if available -->
* [Proposal](https://github.com/pythonpune/meetup-talks/issues/<issue number>)
12 changes: 11 additions & 1 deletion templates/community_news.md → archetypes/newsletter.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# PythonPune Community Newsletter [<month> <year> Edition]
---
title: "PythonPune Community Newsletter [{{ now.Format "January 2006" }} Edition]"
date: {{ .Date }}
url: newsletter/{{ now.Format "January-2006" | lower }}
author:
featured_image:
categories:
- Newsletter
tags:
draft: true
---

## News from Python Community
<!-- Add selected news links from the latest issue:
Expand Down
Loading

0 comments on commit 6ccf724

Please sign in to comment.