Giter Club home page Giter Club logo

wiki's Introduction

Personal wiki & journal + automatic GitHub pages publication

vimwiki <3 GithubPages.

Goals

  • Jekyll should support the same markdown features as GitHub. Markdown should be previewable on GitHub.
  • vimwiki should be tweaked to produce content for Jekyll.
  • vimwiki can be used both for the wiki and journaling.
  • the diary feature of vimwiki will generate Jekyll posts.

How to create your own wiki

1. Setup vim

  1. Install the vimwiki plugin
  2. Optionally install the Calendar plugin
  3. Add the following in your ~/.vimrc:
let wiki_1 = {}
let wiki_1.path = '~/vimwiki'
let wiki_1.ext = '.md'
let wiki_1.syntax = 'markdown'
let wiki_1.auto_toc = 1
" Create posts automatically
let wiki_1.diary_rel_path = '_posts'
let g:vimwiki_list = [wiki_1]
let g:vimwiki_dir_link = 'index'
let g:vimwiki_use_calendar = 1

2. Setup GitHub Pages

  1. Create a new repo
  2. Set "master" as the gh-pages branch: xxx
  3. Add a _config.yml (see this repo)

Known issues

jekyll: no autolink in markdown

This is fixed by switching the markdown rendered in the _config.yml:

markdown: CommonMarkGhPages
# see https://github.com/gjtorikian/commonmarker#parse-options
commonmark:
  options:
    - FOOTNOTES
    - SMART
  extensions:
    - autolink
    - strikethrough
    - table

jekyll: posts are not listed

Jekyll requires the post to also contain a slug name.

  • Works: _posts/2019-05-06-foo.md
  • Doesn't work: _posts/2019-05-06.md

But since this is a journal it doesn't make sense to have a title for every day. And vimwiki doesn't support it anyways.

This will become possible once jekyll/jekyll#7649 is merged in.

vimwiki: no auto-commit-and-push

It's easy to forget to commit and push the changes.

:Gwrite + :Gcommit + :Gpush from vim fugitive is quite handy but still a bit too many commands.

vimwiki: fix the link converter

By default vimwiki turns Foo into [Foo](Foo) but GitHub doesn't know how to follow those links. It would be better if it was [Foo](Foo.md) instead.

This will be fixed once vimwiki/vimwiki#529 is merged in (currently in the dev branch, not master).

vimwiki: wiki links from diary are annoying

I don't think this is going to change.

When linking to the wiki from the diary, add a slash in front of the page name. Then type Enter to expand it.

Eg: /Foo will convert to [Foo](/Foo)

wiki's People

Contributors

zimbatm avatar rugk avatar vakili avatar mic92 avatar dependabot[bot] avatar 0ihsan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.