Skip to content

Commit

Permalink
add readme for editing
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Nov 4, 2023
1 parent 7947c78 commit d99f059
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 13 deletions.
43 changes: 43 additions & 0 deletions _data/team/roles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Roles

This directory contains YAML files, one per role.

## Editing

Each YAML file should contain the details of one role only.
Each role is automatically picked up by the template. To add or remove a role, simply add or remove a file. Do not add non-role documents to this directory that can be parsed by Jekyll.

Each file *must* contain the following tags at top level:

* `role`: The name of the role (e.g. Core library maintenance)

Each role can optionally have the following tags:
* `description`: text describing the role. This can be written in Markdown.
* `tasks`: a list of strings describing tasks. This is rendered as a list.

Each role can also optionally have lead/member tags, if there are no subroles. If there are subroles, the below are ignored:
* `current_leads`: a list of names who are current leads
* `current_members`: a list of names who are current members in the subgroup
* `historical_leads`: a list of names who were previously leads
* `historical_members`: a list of names who were previously members in the subgroup

Onto subroles: each role can optionally define `subroles`. The `subroles` tag should be a **list** where each item *must have*:

* `subrole`: The name of the subrole (e.g. Issue management)

Each subrole can *optionally have*:
* `current_leads`: a list of names who are current leads
* `current_members`: a list of names who are current members in the subgroup
* `historical_leads`: a list of names who were previously leads
* `historical_members`: a list of names who were previously members in the subgroup
* `description`: text describing the role. This can be written in Markdown.
* `tasks`: a list of strings describing tasks. This is rendered as a list.


## Parsing

The files here are read first by ``_includes/team_table.html`` and ``_includes/roles_description.html``.
Jekyll automatically reads YAML, JSON, and other formatted files in the ``_data`` directory
as objects that can be interacted with using the Liquid templating language.
For example, the ``name`` variable of the ``code_of_conduct.yml`` file is accessible as ``site.data.team.roles.code_of_conduct.name`` in HTML.

2 changes: 1 addition & 1 deletion _data/team/roles/code_of_conduct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ historical_leads:
- Jenna Swarthout Goddard
- Richard Gowers
- Micaela Matta
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/community_engagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ current_members:
historical_leads:
- Oliver Beckstein
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ current_members:
- Fiona Naughton
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/core_library_maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ subroles:
historical_leads:
- Irfan Alibay
- Jonathan Barnoud
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ current_members:
historical_leads:
- Irfan Alibay
- Lily Wang
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/external_liaison.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ current_members:
- Jenna Swarthout Goddard
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ historical_leads:
- Oliver Beckstein
- Irfan Alibay
- Jenna Swarthout Goddard
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/mdakit_registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ current_members:
- Oliver Beckstein
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/non_core_library_maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ subroles:
current_members: []
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/outreach.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ subroles:
historical_leads:
- Jenna Swarthout Goddard
- Oliver Beckstein
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/releases_and_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ current_members:
- Fiona Naughton
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/relicensing_coordinator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ current_leads:
current_members: []
historical_leads:
- Irfan Alibay
historical_members: []
historical_members: []
2 changes: 1 addition & 1 deletion _data/team/roles/social_media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ current_members: []
historical_leads:
- Oliver Beckstein
- Jenna Swarthout Goddard
historical_members: []
historical_members: []

0 comments on commit d99f059

Please sign in to comment.