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

Document markdown data structure #462

Open
micleners opened this issue Oct 24, 2019 · 3 comments
Open

Document markdown data structure #462

micleners opened this issue Oct 24, 2019 · 3 comments

Comments

@micleners
Copy link
Member

micleners commented Oct 24, 2019

Currently there are several directories of markdown files:

  • Meetings
  • Talks
  • Speakers
  • Sponsors
  • Hosts

My understanding is the meetings frontmatter provide relationships for the other 4 data types.

We want to have the relationships well defined and described for new comers to understand. So, the task at hand is to come up and document a clear data schema for the relationship between markdown files.

One tool that might be useful to document the data structures is: https://mermaidjs.github.io/#/

@travi
Copy link
Member

travi commented Oct 24, 2019

its worth being aware that the relationships between the markdown files are currently defined here:

site/gatsby-config.js

Lines 5 to 10 in c2b478f

mapping: {
'MarkdownRemark.frontmatter.talk': 'MarkdownRemark.frontmatter.title',
'MarkdownRemark.frontmatter.speaker': 'MarkdownRemark.frontmatter.name',
'MarkdownRemark.frontmatter.sponsor': 'MarkdownRemark.frontmatter.name',
'MarkdownRemark.frontmatter.host': 'MarkdownRemark.frontmatter.location'
},

@micleners micleners changed the title Document and Migrate markdown data structure Document markdown data structure Oct 25, 2019
@travi
Copy link
Member

travi commented Oct 25, 2019

ideally, i'd like to see this done in a way that an image can be generated and referenced from a README.md in the content directory.

mermaid is a great fit for this type of approach since the text file can be versioned and an npm package can be used as a cli to generate such an image. i'm not sure they support support an appropriate chart type for representing foreign-key relationships, though.

@travi
Copy link
Member

travi commented Oct 25, 2019

it looks like there is an open issue for adding a ER Diagram chart type, but i don't imagine that will get added soon. maybe the class diagram could work for now?

micleners added a commit to micleners/site that referenced this issue Nov 2, 2019
Add top level README link to content README. Add links in content README to each data structure
folder.

re dsmjs#462
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants