via Tex4ht with frames, using the configuration file cc.cfg
\Preamble{xhtml,mathml,sections+,ext=htm,charset="utf-8",2,frames}
\Configure{@HEAD}{\HCode{<title>Good Morning</title>\Hnewline}}
\Configure{@HEAD}{\HCode{<link rel="profile" href="http://gmpg.org/xfn/11" />\Hnewline}}
\Configure{@HEAD}{\HCode{<link rel="shortcut icon" href="css/images/favicon.ico" />\Hnewline}}
\Configure{BODY}
{%
\HorFrames{*,3*}\Frame{s1}\Frame[ name="f2"]{s2}
\NoFrames
\PushStack\eBody{}
\SubConfig
\HPage[p1]{hello}\Link{}{s1}\EndLink
\bgroup
\Configure{Link}{a}{target="f2" href=}{name=}{}
\tableofcontents
\egroup
\EndHPage{p1} \Tg<br />
\HPage[p2]{text2222}\Link{}{s2}\EndLink
}
{ \EndHPage{p2}}
\Configure{DOCTYPE}
{\HCode{<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
\Hnewline "http://Hello1">\Hnewline}}
\def\SubConfig{%
\Configure{BODY}
{\PushStack\eBody{x}\Tg<body>}
{\PopStack\eBody\temp
\ifx \temp\empty \EndFrames \else\Tg</body>\fi}
\Configure{DOCTYPE}
{\HCode{%
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \Hnewline "http://Hello2"> \Hnewline}}
}
\begin{document}
\EndPreamble
I am trying to compile the following tex file site_test.tex
\documentclass{book}
%\usepackage[latin1]{inputenc}
\usepackage{inputenc}
\usepackage[english]{babel}
\pdfcompresslevel=9
\usepackage{minitoc}
\begin{document}
\dominitoc
\title{This is a title}
\date{Today is today}
\author{Joe}
\maketitle
\tableofcontents
\chapter{Chapter alpha}
\section{Alpha prime}
\section{Alpha secundus}
\subsection{Hello}
\subsection{Ciao}
\chapter{Chapter beta}
\section{bye}
\section{Here you are}
\end{document}
via the command (on MikteX Windows 8)
htlatex site_test.tex "cc.cfg"
and I obtain the following output
I have some problems with it I would like to adress
The page should be called "Good Morning" via
\Configure{@HEAD}{\HCode{<title>Good Morning</title>\Hnewline}}
but it takes the title of the document "This is a title" (the icon works)
I am trying to put title, date and author above the table of content, so far no success.
In the table of content, there are 2 "contents". How to remove at least one ?
(Does anyone know a way to improve the site by modifying the css file ?)
I understant the global structure of the code but not enough. I can post the HTML ouputs if necessary. Does anyone has a working example ? Any help is welcome :)
\HorFrames{*,3*}\Frame[ marginwidth="20" name="f1"]{s1}\Frame[ marginwidth="20" name="f2"]{s2}
\VerFrames{*,3*}\Frame{v1}
together with defining\Hpage[v1]....
as explained by @jagath.