Commit 0e7c4cbf authored by Victor Poughon's avatar Victor Poughon

Documentation: Move FAQ to CookBook

parent 0859b18f
This diff is collapsed.
......@@ -10,3 +10,4 @@ Table of Contents
Monteverdi
Recipes
Applications
FAQ
......@@ -228,30 +228,3 @@ ADD_CUSTOM_TARGET(SoftwareGuide_HTML
)
ADD_DEPENDENCIES(SoftwareGuide_HTML SoftwareGuide_RenamePdf)
# FAQ
CONFIGURE_FILE(
${SoftwareGuide_SOURCE_DIR}/generate_FAQ.sh.in
${SoftwareGuide_BINARY_DIR}/generate_FAQ.sh
IMMEDIATE
)
ADD_CUSTOM_COMMAND(
OUTPUT OTB-FAQ.pdf
COMMAND ${SH_COMMAND} ${SoftwareGuide_BINARY_DIR}/generate_FAQ.sh
# DEPENDS SoftwareGuide.pdf
COMMENT "Generating FAQ"
)
ADD_CUSTOM_TARGET(FAQ ALL DEPENDS OTB-FAQ.pdf)
ADD_CUSTOM_TARGET(FAQ_HTML_targz
ALL
COMMAND ${TAR_COMMAND} cvzf OTB-FAQ-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}-html.tar.gz OTB-FAQ-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}
WORKING_DIRECTORY ${SoftwareGuide_BINARY_DIR}
COMMENT "Building FAQ HTML documentation tar.gz"
)
ADD_DEPENDENCIES(FAQ_HTML_targz FAQ)
This diff is collapsed.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{a4}
\usepackage{amsmath}
\usepackage{babel}
\usepackage{times}
\usepackage{pslatex}
\usepackage{InsightMarkup}
\usepackage[pdftex]{graphicx}
\usepackage[bookmarksnumbered,colorlinks=true,pdftitle={},pdfauthor={Jordi Inglada},pdfsubject={},pdfkeywords={}]{hyperref}
\usepackage{fancyhdr}
\usepackage[normalem]{ulem}
\usepackage{afterpage}
\usepackage{rotating}
%\pagestyle{fancy}
\input epsf
\input{../SoftwareGuideConfiguration.tex}
\usepackage{mdwtab}
\usepackage[normal]{subfigure}
\newcommand{\goodgap}{%
\hspace{\subfigtopskip}%
\hspace{\subfigbottomskip}}
\def\rit{\hbox{\it I\hskip -2pt R}}
\def\nit{\hbox{\it I\hskip -2pt N}}
\def\cut{\hbox{\it l\hskip -5.5pt C\/}}
\def\zit{\hbox{\it Z\hskip -2pt Z}}
\def\qit{\hbox{\it l\hskip -5.5pt Q}}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\title{ORFEO Toolbox (OTB) Frequently Asked Questions (FAQ).\\ Updated
for OTB-\otbversion}
\author{OTB Development Team}
\maketitle
\tableofcontents
\input{FAQ.tex}
%\bibliographystyle{plain}
%\bibliography{biblio}
\end{document}
......@@ -295,9 +295,6 @@ colorlinks,linkcolor={blue},citecolor={blue},urlcolor={blue},
\input{Contribute.tex}
\part{Appendix}\label{part:appendix}
\chapter{Frequently Asked Questions}
\label{sec:FrequentlyAskedQuestions}
\input{FAQ.tex}
\chapter{Release Notes}
\label{sec:ReleaseNotes}
......
......@@ -11,9 +11,6 @@ ${TEX4HT_COMPILER} "$@" ${TEX4HT_OPTIONS}
# Make an index.html symlink pointing to the root page
${LN_COMMAND} -nsf SoftwareGuide.html index.html
# Make a FAQ.html symlink pointing to the correct SoftwareGuide chapter
${LN_COMMAND} -nsf `${GREP_COMMAND} -El "<head><title>[0-9]+ Frequently Asked Questions</title>" *` FAQ.html
cd ..
#Insert analytics tracker
......
#/bin/sh
SGROOT='${SoftwareGuide_SOURCE_DIR}'
TEXINPUTS=$TEXINPUTS:$SGROOT/../Latex:$SGROOT:$SGROOT/Latex:$SGROOT/Art:$SGROOT/Examples:$SGROOT/Art
export TEXINPUTS
FAQTEX=${SoftwareGuide_SOURCE_DIR}/Latex/OTB-FAQ.tex
#latex2rtf -o ${SoftwareGuide_BINARY_DIR}/Latex/OTB-FAQ-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}.rtf $FAQTEX
FAQHTMLDIR=${SoftwareGuide_BINARY_DIR}/OTB-FAQ-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}
mkdir -p $FAQHTMLDIR
latex2html -dir $FAQHTMLDIR -split 0 -local_icons -info "" $FAQTEX
pdflatex -halt-on-error $FAQTEX
mv OTB-FAQ.pdf OTB-FAQ-${OTB_VERSION_MAJOR}.${OTB_VERSION_MINOR}.pdf
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