Skip to content

Commit

Permalink
alpha release 0.1.0
Browse files Browse the repository at this point in the history
this is experimental first release of Shiba
  • Loading branch information
rhysd committed Jul 13, 2015
1 parent 1ae04fe commit 37d8e12
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ bower_components
node_modules
npm-debug.log
Shiba-*
release
49 changes: 45 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Shiba is built on [Electron](https://github.com/atom/electron) and [Polymer](htt
- Rich GFM (code highlight, emoji)
- Live reload
- Automatic lint (mdast, markdownlint)
- One executable file
- Easy to install
- Customizable (yaml configuration file)
- Cross platform (Mac, Linux, Windows)
- Dog respected :dog2:
Expand All @@ -18,7 +18,12 @@ Shiba is built on [Electron](https://github.com/atom/electron) and [Polymer](htt

### General

Not released yet.
Experimental alpha release is available for Linux, OS X and Windows.
Please download from [here](https://github.com/rhysd/Shiba/releases) and unzip the archive.

- __Linux__ : Use `shiba` executable in the directory.
- __OS X__ : Use `Shiba.app` in the directory (e.g. `$ open -a ./Shiba.app`).
- __Windows__ : Use `shiba.exe` in the directory. No need to install.

### Via npm

Expand All @@ -38,7 +43,43 @@ When the first version is released, all you have to do will be only downloading

## Usage

T.B.D
![Shiba on Linux](https://raw.githubusercontent.com/rhysd/screenshots/master/Shiba/shiba-main-0.1.0.png)

- When file is updated, Shiba automatically updates preview and lint result.
- You can see the result of lint by pushing lint icon in right above. If linter reports any error, the icon's color is changed to red.
- You can change the watching file by pushing directory icon in right above.
- You can quit the app by closing window (`Command+Q` shortcut is also available in OS X).

### Watch specific file

```sh
# Linux
$ shiba /path/to/markdown-file

# OS X
$ open -a Shiba.app /path/to/markdown-file

# Windows
$ shiba.exe /path/to/markdown-file
```

Please specify the markdown file you want to watch as an argument of command.

### Watch files in specific directory

```sh
# Linux
$ shiba /path/to/dir

# OS X
$ open -a Shiba.app /path/to/dir

# Windows
$ shiba.exe /path/to/dir
```

Instead of markdown file, please specify the path to directory as above. If you omit an argument, current working directory would be watched.


## Customization

Expand All @@ -60,7 +101,7 @@ height: "max"
## TODOs

- [ ] Keyboard shortcut
- [ ] Application menu
- [ ] Package installer if needed (Windows, OS X)
- Smarter alternatives
- [ ] [slim](https://github.com/slim-template/slim)
- [ ] [TypeScript](http://www.typescriptlang.org/)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Shiba",
"version": "0.0.1",
"version": "0.1.0",
"authors": [
"rhysd <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shiba",
"productName": "Shiba",
"version": "0.0.1",
"version": "0.1.0",
"description": "Live markdown previewer with linter",
"main": "./src/browser/mainu.js",
"bin": {
Expand Down
2 changes: 0 additions & 2 deletions src/browser/mainu.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ app.on('ready', function(){
const html = 'file://' + path.resolve(__dirname, '..', '..', 'static', 'index.html');
mainWindow.loadUrl(html);

mainWindow.openDevTools();

mainWindow.on('closed', function(){
mainWindow = null;
shortcut.unregisterAll();
Expand Down
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
}
markdown-area {
@apply(--layout-flex);
overflow: scroll;
overflow: auto;
}
#menu {
@apply(--layout-vertical);
}
#lint-area {
overflow: scroll;
overflow: auto;
}
#menu {
background-color: #ffd8aa;
Expand Down

0 comments on commit 37d8e12

Please sign in to comment.