Done with PhD for now, patch for php.net CSS
| From: | Alexey Borzov | Date: | Tue, 07 Feb 2012 13:36:37 +0000 |
| Subject: | Done with PhD for now, patch for php.net CSS | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969383621@lists.php.net to get a copy of this message | ||
Hi,
I've done all the changes to PhD packages I intended, documentation generated by
PhD_PEAR is quite a bit less broken now and almost valid HTML5. Please review
the changes and let me know if I did break something after all. If I didn't,
please do the releases.
As promised, here is a patch for CSS used on php.net (current version and
prototype). There were only a few style affected, fortunately.
On test suite: tests living in tests/php now pass (I've updated the expected
output), those in tests/xhtml aren't easy to fix as they reference some files
missing in SVN:
require "include/PhDReader.class.php";
require "include/PhDFormat.class.php";
require "formats/xhtml.php";
Index: styles/doc.css =================================================================== --- styles/doc.css (revision 323112) +++ styles/doc.css (working copy) @@ -43,7 +43,7 @@ .docs p { margin: 0.7em 0; } -.docs .methodname b { +.docs .methodname b, .docs .methodname strong { color: #000; } @@ -52,7 +52,7 @@ font-weight: bold; } -.docs i .parameter { +.docs i .parameter, .docs em .parameter { font-style: normal; } @@ -88,7 +88,9 @@ margin-right: 0.8em; } .docs div.tip b.tip, -.docs div.warning b.warning { +.docs div.warning b.warning, +.docs div.tip strong.tip, +.docs div.warning strong.warning { font-size: 1.7em; } @@ -102,7 +104,7 @@ padding-left: 60px; } -.docs div.caution b.caution { +.docs div.caution b.caution, .docs div.caution strong.caution { float: left; margin-right: 0.8em; } Index: styles/site.css =================================================================== --- styles/site.css (revision 323112) +++ styles/site.css (working copy) @@ -12,7 +12,7 @@ code, pre, tt { font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", Monaco, "Courier New", Courier, monospace; } -tt.parameter { +tt.parameter, code.parameter { font-style: italic; } pre { @@ -976,7 +976,7 @@ border-bottom: 1px solid #CCC; } -div.refsect1 span.term b tt { +div.refsect1 span.term b tt, div.refsect1 span.term strong code { font-size: 0.9em; } @@ -1006,15 +1006,17 @@ color: rgb(0, 119, 0); } div.classsynopsis b.classname, +div.classsynopsis strong.classname, div.classsynopsis span.interfacename, div.classsynopsis div.fieldsynopsis var, div.classsynopsis div.classsynopsisinfo var, div.classsynopsis span.methodname, div.classsynopsis tt.parameter, +div.classsynopsis code.parameter, div.classsynopsis span.modifier_role { color: rgb(0, 0, 187); } -div.classsynopsis b.interfacename { +div.classsynopsis b.interfacename, div.classsynopsis strong.interfacename { color: #0000BB; font-weight: normal; }
Index: styles/doc.css =================================================================== --- styles/doc.css (revision 323112) +++ styles/doc.css (working copy) @@ -43,7 +43,7 @@ .docs p { margin: 0.7em 0; } -.docs .methodname b { +.docs .methodname b, .docs .methodname strong { color: #000; } @@ -52,7 +52,7 @@ font-weight: bold; } -.docs i .parameter { +.docs i .parameter, .docs em .parameter { font-style: normal; } @@ -88,7 +88,9 @@ margin-right: 0.8em; } .docs div.tip b.tip, -.docs div.warning b.warning { +.docs div.warning b.warning, +.docs div.tip strong.tip, +.docs div.warning strong.warning { font-size: 1.7em; } @@ -102,7 +104,7 @@ padding-left: 60px; } -.docs div.caution b.caution { +.docs div.caution b.caution, .docs div.caution strong.caution { float: left; margin-right: 0.8em; } Index: styles/site.css =================================================================== --- styles/site.css (revision 323112) +++ styles/site.css (working copy) @@ -12,7 +12,7 @@ code, pre, tt { font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", Monaco, "Courier New", Courier, monospace; } -tt.parameter { +tt.parameter, code.parameter { font-style: italic; } pre { @@ -976,7 +976,7 @@ border-bottom: 1px solid #CCC; } -div.refsect1 span.term b tt { +div.refsect1 span.term b tt, div.refsect1 span.term strong code { font-size: 0.9em; } @@ -1006,15 +1006,17 @@ color: rgb(0, 119, 0); } div.classsynopsis b.classname, +div.classsynopsis strong.classname, div.classsynopsis span.interfacename, div.classsynopsis div.fieldsynopsis var, div.classsynopsis div.classsynopsisinfo var, div.classsynopsis span.methodname, div.classsynopsis tt.parameter, +div.classsynopsis code.parameter, div.classsynopsis span.modifier_role { color: rgb(0, 0, 187); } -div.classsynopsis b.interfacename { +div.classsynopsis b.interfacename, div.classsynopsis strong.interfacename { color: #0000BB; font-weight: normal; }