atlantabitdevs / atlbit.dev

Atlanta BitDevs website
https://atlbit.dev/
4 stars 6 forks source link

Simplify markdown files #3

Closed sbddesign closed 1 year ago

sbddesign commented 1 year ago

Many of the scraped markdown files contain extraneous content, such as the header and footer. All we need is the main content.

Simplify all the markdown files in the /markdowns dir. This could be done manually, or with a script. This PR is an example of the expected outcome demonstrated on a single file: https://github.com/atlantabitdevs/atlbit.dev/pull/2

gratten commented 1 year ago
  1. Strip all content before first "# ..." (ie # Bitcoin Socratic Seminar #5)
  2. Strip all content after "# Post Navigation"
  3. Add the header and populate it with date, title, type
    • for date, I can pull this out of main content where is says published. reformat it to YYYY-MM-DD
    • for title, I can use whatever is after first # in main content
    • for type, if Socratic Seminar call it an event, anything else call it a post

also, for file name. should I just use the reformatted date as the file name? not sure where we landed on what Nitesh's script will use.

sbddesign commented 1 year ago

@gratten

File name should be something like YYYY-MM-DD_title_of_event.md

sbddesign commented 1 year ago

Closed in #2 by @gratten