From ce6c095dc57827531f9627faf6a94183be451879 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sun, 3 Jul 2022 17:22:42 +0200 Subject: ref: Add build to publish the readme file I use `index.html` in another places. --- .build.yml | 6 +++++- Makefile | 10 ++++++++++ docs/template.html | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 docs/template.html diff --git a/.build.yml b/.build.yml index 07080e1..97304f1 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 @@ tasks: - 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 ed3ae00..7922953 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 0000000..0d6c5d0 --- /dev/null +++ b/docs/template.html @@ -0,0 +1,51 @@ + + + + + + +$for(author-meta)$ + +$endfor$ +$if(date-meta)$ + +$endif$ +$if(keywords)$ + +$endif$ +$if(description-meta)$ + +$endif$ + $if(title-prefix)$$title-prefix$ – $endif$$pagetitle$ + +$for(css)$ + +$endfor$ +$if(math)$ + $math$ +$endif$ + +$for(header-includes)$ + $header-includes$ +$endfor$ + + + +$if(toc)$ + +$endif$ +$body$ +$for(include-after)$ +$include-after$ +$endfor$ + + -- cgit v1.2.3