Skip to content

Commit

Permalink
Update LAYERS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu authored and Alvin committed Jan 31, 2019
1 parent 608118c commit f5ed03e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
6 changes: 4 additions & 2 deletions layers/LAYERS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Layer Manifest
==============

Last updated: 2018-04-05 15:47:24

Default layers: `fzf`, `unite`, `better-defaults` and `which-key`.

Topic | Layer | Plugins
:----: | :----: | :----
+vim | [text-align](https://github.com/liuchengxu/space-vim/tree/master/layers/+vim/text-align) | <ul><li>[godlygeek/tabular](https://github.com/godlygeek/tabular)</li><li>[junegunn/vim-easy-align](https://github.com/junegunn/vim-easy-align)</li></ul>
Expand Down Expand Up @@ -49,5 +53,3 @@ Topic | Layer | Plugins
+lang | [graphviz](https://github.com/liuchengxu/space-vim/tree/master/layers/+lang/graphviz) | <ul><li>[wannesm/wmgraphviz.vim](https://github.com/wannesm/wmgraphviz.vim)</li></ul>
+lang | [javascript](https://github.com/liuchengxu/space-vim/tree/master/layers/+lang/javascript) | <ul><li>[pangloss/vim-javascript](https://github.com/pangloss/vim-javascript)</li><li>[mxw/vim-jsx](https://github.com/mxw/vim-jsx)</li><li>[neoclide/vim-jsx-improve](https://github.com/neoclide/vim-jsx-improve)</li></ul>
+lang | [ruby](https://github.com/liuchengxu/space-vim/tree/master/layers/+lang/ruby) | <ul><li>[vim-ruby/vim-ruby](https://github.com/vim-ruby/vim-ruby)</li></ul>

Last updated: 2018-04-01 19:26:11
24 changes: 18 additions & 6 deletions layers/generate_layers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
$ python generate_layers.py
update LAYERS.md
"""

import os
import re
import time
Expand All @@ -14,6 +22,14 @@
f = open(os.path.expandvars('./LAYERS.md'), 'w')
f.write('Layer Manifest\n')
f.write('==============\n\n')
f.write(
'Last updated: ' + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
f.write("\n\n")
f.write(
"Default layers: `fzf`, `unite`, `better-defaults` and `which-key`."
)
f.write("\n\n")

f.write("%-20s | %s | %s\n" % ('Topic', 'Layer', 'Plugins'))
f.write("%-20s | %s | %s\n" % (':----:', ':----:', ':----'))

Expand All @@ -23,8 +39,8 @@
for t in topics:
topic_path = topic_base + '/' + t
layers = [
f for f in os.listdir(topic_path)
if os.path.isdir(os.path.join(topic_path, f))
l for l in os.listdir(topic_path)
if os.path.isdir(os.path.join(topic_path, l))
]
for l in layers:
plugins = "<ul>"
Expand All @@ -39,10 +55,6 @@
plugins += "</ul>"
f.write("%-20s | [%s](%s/%s/%s) | %s\n" % (t, l, url_prefix, t, l,
plugins))
f.write("\n")
f.write('Last updated: ' + time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(
)))

f.close()

print('LAYERS.md has been updated (created) successfully.')

0 comments on commit f5ed03e

Please sign in to comment.