Coder Social home page Coder Social logo

vimwiki-dark-and-responsive's Introduction

CSS/JS/html for vimwiki

  • dark theme by default
  • syntax highlighting via google prettify
  • straightforward css, actually editable by end user
  • mobile friendly
    • this includes tables which get reformated

Live version of might be available on wiki.havrak.xyz. If you wish to display the site, you need to accept the self signed certificate (or use http).

Basic setup in .vimrc (vimwiki is stored in ~/.vim/vimwiki):

let g:vimwiki_list = [{'path': '~/.vim/vimwiki/', 'path_html': '~/.vim/vimwiki/html', "auto_diary_index": 1,'template_path': '~/.vim/vimwiki/templates','template_default': 'def_template', 'template_ext': '.html'}]
let g:vimwiki_listsyms = '✗✓'
let g:vimwiki_conceallevel = 2
let g:vimwiki_valid_html_tags = 'b,i,s,u,sub,sup,kbd,br,hr,pre,script,div'

Easiest way to setup is via symlinks

git clone https://github.com/havrak/vimwiki---dark-and-responsive
mv https://github.com/havrak/vimwiki---dark-and-responsive .vim/vimwiki_template
ln -sf $HOME/.vim/vimwiki_template/templates/ $HOME/.vim/vimwiki/
ln -sf $HOME/.vim/vimwiki_template/html/ $HOME/.vim/vimwiki/html/

Dynamic tables, aren't default behavior. To use them table must be wrapperd in div with class dynamic-table.

<div class="dynamic-table">
| Col1  | Col2  |
|-------|-------|
| item1 | item1 |
| item2 | item2 |
</div>

Code snippets use standart annotation:

<pre class ="prettyprint lang-cpp">
{{{cpp
	#include <iostream>

	int main(void){
		return 0;
	}
}}}
</pre>

Same goes for math mode. MathJax isn't stored locally, if you wish to do so please edit def_template.html

{{$%align%
	\frac{5}{a}+\Delta_b = 5
}}$

Screenshots

Normal layout Table Code Snippet

vimwiki-dark-and-responsive's People

Contributors

havrak 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.