这是indexloc提供的服务,不要输入任何密码
Skip to content

Generate a quick index.html with sakura loaded #11

@zhouzi

Description

@zhouzi

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions