...
 
Commits (12)
coht-vic @ b4431e73
Subproject commit 44bb1e7bafdcb82eaf3ce0c89157ba359b08d18c Subproject commit b4431e739bbc5a4ed1701ab7f4a372fbb4f33cf8
...@@ -23,8 +23,8 @@ PDF=$(addprefix pdf/, $(SRC:.md=.pdf)) ...@@ -23,8 +23,8 @@ PDF=$(addprefix pdf/, $(SRC:.md=.pdf))
TEX=$(SRC:.md=.tex) TEX=$(SRC:.md=.tex)
## Pandoc arguments ## Pandoc arguments
OPTIONS=-f markdown --toc --number-sections --smart OPTIONS=-s --from markdown+yaml_metadata_block --toc --number-sections --smart
TEMPLATE=pandoc.latex TEMPLATE=pandoc.latex
ifneq "$(TEMPLATE)" "" ifneq "$(TEMPLATE)" ""
...@@ -47,6 +47,11 @@ pdf: $(PDF) ...@@ -47,6 +47,11 @@ pdf: $(PDF)
DIR_%: DIR_%:
mkdir -p $(subst DIR_,,$@) mkdir -p $(subst DIR_,,$@)
pdf/wr-starting-kit.pdf: wr-starting-kit.md Makefile $(TEMPLATE) DIR_pdf
pandoc $(OPTIONS) --latex-engine=xelatex --listings --highlight-style=haddock $(TEMPLATEARG) \
-V title="WR Starting Kit" -V subtitle="User Guide" -V author="Seven Solutions" \
-V lang=english -V fontsize=11pt -V documentclass=article -V bg-color=238,245,240 -V date="$(DATE) - $(VERSION)" -o $@ $<
pdf/%.pdf: %.md Makefile $(TEMPLATE) DIR_pdf pdf/%.pdf: %.md Makefile $(TEMPLATE) DIR_pdf
pandoc $(OPTIONS) --latex-engine=xelatex --listings --highlight-style=haddock $(TEMPLATEARG) \ pandoc $(OPTIONS) --latex-engine=xelatex --listings --highlight-style=haddock $(TEMPLATEARG) \
-V lang=english -V fontsize=11pt -V documentclass=article -V bg-color=238,245,240 -V date="$(DATE) - $(VERSION)" -o $@ $< -V lang=english -V fontsize=11pt -V documentclass=article -V bg-color=238,245,240 -V date="$(DATE) - $(VERSION)" -o $@ $<
......
---
title: 'Generate WR Starting Kit Documentation'
subtitle: "How to generate starting kit pdf from markdown using pandoc"
author: Seven Solutions
...
Intro Intro
========== ==========
......
...@@ -106,7 +106,7 @@ $if(listings)$ ...@@ -106,7 +106,7 @@ $if(listings)$
keywords={sudo}, keywords={sudo},
alsoletter={\#,:,>},% alsoletter={\#,:,>},%
emph={>:\# ,>:$$}, emph={>:\# ,>:$$},
moreemph={wrc\# ,wrc1\# ,wrc2\# ,root@wrztp,\/\#}, moreemph={wrc\# ,wrc1\# ,wrc2\# , >spusa:\$$ ,>tornado:\$$,>spusa:\# ,>tornado:\# },
emphstyle=\color{darkred}, emphstyle=\color{darkred},
comment=[l]{\#\#},% comment=[l]{\#\#},%
morestring=[s]{\{}{\}}, morestring=[s]{\{}{\}},
...@@ -351,7 +351,7 @@ $endif$ ...@@ -351,7 +351,7 @@ $endif$
%% Footer %% Footer
\renewcommand{\footrulewidth}{1pt} \renewcommand{\footrulewidth}{1pt}
\fancyfoot[L]{{\scriptsize \bfseries $title$ - $title-prefix$} \\ \raisebox{5pt}{\tiny $date$}} \fancyfoot[L]{{\scriptsize \bfseries $title$ - $subtitle$} \\ \raisebox{5pt}{\tiny $date$}}
\fancyfoot[C]{\raisebox{0pt}{\small \weburl }} \fancyfoot[C]{\raisebox{0pt}{\small \weburl }}
\fancyfoot[R]{\raisebox{0pt}{\scriptsize \thepage}} \fancyfoot[R]{\raisebox{0pt}{\scriptsize \thepage}}
...@@ -405,31 +405,26 @@ $endif$ ...@@ -405,31 +405,26 @@ $endif$
\makeatletter \makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@} \def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}
\renewcommand{\maketitle}{\begin{titlepage}% \renewcommand{\maketitle}{\begin{titlepage}%
$if(imgcover)$ \let\footnotesize\small
\ThisLRCornerWallPaper{1}{$imgcover$} \let\footnoterule\relax
$endif$ \parindent \z@
\vspace{5mm} \reset@font
\begin{minipage}{\textwidth} \null\vfil
\vspace{4.5cm} \begin{flushleft}
\begin{flushright} \Huge \textbf{\@title}
\fontsize{10pt}{8pt}\selectfont \end{flushleft}
{\@date} \par
\end{flushright} \hrule height 4pt
\end{minipage} \par
\begin{minipage}{\textwidth} \begin{flushright}
\vspace{5.8cm} \large \@date \par
\noindent \end{flushright}
\begin{center} \vskip 500\p@
\textsc{\textbf{\@title}} \vfil\null
\end{center} \begin{flushleft}
\vspace{7cm} \Large \textbf{\@author}
\begin{flushleft} \end{flushleft}
{\Large \textbf{\@author}}\\ \hrule height 2pt
\vspace{2cm}
{\large \OldTexttt{Seven Solutions S.L}}\\
{\url{www.sevensols.com}}
\end{flushleft}
\end{minipage}
\end{titlepage}% \end{titlepage}%
\setcounter{footnote}{0}% \setcounter{footnote}{0}%
} }
......
This diff is collapsed.
Subproject commit cf911ce26c101943edd5b0c6db360dc563147051 Subproject commit eea7bfc82e4cb3554d4343d93dfa75773d7b2fc2
From 670756fc4c7e62442b43b745239a8a5d7cc03e8e Mon Sep 17 00:00:00 2001
From: Miguel Jimenez Lopez <miguel.jimenez@sevensols.com>
Date: Thu, 12 Sep 2019 09:46:27 +0200
Subject: [PATCH 4/4] Makefile: Add an installation rule.
---
drivers/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/Makefile b/drivers/Makefile
index fbda688..8982385 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -9,6 +9,8 @@ VERSION = $(shell git describe --always --dirty --long --tags)
all: modules
modules:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) DRV_VERSION="$(VERSION)"
+install modules_install:
+ $(MAKE) -C $(LINUX) M=$(shell /bin/pwd) DRV_VERSION="$(VERSION)" modules_install
clean:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) clean
--
2.17.1
...@@ -294,7 +294,7 @@ exit 0 ...@@ -294,7 +294,7 @@ exit 0
# setup script dir # setup script dir
scriptdir=$(cd $(dirname $0); pwd) scriptdir=$(cd $(dirname $0); pwd)
DOWNLOADDIR=${scriptdir}/../firmware DOWNLOADDIR=${scriptdir}/../firmware
PKGURL="https://drive.google.com/uc?export=download&id=1ihH73-YVrRDhWcYa9-4kkqepvl3xrRGk 39843e9cb12182dfe741fb3b26ac6ea5" PKGURL="https://ohwr.org/project/wr-starting-kit/wikis/uploads/b63d12f90cd0dbb89b78587603fdcfe6/wr-starting-kit-v3.0_bin.tar.gz"
while [ $# -gt 0 ]; do # Until you run out of parameters . . . while [ $# -gt 0 ]; do # Until you run out of parameters . . .
case "$1" in case "$1" in
......
Subproject commit a301a69e45ca608b6d20c3843d95343bb326decf Subproject commit e76f5ca3bcda171318757b603abca131712d086e
Subproject commit c26a9ff989db7d0ac0a6a4872bd0fcb81fdb29a1 Subproject commit 2ff6c419ea4a23cb9ffc043f6c03d831e81f9f2f
Subproject commit 75f5007e599c7490169a9ebf95e94617d1866f63 Subproject commit 3c9b25b8c9afff89f425f4974a361e1a0c8bed8d