diff --git a/.github/ISSUE_TEMPLATE/add_conference.yml b/.github/ISSUE_TEMPLATE/add_conference.yml deleted file mode 100644 index f37b9ae..0000000 --- a/.github/ISSUE_TEMPLATE/add_conference.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Add Conference -description: Add Conference dates, location, speaking and other information that you would like shared -title: "[CONFERENCE] YYYY" -labels: ["conference", "CFP"] -body: - - type: input - id: conference_name - attributes: - label: Conference Name - description: The name of the conference. - placeholder: - validations: - required: true - - type: input - attributes: - label: URL - description: The full URL of the conference (make sure to include `https://`). - placeholder: https://example.com - validations: - required: true - - type: input - id: conference_start_date - attributes: - label: Conference Start Date - description: The start date of the conference. Use `YEAR-MONTH-DAY` - placeholder: "2024-12-31" - - type: input - id: conference_end_date - attributes: - label: Conference End Date - description: The end date of the conference. The website will no longer show the conference after this date. Use `YEAR-MONTH-DAY` format. - placeholder: "2024-12-31" - - type: dropdown - id: conference_type - attributes: - label: Conference Type - description: Is the conference in-person online or both? - options: ["both", "in-person", "online"] - validations: - required: true - - type: input - id: conference_location - attributes: - label: Conference Location - description: The location of the conference. Leave blank if online only - placeholder: "CITY, , COUNTRY" - validations: - required: false - - type: input - id: cfp_link - attributes: - label: CFP Link - description: Provide the URL for the Call for Proposals (CFP) (make sure to include `https://`). - placeholder: "https://example.com/cfp" - validations: - required: false - - type: input - id: cfp_deadline - attributes: - label: CFP Deadline - description: Enter the deadline for submitting CFPs (YYYY-MM-DD). - placeholder: "YYYY-MM-DD" - validations: - required: false - - type: textarea - id: conference_description - attributes: - label: Summary - description: Summary of the news you're sharing about this conference. - placeholder: | - DjangoCon US has been announced alongside it's [website](url). - The conference is 16-20 October, is a five-day international - conference for the community by the community about the Django - web framework, held each year in North America. - validations: - required: false - - type: textarea - id: conference_speaking - attributes: - label: Speaking - description: Person - Talk or Role - placeholder: | - * Dawn Wages - Supercharge your Python and Django Development Environment with VS Code and Dev Containers - * Kojo Idrissa - Orientation/Welcome & Lightning Talks Host - * Jay Miller - Panel Discussion: Who put me in charge? Moving beyond day-to-day coding in Django - validations: - required: false - - type: checkboxes - id: terms - attributes: - label: Code of Conduct - description: By submitting this form, you agree to follow our [Code of Conduct](https://github.com/BlackPythonDevs/.github/blob/main/CODE_OF_CONDUCT.md) - options: - - label: I agree to follow this project's Code of Conduct - required: true diff --git a/.github/workflows/conference.yml b/.github/workflows/conference.yml deleted file mode 100644 index e5b9bb9..0000000 --- a/.github/workflows/conference.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Conference Workflow - -on: - schedule: - - cron: "0 0 * * 0" # This will run the workflow every Sunday at midnight - push: - branches: - - "**/issue**" - issues: - types: [opened, closed, edited, deleted] - workflow_dispatch: - -permissions: - contents: write - pull-requests: write - -jobs: - conference-job: - runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference_accepted') }} - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - token: ${{ env.GITHUB_TOKEN }} - - - name: Setup Python environment - uses: actions/setup-python@v4 - with: - python-version: "3.11" - - - name: Install dependencies - run: pip install -r requirements-dev.txt - - - name: Run script - env: - GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }} - run: | - python _conferences - pre-commit run --all-files --show-diff-on-failure - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - token: ${{ env.GITHUB_TOKEN }} - commit-message: Update conferences - committer: GitHub Action - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - branch: update-conferences - delete-branch: true - title: "[CONFERENCE] Update Conferences" - labels: | - automated pr - conference diff --git a/.github/workflows/conference_auto_respond.yml b/.github/workflows/conference_auto_respond.yml deleted file mode 100644 index c735c8d..0000000 --- a/.github/workflows/conference_auto_respond.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Conference AutoResponder - -on: - issues: - types: [opened] - -permissions: - issues: write - -jobs: - add_comment: - runs-on: ubuntu-latest - - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - steps: - - name: Add initial comment to the issue - uses: actions/github-script@v6 - if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference') }} - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const issueNumber = context.issue.number; - const comment = "Thank you for submitting this issue. A member of the triage team will review the information and followup on this request. There is no code action to be taken."; - github.rest.issues.createComment({ - ...context.repo, - issue_number: issueNumber, - body: comment - }); - - - name: Add approved comment - uses: actions/github-script@v6 - if: ${{ github.event.action == 'opened' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference_accepted') }} - with: - script: | - const issueNumber = context.issue.number; - const comment = "Your conference submission has been accepted. You will shortly see your conference on the website." - - github.rest.issues.createComment({ - ...context.repo, - issue_number: issueNumber, - body: comment - }); diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6065c71..f5a9baa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -166,3 +166,42 @@ The diagram below explains how information is generated for the about page, show ![Git push terminal](/assets/images/git_push_terminal.png) - Once you’ve committed and pushed all of your changes to GitHub, go to the page for your fork on GitHub, select your development branch, and click the pull request button. Please ensure that you compare your feature branch to the desired branch of the repo you are supposed to make a PR to. If you need to make any adjustments to your pull request, just push the updates to GitHub. Your pull request will automatically track the changes in your development branch and update it. 🥳 + +## Creating an event + +Events are currently created manually by adding entries to `_data/events.json`. To create a conference, use the following JSON structure: + +``` +{ + "name": "Conference name", + "url": "https://blackpythondevs.com/", + "start_date": "2025-02-10", + "end_date": "2025-09-20", + "location": "Thailand", + "description": "Lorem ipsum dolor sit amet consectetur adipiscing elit ...", + "speaker": "Tim Osahenru" +} +``` + +### Regular meetups + +We have two recurring meetups: **Coffee and Code** and our **Monthly Meetup**. These events remain consistent in format, with only the **date, time, and speaker** subject to change. Updates can be made within the `meetups` list: + +``` + { + "name": "Coffee and Code", + "date": "2023-09-20", + "location": "Online (Discord)", + "description": "A casual meetup for developers to code together.", + "speaker": "Jay Miller", + "topic": "Web Development" + }, + { + "name": "Monthly meetup", + "date": "2023-09-20", + "location": "Remote", + "description": "Share ideas, and network over coffee.", + "speaker": "Jay Miller", + "topic": "Open Source" + } +``` diff --git a/_data/conferences.json b/_data/conferences.json deleted file mode 100644 index b47d577..0000000 --- a/_data/conferences.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "conference_name": "DELSU Tech Invasion 2.0", - "url": "https://dti.hamplustech.com/", - "conference_start_date": "2024-12-04", - "conference_end_date": "2024-12-05", - "conference_type": "in-person", - "conference_location": "Abraka, Delta State, Nigeria", - "summary": "This is the second edition of DELSU Tech Invasion (DTI) with the theme: Learn . Innovate . Earn. The subject or focus area is Python for Academics: Spreadsheet and Data Manipulation, Data Analytics and Visualization.", - "speaking": "- Developing lite web apps using Flask and Python - [Michael Oghenerukevwe Edward](http://linkedin.com/in/airdward/)\n- Transitioning in Tech Ecosystem as a Female - [Precious Ogbuka](https://www.linkedin.com/in/precious-ogbuka)\n- Rapid Development of Desktop Apps using Tkinter and Python - [Azubuike Uche Nathan](https://x.com/NathanAzub10827)\n- Why Learn, Innovate and Earn - [Naomi Apomejevwe Egbe](https://x.com/IamNaomiEgbe)\n- Gender diversity and inclusion in the tech ecosystem - [Elozino Onorie](https://x.com/_hush_7)\n- others can be found in the links below:\n - https://dti.hamplustech.com/pages/speaker/\n - https://dti.hamplustech.com/pages/schedule/" - } -] diff --git a/_data/events.json b/_data/events.json new file mode 100644 index 0000000..6643419 --- /dev/null +++ b/_data/events.json @@ -0,0 +1,5 @@ +{ + "meetups": [], + "conferences": [], + "partners": [] +} diff --git a/_includes/conferences.html b/_includes/conferences.html index 54818ff..8318206 100644 --- a/_includes/conferences.html +++ b/_includes/conferences.html @@ -1,25 +1,20 @@ -{% if site.data.conferences.size > 0 %} +{% if site.data.events.conferences.size > 0 %}
- {% for conference in site.data.conferences %} + {% for conference in site.data.events.conferences %}

