[PHP-DOC] Patch to PhD for PHPDOC CHM building to use new scheme.
Hi. I've built a CHM file using the new styling. It is a bit of a hack as rather than just a single CSS file, 3 are required and also an additional class attribute. The css class docs is not known in the CHM html files. I've set that on body class=docs and that seems to be good. It seems IE is making a right pig of the new styling at the moment, though in the CHM reader, things look quite good. From what I can see, alternate row colouring and last column styling is unsupported by IE in the current form (just using CSS). Richard. -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY Index: phpdotnet/phd/Package/PHP/CHM.php === --- phpdotnet/phd/Package/PHP/CHM.php (revision 307074) +++ phpdotnet/phd/Package/PHP/CHM.php (working copy) @@ -238,7 +238,12 @@ $this-hhcStream = fopen($this-chmdir . php_manual_{$lang}.hhc, w); $this-hhkStream = fopen($this-chmdir . php_manual_{$lang}.hhk, w); -file_put_contents($this-outputdir . style.css, $this-fetchStylesheet() . PHP_EOL . 'body { padding : 3px;}'); +file_put_contents($this-outputdir . style.css, + $this-fetchStylesheet('reset.css') . PHP_EOL . + $this-fetchStylesheet('theme.css') . PHP_EOL . + $this-fetchStylesheet('doc.css') . PHP_EOL . + 'body { padding : 3px;}' + ); self::headerChm(); break; @@ -391,11 +396,16 @@ public function header($id) { $header = parent::header($id); -// Add CSS link to head -$pattern = '/(.*)(\r|\n|\r\n|\n\r)(.*)\/head/'; -$replacement = '$1 link media=all rel=stylesheet type=text/css href=style.css/$2$3/head'; - -$header = preg_replace($pattern, $replacement, $header); + +$patterns = array( +'/(.*)(\r|\n|\r\n|\n\r)(.*)\/head/', // Add CSS link to head +'/(body)/', // Add 'docs' class to body. +); +$replacements = array( +'$1 link media=all rel=stylesheet type=text/css href=style.css/$2$3/head', +'$1 class=docs', +); +$header = preg_replace($patterns, $replacements, $header); return $header; } @@ -412,8 +422,11 @@ } protected function fetchStylesheet($name = null) { -$stylesheet = file_get_contents(http://www.php.net/styles/site.css;); -if ($stylesheet) return $stylesheet; +$stylesheet = file_get_contents(http://www.php.net/styles/; . (is_null($name) ? site.css : $name)); +if ($stylesheet) { +v(Loaded $name stylesheet., VERBOSE_MESSAGES); +return $stylesheet; +} else { v(Stylesheet not fetched. Uses default rendering style., E_USER_WARNING); return ;
[PHP-DOC] Re: Some suggestions to improve the Online Editor
Hi Yago, 2010/12/10 Yago Ferrer y...@php.net: Hi Yannick, [...] Button to maximize space. If you want to maxime the space to translate a file without the need to scroll from side to side all the time, you need to resize the left menu. The problem is: it doesn't go away all the way. You need to disable the Automatic Google translation tabl as well and if it is your first time is not easy to find where to uncheck the checkbox in the menu options. I suggest to have a button to hide/show the menu and the automatic translation (if it is enabled) to maxime the space to translate the file that you are working on. http://news.php.net/php.doc.web/1950 Here is what I have done to reflect what you want. https://edit.php.net is uptodate, so you can test it rigth now. Best, Yannick
[PHP-DOC] Documentation update
Hello everybody. Can anyone take a look at this update, please? It's the first time I've done a doc update and I'm not sure if I did it correctly. Thanks in advance! Monnier, Braian Iván. --- constants.xml 2010-03-29 03:55:15.0 -0400 +++ constants.xml.new 2010-12-27 08:49:05.0 -0500 @@ -5,8 +5,8 @@ extension.constants; para Here is a list of hashes which are currently supported by mhash. If a - hash is not listed here, but is listed by mhash as supported, you can - safely assume that this documentation is outdated. + hash is not listed here, but it is appointed through the mhash documentation + as supported, you can safely assume that this documentation is outdated. itemizedlist listitem simpara @@ -39,41 +39,91 @@ /simpara /listitem listitem -simpara - constantMHASH_HAVAL192/constant -/simpara - /listitem + simpara + constantMHASH_HAVAL192/constant + /simpara +/listitem + listitem + simpara + constantMHASH_HAVAL224/constant + /simpara +/listitem listitem simpara constantMHASH_HAVAL256/constant /simpara /listitem listitem -simpara - constantMHASH_MD4/constant -/simpara - /listitem + simpara + constantMHASH_MD2/constant + /simpara +/listitem + listitem + simpara + constantMHASH_MD4/constant + /simpara +/listitem listitem simpara constantMHASH_MD5/constant /simpara /listitem listitem -simpara - constantMHASH_RIPEMD160/constant -/simpara - /listitem + simpara + constantMHASH_RIPEMD128/constant + /simpara +/listitem + listitem + simpara + constantMHASH_RIPEMD256/constant + /simpara +/listitem + listitem + simpara + constantMHASH_RIPEMD320/constant + /simpara +/listitem listitem simpara constantMHASH_SHA1/constant /simpara /listitem listitem -simpara - constantMHASH_SHA256/constant -/simpara - /listitem - listitem + simpara + constantMHASH_SHA192/constant + /simpara +/listitem + listitem + simpara + constantMHASH_SHA224/constant + /simpara +/listitem + listitem + simpara + constantMHASH_SHA256/constant + /simpara +/listitem + listitem + simpara + constantMHASH_SHA384/constant + /simpara +/listitem + listitem + simpara + constantMHASH_SHA512/constant + /simpara +/listitem + listitem + simpara + constantMHASH_SNEFRU128/constant + /simpara +/listitem +listitem + simpara + constantMHASH_SNEFRU256/constant + /simpara +/listitem +listitem simpara constantMHASH_TIGER/constant /simpara @@ -84,10 +134,15 @@ /simpara /listitem listitem -simpara - constantMHASH_TIGER160/constant -/simpara - /listitem + simpara + constantMHASH_TIGER160/constant + /simpara +/listitem + listitem + simpara + constantMHASH_WHIRLPOOL/constant + /simpara +/listitem /itemizedlist /para /appendix @@ -111,4 +166,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --- +-- \ No newline at end of file
Re: [PHP-DOC] Documentation update
On Wed, Jan 5, 2011 at 17:09, Braian Iván Monnier x1v...@php.net wrote: Hello everybody. Can anyone take a look at this update, please? It's the first time I've done a doc update and I'm not sure if I did it correctly. Thanks in advance! Monnier, Braian Iván. The patch looks good, but I would reword this: but it is appointed through the mhash documentation To this: but it is listed in the mhash documentation More similar to the original, really, because if it is appointed through something, that would mean it was designated by the documentation, as if the documentation directed the code, and not the other way around. Other than that, looks like you're good to commit. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/
Re: [PHP-DOC] Documentation update
Thank you for you quick response, Daniel. I changed listed because I found it a little confusing and repeating, but now that you tell me that, I realize you are right. Thank you again! Monnier, Braian Iván. On 5 January 2011 19:22, Daniel Brown danbr...@php.net wrote: On Wed, Jan 5, 2011 at 17:09, Braian Iván Monnier x1v...@php.net wrote: Hello everybody. Can anyone take a look at this update, please? It's the first time I've done a doc update and I'm not sure if I did it correctly. Thanks in advance! Monnier, Braian Iván. The patch looks good, but I would reword this: but it is appointed through the mhash documentation To this: but it is listed in the mhash documentation More similar to the original, really, because if it is appointed through something, that would mean it was designated by the documentation, as if the documentation directed the code, and not the other way around. Other than that, looks like you're good to commit. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/
[PHP-DOC] Re: Some suggestions to improve the Online Editor
Nice, I can see the new icon. thanks! Did you disabled check build for regular users? I asked everyone to check the build after they commit files to make sure its not braking the build but they can't do it anymore. Can you please take a look? Thanks! On Wed, Jan 5, 2011 at 11:24 AM, Yannick Torrès yannick.tor...@gmail.comwrote: Hi Yago, 2010/12/10 Yago Ferrer y...@php.net: Hi Yannick, [...] Button to maximize space. If you want to maxime the space to translate a file without the need to scroll from side to side all the time, you need to resize the left menu. The problem is: it doesn't go away all the way. You need to disable the Automatic Google translation tabl as well and if it is your first time is not easy to find where to uncheck the checkbox in the menu options. I suggest to have a button to hide/show the menu and the automatic translation (if it is enabled) to maxime the space to translate the file that you are working on. http://news.php.net/php.doc.web/1950 Here is what I have done to reflect what you want. https://edit.php.net is uptodate, so you can test it rigth now. Best, Yannick -- Yago Ferrer
[PHP-DOC] Re: Some suggestions to improve the Online Editor
2011/1/6 Yago Ferrer y...@php.net: Nice, I can see the new icon. thanks! Is it what you have in mind in your original request ? Did you disabled check build for regular users? Yes, only for Global admin and Lang admin. I asked everyone to check the build after they commit files to make sure its not braking the build but they can't do it anymore. Can you please take a look? A start of a check build process is costly in resource server and we can't imagine that too much users start a such processus. Anymays, some emails informe the lang team that her documentation is broken, as soon as you can fix it before the friday's build. Thanks! On Wed, Jan 5, 2011 at 11:24 AM, Yannick Torrès yannick.tor...@gmail.com wrote: Hi Yago, 2010/12/10 Yago Ferrer y...@php.net: Hi Yannick, [...] Button to maximize space. If you want to maxime the space to translate a file without the need to scroll from side to side all the time, you need to resize the left menu. The problem is: it doesn't go away all the way. You need to disable the Automatic Google translation tabl as well and if it is your first time is not easy to find where to uncheck the checkbox in the menu options. I suggest to have a button to hide/show the menu and the automatic translation (if it is enabled) to maxime the space to translate the file that you are working on. http://news.php.net/php.doc.web/1950 Here is what I have done to reflect what you want. https://edit.php.net is uptodate, so you can test it rigth now. Best, Yannick -- Yago Ferrer
[PHP-DOC] This PHP Manual build is broken
The build of the PHP Manual is broken, so it does not validate or build. Please fix it! ;) Love, The docs.php.net server
Re: [PHP-DOC] This PHP Manual build is broken
On 6 January 2011 14:15, Apache nore...@php.net wrote: The build of the PHP Manual is broken, so it does not validate or build. Please fix it! ;) Fixed in r307153. Love, The docs.php.net server Hugs and kisses, Adam