Generate a quick index.html with sakura loaded #122

Open
opened 2025-10-14 16:17:26 -06:00 by navan · 0 comments
Owner

Originally created by @zhouzi on 5/4/2017

I like the idea of having a demo page/blog/landing page with little efforts. It would be even easier if we could just run sakura to create:

css/
  sakura.css
index.html

index.html would include a basic html structure with sakura.css loaded. It could do more than that though, for example:

  • sakura README.md - generate an index.html file with the html generated from the markdown file
  • sakura --theme light - generate html file with the light theme loaded

To accomplish that, the repository would just need to include a few js files. You can then declare executables in the package.json and publish them. Users could run npm install sakura --global and then sakura.

No need to lookup for the cdn url or download the css file. No need to create an index.html files with the basic structure.

Happy to submit a PR if that sounds good.

*Originally created by @zhouzi on 5/4/2017* I like the idea of having a demo page/blog/landing page with little efforts. It would be even easier if we could just run `sakura` to create: ``` css/ sakura.css index.html ``` index.html would include a basic html structure with sakura.css loaded. It could do more than that though, for example: * `sakura README.md` - generate an index.html file with the html generated from the markdown file * `sakura --theme light` - generate html file with the light theme loaded To accomplish that, the repository would just need to include a few js files. You can then declare executables in the package.json and publish them. Users could run `npm install sakura --global` and then `sakura`. No need to lookup for the cdn url or download the css file. No need to create an index.html files with the basic structure. Happy to submit a PR if that sounds good.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/sakura#122
No description provided.