- {{ conference.conference_name }} + {{ conference.name }}

+
{{ conference.speaker }}

- {{ conference.conference_start_date }} - {{ conference.conference_end_date }} + {{ conference.start_date }} - {{ conference.end_date }} {% if conference.conference_location != "_No response_" %}
- {{ conference.conference_location }} + {{ conference.location }}

{% endif %} -

Type: {{ conference.conference_type }}

- {% if conference.summary != "_No response_" %} - {{ conference.summary | markdownify }} - {% endif %} - {% if conference.speaking %} -

Speaking:

- {{ conference.speaking | markdownify }} - {% endif %} +

{{ conference.description }}

+
{% endfor %}
@@ -28,4 +23,3 @@

Speaking:

{% endif %}
-

Have a Conference to Add - Submit an Issue

diff --git a/_includes/meetups.html b/_includes/meetups.html new file mode 100644 index 0000000..c014ca5 --- /dev/null +++ b/_includes/meetups.html @@ -0,0 +1,23 @@ +{% if site.data.events.meetups.size > 0 %} +
+ {% for meetup in site.data.events.meetups %} +
+

+ {{ meetup.name }} +

+
Speaking: {{ meetup.speaker }}
+

+ {{ meetup.date }}
+ {{ meetup.location }} +

+

{{ meetup.description }}

