-
Notifications
You must be signed in to change notification settings - Fork 0
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
Story format #2
Comments
Although i am very much in favour of using "vanilla" markdown and only supporting our special components, i still think it might be interesting to keep an eye out for other markdown formats that integrate javascript: I think these options are too open for allowing users to interact with and the "backwards" compatibility to vanilla markdown i think is lost, but they might have value to be explored. |
I am be in favor of not integrating of javascript directly via MDX, but we should support basic HTML elements - and Silvester's code snippet shows (coming back to our discussions for STAC Info Element) and like GitHub does and our custom formatting enabling functionality on top. |
To enhance user convenience, we should offer two way editing methods: Markdown:Following @silvester-pari's suggestion, we'll use a basic GitHub-like markdown renderer integrated with our frontmatter meta structure. This approach will configure each section/block/page effectively. Additionally, I am also against incorporating JavaScript with Markdown to keep things straightforward. Drag & Drop Component:In tandem with Markdown, users should have access to predefined block sections/components. These can be easily manipulated via drag-and-drop, and customized using a dynamically generated form, as shown in the third image. For our MVP, I recommend using our predefined components to ensure consistent styling and easier maintenance. |
I like the drag-an-drop approach, it would mean less experienced users can more easily use the tool. I am not sure though if it should be part of the MVP, i would focus on the markdown possibilities and checking that integration of components works as expected. I consider the blocks a "nice to have" that should only be started when other aspects are already working. Looking at the concepts drafts, we should also consider how we can bring a state of the dashboard (for example, selected indicator, current extent and selected time) to the editor.
|
We had some initial discussions that markdown would be a good format for stories, as it comes with the benefit that it is easy to learn and widely adopted. It is also rendered natively by GitHub. Each markdown file would be corresponding to one story.
We could think of using some frontmatter to define meta about a story, e.g.
Then, inside the story, we could define blocks/sections/pages with things like horizontal lines:
Additionally, some settings could be done using hidden properties in markdown, which don't render in the GitHub preview, but do render in our own renderer, like e.g.:
Ideally, the interactive elements would always allow fallbacks, e.g. if a story is rendered without JS, it would still show a still image of a map, and when the story is rendered with our renderer, it would replace the image with an actual map etc.
The text was updated successfully, but these errors were encountered: