jnfilter @ ce6c095dc57827531f9627faf6a94183be451879

ref: Add build to publish the readme file

I use `index.html` in another places.
  1diff --git a/.build.yml b/.build.yml
  2index 07080e18ba62976d5a101f869de62462f1a30403..97304f1761e2d160d2017973e2118d48531649f7 100644
  3--- a/.build.yml
  4+++ b/.build.yml
  5@@ -2,6 +2,7 @@ image: fedora/36
  6 packages:
  7   - rsync
  8   - make
  9+  - pandoc
 10 
 11 secrets:
 12   - 008c4f67-b864-47f8-9790-cd32f2ae8516
 13@@ -17,9 +18,12 @@       sudo make install_deps
 14   - build: |
 15       cd jnfilter
 16       make
 17+  - readme: |
 18+      cd jnfilter
 19+      make docs
 20   - deploy: |
 21       cd jnfilter
 22       sshopts="ssh -o StrictHostKeyChecking=no"
 23-      rsync --rsh="$sshopts" -rP dist/*.rpm $deploy:/var/www/$target
 24+      rsync --rsh="$sshopts" -rP dist/*.rpm index.html $deploy:/var/www/$target
 25 
 26 
 27diff --git a/Makefile b/Makefile
 28index ed3ae00513fdc9488283866254e4160dd8110dc4..7922953830d2d995087f56a881b41f626b1a6a4c 100644
 29--- a/Makefile
 30+++ b/Makefile
 31@@ -11,5 +11,15 @@ clean:
 32 	python setup.py clean --all
 33 	rm -rf dist jnfilter.egg-info
 34 
 35+docs:
 36+	pandoc -s \
 37+		--include-in-header=docs/bamboo.min.css \
 38+		--metadata title="Filtro para Nerdcast" \
 39+		--template docs/template.html \
 40+		-s README.md \
 41+		-o index.html
 42+
 43 install_deps:
 44 	dnf install -y rpmdevtools rpmlint python
 45+
 46+.PHONY: docs
 47diff --git a/docs/template.html b/docs/template.html
 48new file mode 100644
 49index 0000000000000000000000000000000000000000..0d6c5d0d0cf84a8f6e8bc6ef3899ddd81e111ff9
 50--- /dev/null
 51+++ b/docs/template.html
 52@@ -0,0 +1,51 @@
 53+<!DOCTYPE html>
 54+<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
 55+<head>
 56+  <meta charset="utf-8" />
 57+  <meta name="generator" content="pandoc" />
 58+  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
 59+$for(author-meta)$
 60+  <meta name="author" content="$author-meta$" />
 61+$endfor$
 62+$if(date-meta)$
 63+  <meta name="dcterms.date" content="$date-meta$" />
 64+$endif$
 65+$if(keywords)$
 66+  <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
 67+$endif$
 68+$if(description-meta)$
 69+  <meta name="description" content="$description-meta$" />
 70+$endif$
 71+  <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
 72+  <style>
 73+    $styles.html()$
 74+  </style>
 75+$for(css)$
 76+  <link rel="stylesheet" href="$css$" />
 77+$endfor$
 78+$if(math)$
 79+  $math$
 80+$endif$
 81+  <!--[if lt IE 9]>
 82+    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
 83+  <![endif]-->
 84+$for(header-includes)$
 85+  $header-includes$
 86+$endfor$
 87+</head>
 88+<body>
 89+</header>
 90+$if(toc)$
 91+<nav id="$idprefix$TOC" role="doc-toc">
 92+$if(toc-title)$
 93+<h2 id="$idprefix$toc-title">$toc-title$</h2>
 94+$endif$
 95+$table-of-contents$
 96+</nav>
 97+$endif$
 98+$body$
 99+$for(include-after)$
100+$include-after$
101+$endfor$
102+</body>
103+</html>