jnfilter @ ce6c095dc57827531f9627faf6a94183be451879

ref: Add build to publish the readme file

I use `index.html` in another places.
diff --git a/.build.yml b/.build.yml
index 07080e18ba62976d5a101f869de62462f1a30403..97304f1761e2d160d2017973e2118d48531649f7 100644
--- a/.build.yml
+++ b/.build.yml
@@ -2,6 +2,7 @@ image: fedora/36
 packages:
   - rsync
   - make
+  - pandoc
 
 secrets:
   - 008c4f67-b864-47f8-9790-cd32f2ae8516
@@ -17,9 +18,12 @@       sudo make install_deps
   - build: |
       cd jnfilter
       make
+  - readme: |
+      cd jnfilter
+      make docs
   - deploy: |
       cd jnfilter
       sshopts="ssh -o StrictHostKeyChecking=no"
-      rsync --rsh="$sshopts" -rP dist/*.rpm $deploy:/var/www/$target
+      rsync --rsh="$sshopts" -rP dist/*.rpm index.html $deploy:/var/www/$target
 
 
diff --git a/Makefile b/Makefile
index ed3ae00513fdc9488283866254e4160dd8110dc4..7922953830d2d995087f56a881b41f626b1a6a4c 100644
--- a/Makefile
+++ b/Makefile
@@ -11,5 +11,15 @@ clean:
 	python setup.py clean --all
 	rm -rf dist jnfilter.egg-info
 
+docs:
+	pandoc -s \
+		--include-in-header=docs/bamboo.min.css \
+		--metadata title="Filtro para Nerdcast" \
+		--template docs/template.html \
+		-s README.md \
+		-o index.html
+
 install_deps:
 	dnf install -y rpmdevtools rpmlint python
+
+.PHONY: docs
diff --git a/docs/template.html b/docs/template.html
new file mode 100644
index 0000000000000000000000000000000000000000..0d6c5d0d0cf84a8f6e8bc6ef3899ddd81e111ff9
--- /dev/null
+++ b/docs/template.html
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang$" xml:lang="$lang$"$if(dir)$ dir="$dir$"$endif$>
+<head>
+  <meta charset="utf-8" />
+  <meta name="generator" content="pandoc" />
+  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
+$for(author-meta)$
+  <meta name="author" content="$author-meta$" />
+$endfor$
+$if(date-meta)$
+  <meta name="dcterms.date" content="$date-meta$" />
+$endif$
+$if(keywords)$
+  <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
+$endif$
+$if(description-meta)$
+  <meta name="description" content="$description-meta$" />
+$endif$
+  <title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
+  <style>
+    $styles.html()$
+  </style>
+$for(css)$
+  <link rel="stylesheet" href="$css$" />
+$endfor$
+$if(math)$
+  $math$
+$endif$
+  <!--[if lt IE 9]>
+    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
+  <![endif]-->
+$for(header-includes)$
+  $header-includes$
+$endfor$
+</head>
+<body>
+</header>
+$if(toc)$
+<nav id="$idprefix$TOC" role="doc-toc">
+$if(toc-title)$
+<h2 id="$idprefix$toc-title">$toc-title$</h2>
+$endif$
+$table-of-contents$
+</nav>
+$endif$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$
+</body>
+</html>