Commit c30be3a7 authored by Ma_124's avatar Ma_124

added section about awesome.toml

parent 9752146c
......@@ -7,10 +7,46 @@
# Awesome Framework
This is a framework for creating [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome/blob/master/awesome.md) lists.
This is a framework for creating [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome/blob/master/awesome.md) lists. See it in action at a [fork of awesome-go](https://ma_124.gitlab.io/awesome-go-with-framework/)
It can convert [different filetypes](#filetypes) into each other and [fetch metadata](#fetch-metadata) about the repositories mentioned.
## `awesome.toml`
`awesome.toml`:
```toml
[[inputs]]
name="readme"
file="README.md"
format="md"
[[lists]]
[lists.input]
input-link="readme"
[lists.output]
file="tmpl/index.html"
format="md-html"
```
`post-build.awesome.sh`:
```bash
#!/bin/bash
mkdir public
cp -r tmpl/** public
cat <<-EOF > public/index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
$(cat public/index.html)
</body>
</html>
```
## Filetypes
### `markdown` (Input)
......@@ -71,5 +107,11 @@ Data Sources:
* https://gitlab.com/example/repo
* http://gitlab.com/example/repo
Fetched Metadata:
* Stars
* Forks
* Issues
* Last Commit
[Blackfriday]: https://github.com/russross/blackfriday
......@@ -35,7 +35,7 @@ func main() {
case "internal":
mainInternal()
default:
fmt.Println("awesome" + os.Args[1] + ": unknown command\nRun 'awesome help' for usage.`")
fmt.Println("awesome " + os.Args[1] + ": unknown command\nRun 'awesome help' for usage.`")
os.Exit(1)
}
}
......@@ -382,6 +382,8 @@ deploy:
on:
branch: master
`[1:]))
case "css-avelino":
fmt.Println(`/* normalize.css v3.0.1 | MIT License | git.io/normalize || awesome-go.css | MIT License | https://gitlab.com/Ma_124/awesome-go-with-framework */ html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}h1{font-size:2em;margin:0.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button, html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}button[disabled], html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:bold}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{max-width:100%;box-sizing:border-box;font-family:"Fira Sans";text-decoration:none;font-weight:300}.awesome-logo{max-width:500px;width:100%;margin:auto;display:block}a{color:#669}a:visited,h1,h2,h3,h4{color:#494368;font-weight:400}h1>a:nth-child(1){margin-left:10px}h1 > a img{padding-right:5px}table{width:100%}th{text-align:left;font-weight:bold}tr td:nth-child(1),td:nth-child(2),td:nth-child(3){width:5%}tr td:nth-child(4){width:10%}tr td:nth-child(5){width:20%}tr td:nth-child(6){width:55%}td{padding-top:1em;padding-bottom:1em}tr td:nth-child(1),th:nth-child(1){padding-left:0.4em}tr td:nth-child(6),th:nth-child(6){padding-right:0.4em}tr td:nth-child(1)::before,td:nth-child(2)::before,td:nth-child(3)::before{padding-right:0.3em}tr td:nth-child(1)::before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAANCAYAAACZ3F9/AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAC8SURBVCiRldCxTgJBFIXhT+jMUhB6EjHBXmJLY+cz0JnYUlptb8ML8BJa6ovQIQkFLYlSYWQtdjbZbGZX9ianmDn3nzM5XfUzxRDbhp3ofOC9LXSLEzLctQHfApThNbZwgT6ugka4xlPwBHiJNT6xCTLHbynhP53wXCTPcDwD+sFj9dv3+GqADnioKyVtANPyYqcC3tS9iHGDZ1VK2AUV51UdlMjb/cYLeriUN7gPXhIDJ1hgEPEGwZsUF38kN0Pdjn6upgAAAABJRU5ErkJggg==)}tr td:nth-child(2)::before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAOCAYAAAAWo42rAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAACVSURBVCiRfdFdDsFAFAXgr90AK5DGbpQQVtQdorwKntmC1INpO/p3kpO5OffMufMDB5SBOy32uMR6iRnmOEXGWp/hmPpHMlAnSCHHK3AVGQf1KrCLRq9HP8JaRKai0wMZ7mF3EVgFLeuOWeAWjXtiOXCcJrk29pJGLxCj+45rvAPzqbSr9pfKqcTPSN3D1u+/z9jEjS/ZQClBEEr8EgAAAABJRU5ErkJggg==)}tr td:nth-child(3)::before{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAA7AAAAOwBeShxvQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADmSURBVCiRldJNSgNBEAXgb2ahrgRh9AK6E3MWCa7ceRM1IGLIFbLUnZ4kUYLuFNQDiH9biYuugVY7DD4oaIr36lVXFT+xgQGu8Rkxjdx6Tqyy9x7GeME57iK/jX2s4QCXfom+cIolf7GMs+D08/beQ5RjHpFjiNe27QEeo2qXcAVPOIIbnBTaKwlFZ9Mam5gVCIsww1YdVasOco4K8xoP6C0glAr2cA/H/jecZxySRvsm7alLOJLW0bSJvrTcYcG5dRoFZ7f9Ry4eh/sFbsNxRzq5VenkrgqFNdJyJ/iQLmoSuSYnfgN+wjp2xWT6awAAAABJRU5ErkJggg==)}.sorted-by-1-asc th:nth-child(1)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-2-asc th:nth-child(2)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-3-asc th:nth-child(3)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-4-asc th:nth-child(4)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-5-asc th:nth-child(5)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-6-asc th:nth-child(6)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAABFAAAARQB+zng/wAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAA9SURBVBiVlcsxDoAgEETRRzw0JfFoFpwLGmLjou4kv5sHFSNZs5bBN8rgB/qDt+gNf6IIh+jYwI6CC2d0mBoOMaY5Z6lcAAAAAElFTkSuQmCC)}.sorted-by-1-desc th:nth-child(1)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}.sorted-by-2-desc th:nth-child(2)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}.sorted-by-3-desc th:nth-child(3)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}.sorted-by-4-desc th:nth-child(4)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}.sorted-by-5-desc th:nth-child(5)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}.sorted-by-6-desc th:nth-child(6)::after{content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAHCAYAAAA4R3wZAAAACXBIWXMAAAEUAAABFAH7OeD/AAAALklEQVQYlWNgwA0aoJgkUM/AwPAfisvJ0US0ZmyaCGrGpwmnZmI0YWgmRRNcMwA4SDCbrp8sLAAAAABJRU5ErkJggg==)}tr:nth-child(even),th{background-color:#e6e6e6}tbody tr:nth-child(odd){background-color:white}th{cursor:pointer}#content{width:100%;padding:40px 80px}@media (max-width: 720px){#content{padding:20px 40px}}@media (max-width: 420px){#content *{word-wrap:break-word}}`)
default:
fmt.Println("Unknown name: " + os.Args[2])
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment