This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, wwwdocs] Fix PR 50642
- From: Shakthi Kannan <skannan at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 May 2013 06:30:06 -0400 (EDT)
- Subject: Re: [PATCH, wwwdocs] Fix PR 50642
- References: <1157238463 dot 4081289 dot 1367314214484 dot JavaMail dot root at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1304301358070 dot 21969 at digraph dot polyomino dot org dot uk> <689705724 dot 4225865 dot 1367333657286 dot JavaMail dot root at redhat dot com> <Pine dot LNX dot 4 dot 64 dot 1304301632060 dot 21969 at digraph dot polyomino dot org dot uk>
- Reply-to: Shakthi Kannan <skannan at redhat dot com>
Hi,
I am re-submitting the patch to use html.css from the update_web_docs_svn script present in the maintainer-scripts folder. The smallexample attributes are defined to use a medium font size with a light blue background for readability and clarity.
2013-05-06 Shakthi Kannan <skannan@redhat.com>
PR wwwdocs/50642
* maintainer-scripts/update_web_docs_svn: Use --css-include with makeinfo.
* gcc/doc/include/html.css: New CSS file for HTML docs.
---
gcc/doc/include/html.css | 6 ++++++
maintainer-scripts/update_web_docs_svn | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
create mode 100644 gcc/doc/include/html.css
diff --git a/gcc/doc/include/html.css b/gcc/doc/include/html.css
new file mode 100644
index 0000000..6cc0284
--- /dev/null
+++ b/gcc/doc/include/html.css
@@ -0,0 +1,6 @@
+pre.smallexample {
+ font-family: sans-serif;
+ font-size: medium;
+ padding: 4px;
+ background: #f2f2f9
+}
\ No newline at end of file
diff --git a/maintainer-scripts/update_web_docs_svn b/maintainer-scripts/update_web_docs_svn
index cfc33c4..2cea078 100755
--- a/maintainer-scripts/update_web_docs_svn
+++ b/maintainer-scripts/update_web_docs_svn
@@ -36,6 +36,8 @@ WWWBASE=/www/gcc/htdocs
WWWBASE_PREFORMATTED=/www/gcc/htdocs-preformatted
WWWPREPROCESS='/www/gcc/bin/preprocess -r'
+HTMLCSS=gcc/doc/include/html.css
+
# Process options -rrelease and -ddirectory
RELEASE=""
SUBDIR=""
@@ -164,7 +166,7 @@ for file in $MANUALS; do
if [ "$file" = "gnat_ugn_unw" ]; then
includes="$includes -I gcc/gcc/ada"
fi
- makeinfo --html $includes -o ${file} ${filename}
+ makeinfo --css-include=../$HTMLCSS --html $includes -o ${file} ${filename}
tar cf ${file}-html.tar ${file}/*.html
texi2dvi $includes -o ${file}.dvi ${filename} </dev/null >/dev/null && dvips -o ${file}.ps ${file}.dvi
texi2pdf $includes -o ${file}.pdf ${filename} </dev/null
--
1.7.11.7