Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR Implements a generic framework for handling static and dynamic content cards, which should make it easier to maintain Spike-Front content in the future. Static content for an entire page of multiple sections can now be written and managed in a single (validation-compliant) Markdown file, with an overall page title and section titles as well as effective control of the sidebar labels. This model includes a custom hook (in the general programming sense, not the React sense) to modify or apply special handling to any of the sections defined in Markdown via a component-specific function. We can also add non-Markdown-based additional/dynamic content after the static content defined in the Markdown file (as in the Recordings page, which renders a list of study sets based on dynamic retrieved data).
Most of the parsing system is in
src/components/shared/MarkdownHandling.tsx
(though I could see a good argument for splitting it up more). I've written hopefully enough comments that we'll know how it works next time.Based on these changes, I probably ought to revisit the Algorithms and maybe Metrics sections, but it's not a high priority.
Current merge plan should be this PR into about-page branch, then that into the Algorithms branch, and then that into main.
This version is up on vercel: https://othismos-jsoules.vercel.app