Re: FAQ in the docs-proyect

2016-04-25 Thread Luis Gil
Actually i was thinking about some filtering, or maybe add some if needed,
but OFC i will not do work that it will be in vain...


On Mon, 25 Apr 2016 at 13:47 Rich Bowen  wrote:

> History: we dropped the FAQ page because it was so grossly out of date
> that it wasn't readily salvageable. I don't object to Frequently Asked
> Questions pages if they are indeed frequently asked questions. What we
> had were not, and many of the answers were bad.
>
> I haven't looked at the one in the Wiki for a while. I don't think it's
> likely that we want to copy it wholesale, but, perhaps, use a little
> more filtering.
>
> On 04/25/2016 07:28 AM, Luis Gil wrote:
> > Hello:
> > I have seen the FAQ page is not any more in the repo (now is in the
> > wiki), so i wonder if i can copy it from the Wiki and make the
> > translation of it as index.xml.es  file under the
> > faq/ dir.
> > Is it possible?.
> > Regards.
> >
> > --
> >
> > Luis J.G
> >
>
>
> --
> Rich Bowen - rbo...@rcbowen.com - @rbowen
> http://apachecon.com/ - @apachecon
>
> --

Luis J.G


[Bug 59325] wiki page with big warning missing

2016-04-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=59325

--- Comment #2 from thumbs  ---
This is mostly not relevant to the purpose of that recipe.

htaccess files have nothing to do with security, nor authentication. They are
merely containers that can be used provided one cannot edit your config files
as the root user.

Additionally, in order to complete that recipe, you *will* require root access,
or whatever admin user your initial httpd process is running at.

Proper authn and authz can be performed in a  block, if needed, as it
is the case with any proxy.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org



Re: svn commit: r1734349 - in /httpd/httpd/trunk/docs/manual/howto: access.html.en access.xml.fr access.xml.meta

2016-04-25 Thread Christophe JAILLET

Le 17/03/2016 à 21:35, André Malo a écrit :

* André Malo wrote:


* Marion & Christophe JAILLET wrote:

Le 10/03/2016 06:28, jaillet...@apache.org a écrit :
Should prettyprint be tweaked to handle it? (I've seen that the version
we use is not the same as the latest available at
https://github.com/google/code-prettify)
I quick test with the latest version, without backporting modification
applied to the original prettify.js file, looks promising.
So IMHO, it is either a bug now fixed in prettify.js itself or an issue
introduced when it has been adapted for our own use.

I leave my change in trunk
http://httpd.apache.org/docs/trunk/en/howto/access.html) but revert it
for now in 2.4.x.

I'll give it a closer look later.

too close... ouch.

apparently there's no documentation how the prettify.js file was generated.
Need to figure that out before I can replace it. If someone has more
experience here, please speak up :-) Otherwise I'll dig through there build
system as soon as I get around to it :/

(also, loading from an external server as it's "recommended" by google is
not an option)

Cheers,


What about the attached patch?

The main idea is that we should try to fix leading/ending 
newlines/spaces *only* at the beginning and at the end of a node to 
pretiffy.


Actually, we perform the clean-up for *each underlying node*, if any.
In the example below, the use of  within the block generates some 
child nodes. This why the strings get concatenated.

Without these , the output looks correct.


The attached patch:
   - removes the leading NL/spaces for the *first* node only (see the 
new init var)
   - improve the existing "replace(/\n$/..." and turn it into 
"replace(/\s+$/..." to handle all ending NL/spaces



On HTML code such as:
--






 Require host address
sdfs


   Require ip ip.address
ssfsf



--
the output is as expected

That is to say:
   - leading NL removed
   - leading spaces removed
   - NL within the block kept
   - leading spaces within the block kept
   - ending NL removed
   - ending spaces removed



Note that doc that already add an arbitrary  to keep the 
erroneously removed NL, should now be fixed. Otherwise a new NL will be 
generated (the NL in the  block + the )
I don't remember where, but I've already seen such a construction in the 
doc.


CJ
Index: style/scripts/prettify.js
===
--- style/scripts/prettify.js   (révision 1740877)
+++ style/scripts/prettify.js   (copie de travail)
@@ -533,6 +533,7 @@
 var length = 0;
 var spans = [];
 var k = 0;
