Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(
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