Project

miyano

0.01
Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
A BearNote Blog system depoly on Github Pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.14.3
~> 1.16
~> 3.1.0
~> 10.0
~> 3.0

Runtime

>= 0.1.4
~> 3.1.1
~> 1.2.1
~> 3.5.5
~> 0.20.0
~> 2.0.8
 Project Readme

Miyano

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.

Requirements

Installation

$ gem install miyano

Usage

About the commands

$ 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

Create new blog

$ miyano new myblog

If you use Bear in Markdown Compatibility Mode, use option -m

$ miyano new myblog -m

Change dir

$ cd myblog

Open Bear App and Export your selected notes into the Post Dictionary

Build and Try it

$ 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

Serve at Github Pages

$ miyano push

Serve at VPS

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.

Themes

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

Parser of Polar Bear Markup Language

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

Join the Telegram Group to get support

Miyano for Bear

If you like it, please give a star to let me know

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wuusn/miyano.

License

The gem is available as open source under the terms of the MIT License.