Is it possible to create just some markdown pages for welcome and tutorials? #30
Replies: 6 comments 16 replies
-
Hi @aglasencnik, |
Beta Was this translation helpful? Give feedback.
-
@aglasencnik Please see the #33 |
Beta Was this translation helpful? Give feedback.
-
Yeah, it would be great to have such markdown pages instead of the default "Docs" page. Unfortunately, the "Blazing Story" doesn't have that ability now. I'd like to implement that ability someday. |
Beta Was this translation helpful? Give feedback.
-
@aglasencnik I logged a task to improve the README into the issues: #34 |
Beta Was this translation helpful? Give feedback.
-
@aglasencnik Please see #35 |
Beta Was this translation helpful? Give feedback.
-
I created myself a "workaround". I added a story for a Blazor component I named "Welcome.razor" with this content: <!-- This is necessary, so links won't open inside the iframe: -->
<base target="_top">
<div class="container">
<md-block>
# Introduction
Blue Blazor is an adaptation of [Blue React](https://bruegmann.github.io/blue-react) for Blazor.
## Stylesheet
You can use the stylesheet of Blue React by adding the following line to the head of your HTML:
```html
<link rel="stylesheet" href="https://unpkg.com/blue-react@latest/dist/style.min.css" />
```
## References
This site is made with [BlazingStory](https://github.com/jsakamoto/BlazingStory).
</md-block>
</div>
<script type="module">
import { MarkdownBlock, URLs } from "https://md-block.verou.me/md-block.js"
URLs.Prism = "https://unpkg.com/[email protected]/prism.js"
URLs.PrismCSS = "https://unpkg.com/[email protected]/themes/prism.min.css"
</script> This uses Lea Verou's Web Component md-block for Markdown support. Welcome.stories.razor looks like this: @attribute [Stories("Area/Welcome")]
<Stories TComponent="Welcome">
<Story Name="Introduction">
<Arguments>
</Arguments>
<Template>
<Welcome @attributes="context.Args" />
</Template>
</Story>
</Stories> I put it in the section "Area", so it will appear on top of "Components" in the navigation bar. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to create just some markdown pages for welcome and tutorials?
The reason is, so I could make a tutorial page on how to use my components library... and also so it wouldn't create a Docs page on it's own for that page...
Beta Was this translation helpful? Give feedback.
All reactions