Commit 62de824a authored by Marcos Fouces's avatar Marcos Fouces

Use publican-debian pkg branding.

parent 86a1e4bd
......@@ -10,7 +10,7 @@ version=$(get_product_version)
OPT_lang="en-US"
parse_options "$@"
if publican build --publish --brand_dir=brand --formats=html --langs=$OPT_lang $OPT_opts; then
if publican build --publish --brand_dir=/usr/share/publican/Common_Content/debian --formats=html --langs=$OPT_lang $OPT_opts; then
echo "SUCCESS: publish/$OPT_lang/Debian_Security_Guide/$version/html/harden-doc/index.html"
else
echo "ERROR: failed to build HTML output for $OPT_lang"
......
# Config::Simple 4.59
# Sun Apr 29 15:12:32 2012
prod_url: "http://www.debian.org"
doc_url: "http://www.debian.org/doc/"
# Default chunking rules for HTML output
chunk_section_depth: 1
chunk_first: 0
/* Empty file by default to avoid HTTP error 404 since that file
* is loaded from default.css */
a:link {
color:#0035C7;
}
a:visited {
color:#54638C;
}
h1 {
color:#C70036;
}
div.producttitle {
color:#C70036;
}
.section h1.title {
color:#C70036;
}
.docnav.top li.home {
color: #C70036;
}
h2,h3,h4,h5,h6 {
color:#C70036;
}
table {
border:1px solid #aaa;
}
table th {
background-color:#900;
}
table tr.even td {
background-color:#f5f5f5;
}
#title a {
height:54px;
}
.term{
color:#C70036;
}
.revhistory table th {
color:#C70036;
}
.titlepage .edition {
color: #C70036;
}
span.remark{
background-color: #ffff00;
}
/* Disable the important formatting on sidebars. */
div.important.sidebar:before {
content: "";
}
/* Styles of block URLs */
div.url {
margin-top: 0.5em;
}
div.url + div.url {
margin-top: 0;
}
/* Styles of sidebars */
div.sidebar {
border: 2px solid #aaaaaa;
margin-top: 10px;
margin-bottom: 10px;
padding: 10px;
font-size: 90%;
background-color: #eeeeee;
}
div.sidebar > div.titlepage {
border-bottom: 1px solid;
}
div.sidebar > div.titlepage span.emphasis:nth-child(1) > em {
color: #666666;
font-style: normal;
font-variant: small-caps;
}
/* Modify behaviour within sidebars */
div.sidebar p.title {
margin-top: 0;
margin-bottom: 0;
}
div.sidebar > p, div.sidebar > div.para {
margin-top: 1em;
margin-bottom: 0;
}
div.sidebar h6 {
margin-top: 0px;
}
/* Styles of screens */
.screen .computeroutput {
font-weight: normal;
}
\ No newline at end of file
# Config::Simple 4.59
# Sun Apr 29 15:12:32 2012
strict: 0
# Config::Simple 4.59
# Sun Apr 29 15:12:32 2012
version: "0.1"
xml_lang: "en-US"
release: 0
type: brand
brand: debian
/* Cascading stylesheet */
/* Copyright © 2015 Stéphane Blondon <stephane.blondon@gmail.com> */
/* */
/* Permission is hereby granted, free of charge, to any person obtaining a */
/* copy of this software and associated documentation files (the "Software"), */
/* to deal in the Software without restriction, including without limitation */
/* the rights to use, copy, modify, merge, publish, distribute, sublicense, */
/* and/or sell copies of the Software, and to permit persons to whom the */
/* Software is furnished to do so, subject to the following conditions: */
/* */
/* The above copyright notice and this permission notice shall be included */
/* in all copies or substantial portions of the Software. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS */
/* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/* global style of the page */
body {
background-color: #EEEEEE;
border: 40px solid #EEEEEE;
margin: 0;
padding: 0 10px;
font-family: "liberation sans", "Myriad ", "Bitstream Vera Sans", "Lucida Grande", "Luxi Sans", "Trebuchet MS", helvetica, verdana, arial, sans-serif;
line-height: 1.2em;
}
@media (max-width: 5in), (max-device-width: 5in){
body {
border: 0px;
padding: 0px;
}
}
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part {
margin-top: 0;
padding: 2em 6em 6em;
}
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part {
padding: 2em;
}
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part, body > div.index {
background-color: #FFFFFF;
margin: 40px auto 4em;
padding: 1px 40px 20px 30px;
}
@media (max-width: 1024px) {
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part, body > div.index {
max-width: 45em;
}
}
@media (min-width: 1025px) {
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part, body > div.index {
max-width: 70em;
}
}
@media (max-width: 5in), (max-device-width: 5in){
body > div.book, body > div.article, body > div.set, body > div.preface, body > div.chapter, body > div.section, body > div.appendix, body > div.part, body > div.index {
max-width: 100%;
}
}
hr {
border-top: 1px dotted #808080;
margin: 0;
}
a:link {
color: #0035C7;
text-decoration: none;
}
a:visited {
color: #00207A;
text-decoration: none;
}
a:link:hover {
color: #00207A;
text-decoration: underline;
}
code {
font-family: "liberation mono","bitstream vera mono","dejavu mono",monospace;
font-weight: bold;
word-wrap: break-word;
}
h1 {
color: #C70036;
line-height: 1.1em;
}
h2, h3, h4, h5, h6 {
color: #C70036;
}
@media (max-width: 5in), (max-device-width: 5in){
dl, dt, dd {
margin-left: 0.25em;
}
ul, ol {
padding-left: 1.5em;
}
}
/* for first page */
.book > .titlepage h1.title {
text-align: center;
}
.titlepage h1.title {
text-align: left;
}
.authorgroup div {
text-align: center;
}
/* for table of contents */
@media (max-width: 5in), (max-device-width: 5in){
.toc dl, .toc dt, .toc dd {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
}
/* table in content */
.informaltable table {
border: 1px solid #AAAAAA;
}
.informaltable table th {
border-width: 0;
background-color: #C70036;
}
.informaltable table td {
border-width: 0;
}
.informaltable tbody tr:nth-child(even) {
background-color:#DDDDDD;
}
.informaltable tbody tr:hover {
background-color:#666666;
color: #FFFFFF;
}
/* Terminal examples */
pre.screen {
-moz-tab-size: 4;
background-color: #F5F5F5;
border-radius: 11px 11px 11px 11px;
border-style: none;
box-shadow: 0 2px 5px #AAAAAA inset;
color: #000000;
display: block;
font-family: "liberation mono","bitstream vera mono","dejavu mono",monospace;
font-size: 0.9em;
margin-bottom: 1em;
padding: 0.5em 1em;
page-break-inside: avoid;
white-space: pre-wrap;
word-wrap: break-word;
}
/* Navigation elements */
.navheader a, .navfooter a {
opacity: 0.50;
transition: opacity 0.15s ease-in-out;
}
.navheader a:hover, .navfooter a:hover {
opacity: 1;
}
.navheader, .navfooter {
background-image: url('images/draft.png');
background-repeat: no-repeat;
background-position: top left;
}
.navheader > table {
background-image: url('images/draft.png');
}
.navfooter > table {
background-image: url('images/draft.png');
}
@media (max-width: 5in), (max-device-width: 5in){
.navfooter > table {
font-size: 0;
}
}
/* Infos blocks */
.important, .caution, .note {
margin-left: 2em;
margin-right: 2em;
}
@media (max-width: 5in), (max-device-width: 5in){
.important, .caution, .note {
margin-left: 0.5em;
margin-right: 0.5em;
}
}
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:import href="/usr/share/publican/xsl/epub.xsl" />
<xsl:import href="html-common.xsl" />
</xsl:stylesheet>
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
<xsl:param name="ignore.image.scaling">1</xsl:param>
<xsl:param name="generate.consistent.ids" select="1"></xsl:param>
<!-- Add support for <ulink type="block" … /> -->
<xsl:template match="ulink">
<xsl:choose>
<xsl:when test="@type='block'">
<div class="url">
<xsl:text>→ </xsl:text>
<xsl:apply-imports />
</div>
</xsl:when>
<xsl:otherwise>
<xsl:apply-imports />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Misc publican fixups -->
<!-- Reinstate the docbook-xsl implementation of anchor -->
<xsl:template name="anchor">
<xsl:param name="node" select="."/>
<xsl:param name="conditional" select="1"/>
<xsl:variable name="id">
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="$node"/>
</xsl:call-template>
</xsl:variable>
<xsl:if test="not($node[parent::blockquote])">
<xsl:if test="$conditional = 0 or $node/@id or $node/@xml:id">
<a id="{$id}"/>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="./l10n-ja-JP.xml"/>
</l:i18n>
</xsl:stylesheet>
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
<xsl:import href="/usr/share/publican/xsl/html-single.xsl" />
<xsl:import href="html-common.xsl" />
</xsl:stylesheet>
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version='1.0'>
<xsl:import href="/usr/share/publican/xsl/html.xsl" />
<xsl:import href="html-common.xsl" />
</xsl:stylesheet>
<?xml version="1.0" encoding="utf-8"?>
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="ja" english-language-name="Japanese">
<!--
References:
* /usr/share/xml/docbook/stylesheet/docbook-xsl/common/ja.xml
* http://www.sagehill.net/docbookxsl/CustomGentext.html
* http://www.sagehill.net/docbookxsl/FormatPrintIndex.html
-->
<l:gentext key="Index" text="索引"/>
<l:gentext key="keywordset" text="キーワード"/>
<l:gentext key="minitoc" text="目次"/>
<l:context name="authorgroup">
<l:template name="sep" text="、"/>
<l:template name="sep2" text="、"/>
<l:template name="seplast" text="、"/>
</l:context>
<l:context name="title">
<l:template name="appendix" text="付録 %n「%t」"/>
<l:template name="chapter" text="第 %n 章「%t」"/>
<l:template name="example" text="例 %n %t"/>
<l:template name="figure" text="図 %n %t"/>
<l:template name="table" text="表 %n %t"/>
</l:context>
<!--
<l:context name="title-unnumbered">
<l:template name="appendix" text="「%t」"/>
<l:template name="chapter" text="「%t」"/>
<l:template name="section" text="「%t」"/>
</l:context>
-->
<l:context name="title-numbered">
<l:template name="appendix" text="付録 %n %t"/>
<l:template name="chapter" text="第 %n 章 %t"/>
<l:template name="section" text="%n. %t"/>
</l:context>
<!--
<l:context name="subtitle">
<l:template name="appendix" text="%s"/>
<l:template name="chapter" text="%s"/>
<l:template name="section" text="%s"/>
</l:context>
-->
<l:context name="xref">
<!--
<l:template name="appendix" text="%t"/>
<l:template name="chapter" text="%t"/>
<l:template name="section" text="「%t」"/>
-->
<l:template name="page.citation" text="%p ページ"/>
<l:template name="sidebar" text="「%t」"/>
</l:context>
<l:context name="xref-number">
<l:template name="appendix" text="付録 %n"/>
<l:template name="chapter" text="第 %n 章"/>
<l:template name="example" text="例 %n"/>
<l:template name="figure" text="図 %n"/>
<l:template name="section" text="第 %n 節"/>
<l:template name="table" text="表 %n"/>
</l:context>
<l:context name="xref-number-and-title">
<l:template name="appendix" text="付録 %n「%t」"/>
<l:template name="chapter" text="第 %n 章「%t」"/>
<l:template name="example" text="例 %n「%t」"/>
<l:template name="figure" text="図 %n「%t」"/>
<l:template name="section" text="第 %n 節「%t」"/>
<l:template name="table" text="表 %n「%t」"/>
</l:context>
<l:context name="styles">
<l:template name="person-name" text="first-last"/>
</l:context>
</l:l10n>
# Config::Simple 4.59
# Tue Apr 11 23:52:20 2017
brand: common
brand: debian
dtdver: "4.5"
xml_lang: "en-US"
type: Book
......
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