+var init = 1;
   
 function walk(node) {
   switch (node.nodeType) {
@@ -554,10 +555,11 @@
 if (!isPreformatted) {
   text = text.replace(/[ \t\r\n]+/g, ' ');
 } else {
+  if (init == 1) {
+text=text.replace(/^\s+/,'');  // Remove leading newlines and 
spaces
+init = 0;  // (but only for the first node)
+  }
   text = text.replace(/\r\n?/g, '\n');  // Normalize newlines.
-  text = text.replace(/^(\r?\n\s*)+/g, '');  // Remove leading 
newlines
-  text = text.replace(/^\s*/g, '');  // Remove leading spaces due 
to indented formatting
-  text = text.replace(/(\r?\n\s*)+$/g, '');  // Remove ending 
newlines
   
 }
 // TODO: handle tabs here?
@@ -572,8 +574,9 @@
   
 walk(node);
   
+// Remove ending newlines and spaces
 return {
-  sourceCode: chunks.join('').replace(/\n$/, ''),
+  sourceCode: chunks.join('').replace(/\s+$/, ''),
   spans: spans
 };
   }


-
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Re: Proposal: add a permanent "Bugfix checklist" section to all manual pages

2016-04-25 Thread Christophe JAILLET

Le 24/04/2016 à 23:18, Luca Toscano a écrit :


New version just committed, examples:

https://httpd.apache.org/docs/trunk/mod/mod_lua.html
https://httpd.apache.org/docs/trunk/mod/event.html

Luca



You could help even more bug-report with something like:
https://bz.apache.org/bugzilla/enter_bug.cgi?component=mod_lua=Apache%20httpd-2
 ^^

with the same trick already used for bugzilla filtering.


Also, I wouldn't add ":" at the end of "Bugfix checklist:"


CJ



Re: Proposal: add a permanent "Bugfix checklist" section to all manual pages

2016-04-25 Thread Rich Bowen
This is great. And it'll have the side-effect that it's likely to help
us identify issues that have been open for ages and are either already
addressed, or could be addressed.

Thanks,

On 04/24/2016 05:18 PM, Luca Toscano wrote:
> 
> 
> New version just committed, examples:
> 
> https://httpd.apache.org/docs/trunk/mod/mod_lua.html
> https://httpd.apache.org/docs/trunk/mod/event.html
> 


-- 
Rich Bowen - rbo...@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon



signature.asc
Description: OpenPGP digital signature


Re: FAQ in the docs-proyect

2016-04-25 Thread Rich Bowen
History: we dropped the FAQ page because it was so grossly out of date
that it wasn't readily salvageable. I don't object to Frequently Asked
Questions pages if they are indeed frequently asked questions. What we
had were not, and many of the answers were bad.

I haven't looked at the one in the Wiki for a while. I don't think it's
likely that we want to copy it wholesale, but, perhaps, use a little
more filtering.

On 04/25/2016 07:28 AM, Luis Gil wrote:
> Hello:
> I have seen the FAQ page is not any more in the repo (now is in the
> wiki), so i wonder if i can copy it from the Wiki and make the
> translation of it as index.xml.es  file under the
> faq/ dir.
> Is it possible?.
> Regards.
> 
> -- 
> 
> Luis J.G
> 


-- 
Rich Bowen - rbo...@rcbowen.com - @rbowen
http://apachecon.com/ - @apachecon



signature.asc
Description: OpenPGP digital signature


FAQ in the docs-proyect

2016-04-25 Thread Luis Gil
Hello:
I have seen the FAQ page is not any more in the repo (now is in the wiki),
so i wonder if i can copy it from the Wiki and make the translation of it
as index.xml.es file under the faq/ dir.
Is it possible?.
Regards.

-- 

Luis J.G


[Bug 59341] Slight modification on the Docformat page as was sayd in the TODO file of the svn

2016-04-25 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=59341

Luigy  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Luigy  ---
Modifications done and commited.

-- 
You are receiving this mail because:
You are the assignee for the bug.

-
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org