This small tool is designed for Bear lovers.
Focus on the right thing - writing the content.
To use this tool, you need to export your bearnotes and run some simple commands in the Terminal App.
- MacOS
- Ruby >= 2.5.0
$ gem install miyano
$ miyano help
Commands:
miyano build # build posts and layouts
miyano help [COMMAND] # Describe available commands or one specific command
miyano new [DIR] # create new blog
miyano push # push to Github Pages
miyano try # try as a local web server
miyano version # show version
$ miyano new myblog
If you use Bear in Markdown Compatibility Mode, use option -m
$ miyano new myblog -m
$ cd myblog
$ miyano build // convert the bearnotes to html files
$ miyano try // start a local server
Or
$ miyano build; miyano try
Then open browser and go to localhost:8000
Ctrl + C
to Quit
$ miyano push
You need to config the git server at your VPS to sync the static html files, and miyano push
to that server.
Then don't use the miyano try
as a Web Server, use Nginx
as a proxy instead.
For programmers.(Html, Css, and Basic OOP)
The layout
folder determines how the blog looks like.
I use erb
as a template.
The index.html.erb
has the instance of Class Site
, check the methods you can use in the source lib/miyano/site.rb.
Similarly, the post.html.erb
has a instance of Class Post
, check lib/miyano/post.rb.
Check more on the Wiki Page
I made these parsers, beardown and beardown-compat.
If you find any error render(different from the Bear App), contact me or open an issue in Beardown Issues
Bug reports and pull requests are welcome on GitHub at https://github.com/wuusn/miyano.
The gem is available as open source under the terms of the MIT License.