Skip to content

Commit

Permalink
Try to add mermaid schema for data
Browse files Browse the repository at this point in the history
  • Loading branch information
bebatut committed Dec 19, 2023
1 parent 321acb1 commit 81fa4e5
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 3 deletions.
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ html:
sphinx:
config:
html_js_files:
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
extra_extensions:
- sphinxcontrib.mermaid
2 changes: 1 addition & 1 deletion _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ parts:
- file: openseeds/explore_roles
- file: openseeds/explore_location
- file: openseeds/explore_projects
- file: openseeds/process_feedback
- file: openseeds/explore_video_stats
- file: openseeds/visualize-microgrants-honoraria
- file: openseeds/process_feedback

1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ dependencies:
- jupyter-book
- wordcloud
- seaborn
- sphinxcontrib-mermaid
2 changes: 1 addition & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Welcome to OLS stats

On this website, we explore data related to [OLS](https://openlifesci.org/), its [community](https://openlifesci.org/people.html), and its programs ([Open Seeds](https://openlifesci.org/openseeds/)).
On this website, data related to [OLS](https://openlifesci.org/), its [community](https://openlifesci.org/people.html), and its programs ([Open Seeds](https://openlifesci.org/openseeds/)) are explored.


```{tableofcontents}
Expand Down
96 changes: 96 additions & 0 deletions mermaid
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
```{mermaid}

flowchart LR
classDef cohort fill:#fff,stroke:#333
classDef nonCohort fill:#d3d3d3,stroke:#333

youtube["OLS YouTube channel"]:::nonCohort

subgraph drive["Google Drive"]
micrograntSheet["`Microgrants
*(before OLS-6)*`"]:::cohort
honorariaSheet["`Honoraria
*(before OLS-6)*`"]:::cohort
feedbackCSV["Anonymized Participants & Mentor feedback"]:::cohort
end
style drive fill:#6dd076,stroke:#6dd076

subgraph civi["CiviCRM"]
micrograntCSV["`Microgrants
*(after OLS-6)*`"]:::cohort
honorariaCSV["`Honoraria
*(after OLS-6)*`"]:::cohort
end
style civi fill:#59b5e2,stroke:#59b5e2

subgraph github["Website GitHub repository"]
subgraph artifact["Artifacts"]
peopleCSV["people"]:::cohort
subgraph githubProgram["Program"]
libraryCSV["library"]:::cohort
projectCSV["projects"]:::cohort
rolesCSV["roles"]:::cohort
peopleRolesCSV["people + roles"]:::cohort
end
style githubProgram fill:#ed7a84,stroke:#fff
end
style artifact fill:#ed7a84,stroke:#fff
end
style github fill:#ed7a84,stroke:#ed7a84

subgraph statsGitHub["`Stat GitHub repository
(Notebooks)`"]
locationNotebook["`Community Location`"]:::cohort
subgraph statsGitHubProgram["Program"]
programLocationNotebook["`People location`"]:::cohort
projectNotebook["`Projects`"]:::cohort
rolesNotebook["`Roles`"]:::cohort
feedbackNotebook["`Feedback`"]:::cohort
libraryNotebook["`Video Library & YouTube`"]:::cohort
micrograntHonorariaNotebook["`Microgrants & Honoraria`"]:::cohort
end
style statsGitHubProgram fill:#e2944e,stroke:#fff
end
style statsGitHub fill:#e2944e,stroke:#e2944e

subgraph website["Stat Website"]
locationHTML["`Community location`"]:::cohort
subgraph websiteProgram["Program"]
programLocationHTML["`People location`"]:::cohort
projectHTML["`Projects`"]:::cohort
rolesHTML["`Roles`"]:::cohort
feedbackHTML["`Feedback`"]:::cohort
libraryHTML["`Video Library & YouTube`"]:::cohort
micrograntHonorariaHTML["`Microgrants & Honoraria`"]:::cohort
end
style websiteProgram fill:#6690ce,stroke:#fff
end
style website fill:#6690ce,stroke:#6690ce

peopleYAML --> peopleCSV
peopleYAML --> peopleRolesCSV
projectYAML --> projectCSV
libraryYAML --> libraryCSV
scheduleYAML --> rolesCSV
metadataYAML --> rolesCSV
scheduleYAML --> peopleRolesCSV
metadataYAML --> peopleRolesCSV
peopleCSV --> locationNotebook
rolesCSV --> rolesNotebook
projectCSV --> projectNotebook
youtube --> libraryNotebook
libraryCSV --> libraryNotebook
feedbackCSV --> feedbackNotebook
micrograntSheet --> micrograntHonorariaNotebook
honorariaSheet --> micrograntHonorariaNotebook
micrograntCSV --> micrograntHonorariaNotebook
honorariaCSV --> micrograntHonorariaNotebook
peopleRolesCSV --> programLocationNotebook
projectNotebook --> projectHTML
locationNotebook --> locationHTML
rolesNotebook --> rolesHTML
feedbackNotebook --> feedbackHTML
libraryNotebook --> libraryHTML
micrograntHonorariaNotebook --> micrograntHonorariaHTML
programLocationNotebook --> programLocationHTML
```

0 comments on commit 81fa4e5

Please sign in to comment.