Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
1076d381
Commit
1076d381
authored
Aug 15, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #209 from albert-github/feature/html_extra_stylesheets
Support multiple extra HTML stylesheets.
parents
7d9d4320
595943c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
27 deletions
+45
-27
customize.doc
doc/customize.doc
+2
-2
config.xml
src/config.xml
+6
-4
doxygen.cpp
src/doxygen.cpp
+14
-12
htmlgen.cpp
src/htmlgen.cpp
+23
-9
No files found.
doc/customize.doc
View file @
1076d381
...
...
@@ -110,8 +110,8 @@ This will create 3 files:
link to www.doxygen.org and the body and html end tags.
- customdoxygen.css is the default cascading style sheet
used by doxygen. It is recommended only to look into this file and overrule
some settings you like by putting them in a separate stylesheet and
referencing th
at extra file
some settings you like by putting them in a separate stylesheet
s
and
referencing th
ose extra files
via \ref cfg_html_extra_stylesheet "HTML_EXTRA_STYLESHEET".
You should edit these files and then reference them from the config file.
...
...
src/config.xml
View file @
1076d381
...
...
@@ -1780,16 +1780,18 @@ doxygen -w html new_header.html new_footer.html new_stylesheet.css YourConfigFil
]]>
</docs>
</option>
<option
type=
'
string
'
id=
'HTML_EXTRA_STYLESHEET'
format=
'file'
defval=
''
depends=
'GENERATE_HTML'
>
<option
type=
'
list
'
id=
'HTML_EXTRA_STYLESHEET'
format=
'file'
defval=
''
depends=
'GENERATE_HTML'
>
<docs>
<![CDATA[
The \c HTML_EXTRA_STYLESHEET tag can be used to specify a
n a
dditional
user-defined cascading style sheet
that is
included after the standard
The \c HTML_EXTRA_STYLESHEET tag can be used to specify additional
user-defined cascading style sheet
s that are
included after the standard
style sheets created by doxygen. Using this option one can overrule
certain style aspects. This is preferred over using \ref cfg_html_stylesheet "HTML_STYLESHEET"
since it does not replace the standard style sheet and is therefor more
robust against future updates. Doxygen will copy the style sheet file to
robust against future updates. Doxygen will copy the style sheet file
s
to
the output directory.
\note The order of the extra stylesheet files is of importance (e.g. the last
stylesheet in the list overrules the setting of the previous ones in the list).
]]>
</docs>
<docs
doxywizard=
'0'
doxyfile=
'0'
>
...
...
src/doxygen.cpp
View file @
1076d381
...
...
@@ -9151,22 +9151,24 @@ static void copyStyleSheet()
copyFile
(
htmlStyleSheet
,
destFileName
);
}
}
Q
CString
&
htmlExtraStyleSheet
=
Config_getString
(
"HTML_EXTRA_STYLESHEET"
);
if
(
!
htmlExtraStyleSheet
.
isEmpty
()
)
Q
StrList
htmlExtraStyleSheet
=
Config_getList
(
"HTML_EXTRA_STYLESHEET"
);
for
(
uint
i
=
0
;
i
<
htmlExtraStyleSheet
.
count
();
++
i
)
{
QFileInfo
fi
(
htmlExtraStyleSheet
);
if
(
!
fi
.
exists
())
{
err
(
"Style sheet '%s' specified by HTML_EXTRA_STYLESHEET does not exist!
\n
"
,
htmlExtraStyleSheet
.
data
());
htmlExtraStyleSheet
.
resize
(
0
);
// revert to the default
}
else
QCString
fileName
(
htmlExtraStyleSheet
.
at
(
i
));
if
(
!
fileName
.
isEmpty
())
{
QCString
destFileName
=
Config_getString
(
"HTML_OUTPUT"
)
+
"/"
+
fi
.
fileName
().
data
();
copyFile
(
htmlExtraStyleSheet
,
destFileName
);
QFileInfo
fi
(
fileName
);
if
(
!
fi
.
exists
())
{
err
(
"Style sheet '%s' specified by HTML_EXTRA_STYLESHEET does not exist!
\n
"
,
fileName
.
data
());
}
else
{
QCString
destFileName
=
Config_getString
(
"HTML_OUTPUT"
)
+
"/"
+
fi
.
fileName
().
data
();
copyFile
(
fileName
,
destFileName
);
}
}
}
}
static
void
copyLogo
()
...
...
src/htmlgen.cpp
View file @
1076d381
...
...
@@ -1061,7 +1061,7 @@ static QCString substituteHtmlKeywords(const QCString &s,
{
// Build CSS/Javascript tags depending on treeview, search engine settings
QCString
cssFile
;
Q
CString
extraCssFile
;
Q
StrList
extraCssFile
;
QCString
generatedBy
;
QCString
treeViewCssJs
;
QCString
searchCssJs
;
...
...
@@ -1100,10 +1100,20 @@ static QCString substituteHtmlKeywords(const QCString &s,
cssFile
=
"doxygen.css"
;
}
}
extraCssFile
=
Config_getString
(
"HTML_EXTRA_STYLESHEET"
);
if
(
!
extraCssFile
.
isEmpty
())
extraCssText
=
""
;
extraCssFile
=
Config_getList
(
"HTML_EXTRA_STYLESHEET"
);
for
(
uint
i
=
0
;
i
<
extraCssFile
.
count
();
++
i
)
{
extraCssText
=
"<link href=
\"
$relpath^"
+
stripPath
(
extraCssFile
)
+
"
\"
rel=
\"
stylesheet
\"
type=
\"
text/css
\"
/>
\n
"
;
QCString
fileName
(
extraCssFile
.
at
(
i
));
if
(
!
fileName
.
isEmpty
())
{
QFileInfo
fi
(
fileName
);
if
(
fi
.
exists
())
{
extraCssText
+=
"<link href=
\"
$relpath^"
+
stripPath
(
fileName
)
+
"
\"
rel=
\"
stylesheet
\"
type=
\"
text/css
\"
/>
\n
"
;
}
}
}
if
(
timeStamp
)
...
...
@@ -1823,13 +1833,17 @@ void HtmlGenerator::writeStyleInfo(int part)
}
Doxygen
::
indexList
->
addStyleSheetFile
(
cssfi
.
fileName
().
utf8
());
}
static
Q
CString
extraCssFile
=
Config_getString
(
"HTML_EXTRA_STYLESHEET"
);
if
(
!
extraCssFile
.
isEmpty
()
)
static
Q
StrList
extraCssFile
=
Config_getList
(
"HTML_EXTRA_STYLESHEET"
);
for
(
uint
i
=
0
;
i
<
extraCssFile
.
count
();
++
i
)
{
Q
FileInfo
fi
(
extraCssFile
);
if
(
fi
.
exists
())
Q
CString
fileName
(
extraCssFile
.
at
(
i
)
);
if
(
!
fileName
.
isEmpty
())
{
Doxygen
::
indexList
->
addStyleSheetFile
(
fi
.
fileName
().
utf8
());
QFileInfo
fi
(
fileName
);
if
(
fi
.
exists
())
{
Doxygen
::
indexList
->
addStyleSheetFile
(
fi
.
fileName
().
utf8
());
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment