Skip to content

Commit

Permalink
Merge pull request #11 from jannis-baum/issue/5-docs-publish
Browse files Browse the repository at this point in the history
Docs & publish
  • Loading branch information
jannis-baum committed Aug 4, 2023
2 parents 94e095d + cbcb3a7 commit b21a5fb
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: "🪲 Bug report"
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

### Describe the bug

A clear and concise description of what the bug is.

### To Reproduce

Steps to reproduce the behavior:

1. Use version ...
2.

### Expected behavior

A clear and concise description of what you expected to happen.

### Screenshots

If applicable, add screenshots to help explain your problem.

### Additional context

Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: "✨ Feature request"
about: Suggest an idea for this project
title: ''
labels: feature
assignees: ''

---


10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: "👀 Question"
about: Ask something
title: ''
labels: question
assignees: ''

---


4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
- name: package
if: startsWith(github.ref, 'refs/tags/v')
run: |
zip -r vivify-macos-${{ github.ref_name }}.zip bin/macos/*
zip -r vivify-linux-${{ github.ref_name }}.zip bin/linux/*
zip -r vivify-macos.zip bin/macos/*
zip -r vivify-linux.zip bin/linux/*
- name: release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Contributing to Vivify

Contributions are very welcome! If you would like to contribute, please make
sure you follow the steps below:

- Make sure there is an issue corresponding to what you are working on
- Use [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
with `#<your issue number>` as the context for all commits
- Make sure you are not adding any merge commits to your branch
- Open a pull request & wait for a review!🩵
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Vivify

Vivify brings your (Markdown) files to life in the browser!

## Features

- various [Markdown features](#markdown)
- links to other files: [relative links like in
GitHub](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#relative-links)
as well as absolute file links
- view non-markdown files with code syntax highlighting
- view & navigate directories, hidden "back to parent directory" button at the
top-left of the file viewer
- easy to integrate with any editor for live synchronization (see [editor
support](#editor-support))
- Vivify server starts lazily and automatically shuts down when no more viewers
are connected

### Markdown

- heading/anchor links
- GitHub emojis `:smile:`
- full Katex math support
- GitHub task-lists
- syntax highlighting for code

If you need any additional features, feel free to [open an
issue](https://github.com/jannis-baum/vivify/issues/new/choose) or
[contribute](CONTRIBUTING.md)!

## Usage

- download & unpack the latest release for your system (macOS or Linux)
- add the two executables to your `$PATH`
- run `viv <file>` to view `<file>`

## Editor Support

Vivify has a simple API to integrate your favorite editor so the viewer live
updates to any changes as you are typing and the scrolling is smoothly
synchronized!

See below for a list of existing editor plugins. In case your favorite editor is
not yet supported, use these as an example to write your own and add it to the
list!

### Existing integration

- for Vim: [vivify.vim](https://github.com/jannis-baum/vivify.vim)

## Get help

Is something not working or do you have any questions? [Open an
issue](https://github.com/jannis-baum/vivify/issues/new/choose)!

## Acknowledgments

I have been using
[iamcco/markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim)
for the longest time and started this project because

1. I wanted a Markdown viewer that works without Vim and
2. I wanted a Markdown viewer that supports file links like in GitHub.

Looking at
[iamcco/markdown-preview.nvim](https://github.com/iamcco/markdown-preview.nvim)
helped in development, particularly with regard to which `npm` packages to use.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if [ "$1" != "minor" -a "$1" != "major" ]; then
exit 1
fi

version="v0.0.0"
version="v0.0.1"
prev=$(git tag --sort=version:refname | tail -1)

if [ -n "$prev" ]; then
Expand Down

0 comments on commit b21a5fb

Please sign in to comment.