+ +

{{ conference.topic }}

+
+ {% endfor %} +
+{% else %} +No Meetups +{% endif %} + +
diff --git a/events.md b/events.md index 06bfc28..f64ed16 100644 --- a/events.md +++ b/events.md @@ -4,36 +4,17 @@ lang: en title: Events --- -# Black Python Devs Events - -## Coffee and Code - -Join us every Friday for a cup of coffee and a chance to code with fellow Python enthusiasts. Our community is open to all levels of experience, from beginners to experts. - -We’ll be discussing the latest trends in Python development, sharing tips and tricks, and working on projects together. Whether you’re looking to learn something new or just want to hang out with like-minded people, this is the perfect opportunity to do so. We look forward to seeing you there! - # Upcoming Conferences Black Python Devs aims to partner with Python conferences around the world to increase the visibility and opportunities for Black leadership in the Python community. We understand that when you put qualified individuals on stage and at conferences it increases their value and opportunities for employment. - +## Regular Meetups -Here are some highlighted upcoming conferences where you can find Black Python Developers involved on stage or behind the scenes +Join us every Friday for a cup of coffee and a chance to code with fellow Python enthusiasts. Our community is open to all levels of experience, from beginners to experts. -{% include conferences.html %} +We’ll be discussing the latest trends in Python development, sharing tips and tricks, and working on projects together. Whether you’re looking to learn something new or just want to hang out with like-minded people, this is the perfect opportunity to do so. We look forward to seeing you there! +{% include meetups.html %}