mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
1.3 KiB
1.3 KiB
Features
- Rename "options.docsDir" to "options.inputDir"
- recursive rendering of lit / html / and markdown
- convert
<meta name="menu:link.text" content="Docs" />toexport const menuLinkText = 'Docs'; - "import" markdown with frontmatter
- export const mdCleanup = false; => to not clean up auto generated md files for this page
- add helper for layouts
- Add "menuExclude" => to actually exclude the menu item
Bugs
- write to
_site-devinstead of_sitewhile usingrocket start - nested
recursive.data.jsdo not overwrite the parent data - rocketGeneratedMdInJs => converted-md-source
- rocketGeneratedFromMd => converted-md
- support in markdown
- ssr render can just be a string concat
Error Handling
- make error nice for "needs function export default () => html
instead of just export default html" - make error nice for parent page not found in index => auto generate page? 🤔
Examples
-
docs site, blog (simple), blog (complex), minimal
-
add stackblitz/codesandbox examples
-
Example: export variable and use it in rendering
-
Example: fetch data from an api and display it
-
Example: usage of image
later
- support
@changein markdown - support "hey ${foo.map(f =>
${f} + 1)}"
consider
- Replace magic "resolve:pkg/foo.css" with a directive
${resolve()}?