Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mtp: Add Armenia WTD group info #2147

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
7 changes: 7 additions & 0 deletions docs/_data/meetups/armenia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
region: Asia
country: Armenia
meetup_alt: https://t.me/technicalwritersEVN
organizers:
- name: Ani Asatryan
link: https://www.linkedin.com/in/ani-asatryan-85565b196/
- name: Note, the Armenia Write the Docs group uses Telegram for their events and community.
3 changes: 2 additions & 1 deletion docs/_ext/meetups.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def load_meetups_by_region():
'organizers',
'website',
'twitter',
'meetup_alt',
]])
if 'meetup' not in meetup:
if 'meetup' not in meetup and 'meetup_alt' not in meetup:
raise ExtensionError('Meetup missing `meetup` key: file={0}'.format(
plaindocs marked this conversation as resolved.
Show resolved Hide resolved
yaml_file
))
Expand Down
5 changes: 3 additions & 2 deletions docs/_templates/include/meetups/listing.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<dl class="meetup-listing">
{% for meetup in meetups %}
<dt class="meetup-listing-detail">

<a href="{% if meetup['page'] %}{{ meetup['page'] }}{% else %}http://www.meetup.com/{{ meetup['meetup'] }}/{% endif %}">
<a href="{% if meetup['page'] %}{{ meetup['page'] }}
{% elif meetup['meetup_alt'] %}{{ meetup['meetup_alt'] }}
{% else %}http://www.meetup.com/{{ meetup['meetup'] }}/{% endif %}">
{% if meetup['city'] %}{{ meetup['city'] }}, {% endif -%}
{% if meetup['state'] %}{{ meetup|state_abbr }}, {% endif -%}
{{ meetup['country'] -}}
Expand Down