Return-Path: X-Original-To: apmail-httpd-docs-archive@www.apache.org Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C828D9613 for ; Fri, 9 Mar 2012 15:35:44 +0000 (UTC) Received: (qmail 67032 invoked by uid 500); 9 Mar 2012 15:35:44 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 66995 invoked by uid 500); 9 Mar 2012 15:35:44 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 66986 invoked by uid 99); 9 Mar 2012 15:35:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 15:35:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 15:35:36 +0000 Received: by ghrr14 with SMTP id r14so1103787ghr.18 for ; Fri, 09 Mar 2012 07:35:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer :x-gm-message-state; bh=a/DYt0pj0/m2CEu7hw6qZgHVmpb0m9gyIXL8MiMIe2A=; b=RTDYujnL56NgSBa2LEmBHDA6Les0s/AzOzq3BlvJddM+QiGndptctj9Qq4XpdPItcm L+WGUqL4on6YjmIweSvy1i7YpFtbgsBRgtkeb1hBbNPtUCTCnV87eMoqs/hkx+98eRFu BeQi08+R6E9w+vJ1aXxQp8e93wgB4TnPycpY0yN3VGRBDOeTyALn0UgMoS5Kog9+5oHu VVI5APBiYSXqVxiF5lvAdPigRzD494z/vi8GscJ0wuO4Rw79N0C0uF9jgJHJhNWmxtcZ e6jpR83qNXflwcmwMB2AGInzobMDRApaPNIe2GogvmvgDHysJYDVBir702J3/F65TJ6f EScA== Received: by 10.50.207.72 with SMTP id lu8mr3972788igc.0.1331307314965; Fri, 09 Mar 2012 07:35:14 -0800 (PST) Received: from [192.168.200.198] (74-131-224-250.dhcp.insightbb.com. [74.131.224.250]) by mx.google.com with ESMTPS id vb4sm2184708igc.10.2012.03.09.07.35.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 09 Mar 2012 07:35:14 -0800 (PST) From: Rich Bowen Content-Type: multipart/alternative; boundary="Apple-Mail=_DE463FA9-A2F3-4180-AD2A-34AFD5E4B24A" Subject: Error documentation, more thoughts Date: Fri, 9 Mar 2012 10:35:12 -0500 Message-Id: <12095CB0-6076-4FD6-95D4-286CEA2DC9F9@rcbowen.com> To: docs@httpd.apache.org Mime-Version: 1.0 (Apple Message framework v1257) X-Mailer: Apple Mail (2.1257) X-Gm-Message-State: ALoCoQmAIpPx19BM7UC9kmw22G45sI7S8qc59xej/3xVl/vBVKwtDWsPy0BXWAgb7qzpnVDQSJE0 X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_DE463FA9-A2F3-4180-AD2A-34AFD5E4B24A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I wanted to share this transcript from IRC, just to see what people = think of the idea. [10:15] It would be nice (this is just wishful thinking) if = when a AHxxxx code is created, there was a piece of documentation that = was created along with it listing a more detailed explanation of what = the message is supposed to mean, which could then be incorportaed into = the documentation [10:15] Imagine, for example, that each module had an = errors.xml file that lived in the same directory. [10:15] mod_rewrite_errors.xml or whatever. [10:16] And that was parsed in some way to create = documentation. [10:16] Hmm. This is actually not too far-fetched. [10:16] Even if the docs team maintained those files, it = would be a work-saver. [10:17] Then we'd have a script that went through and = generated docs XML from the error.xml files, and then that would in turn = be turned into an error index list, and a per-module error documentation = file. [10:17] DrBacchus, that would be awesome [10:17] What do you think of that? [10:17] Is this at all feasible? [10:17] It would also greatly encourage the module authors = to create docs, because it would be right there when they're working = onit. [10:18] and if we make it easier, it happens more often. [10:18] yeah, now the documentation people are left to = interpret the error conditions, when the author probably knows best [10:18] So, let's pretend we're going to do this - what = would go in that file? [10:19] An error tag, the message itself, a more detailed = explanation, and optionally a URL. [10:19] Thoughts? [10:19] I should take this to the list. But it would be = interesting to hear some feedback of why this won't work before I put it = out there. [10:19] loglevel, errorcode, errormessage, variables, (optional = modulename), author comments [10:19] And presumably we could auto-generate the first run = of that. [10:20] Or even have a script that updates an existing file = non-destructively, that thye could run after making edits. [10:20] the module name is in the name of the file. [10:20] The file is named mod_foo_errors.xml [10:20] Because there may be several in a given source = directory. [10:20] not all errors are in a module though, but i guess = core_errors.xml would work too [10:21] Yes. Not sure where that file is located, though. [10:21] = $SVN/httpd-trunk/modules/mappers/mod_rewrite_errors.xml [10:23] perhaps an index xlink with paths to the other xmls and = a description tag as an abstraction from the path/filename [10:23] as long as it can be updated without manual = intervention :) [10:32] I want it to be as simple as possible. -- Rich Bowen rbowen@rcbowen.com :: @rbowen rbowen@apache.org --Apple-Mail=_DE463FA9-A2F3-4180-AD2A-34AFD5E4B24A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = wanted to share this transcript from IRC, just to see what people think = of the = idea.



[10:15] =  <DrBacchus> It would be nice (this is just wishful thinking) = if when a AHxxxx code is created, there was a piece of documentation = that was created along with it listing a more detailed explanation of = what the message is supposed to mean, which could then be incorportaed = into the documentation
[10:15]  <DrBacchus> = Imagine, for example, that each module had an errors.xml file that lived = in the same directory.
[10:15]  <DrBacchus> = mod_rewrite_errors.xml or whatever.
[10:16] =  <DrBacchus> And that was parsed in some way to create = documentation.
[10:16]  <DrBacchus> Hmm. This is = actually not too far-fetched.
[10:16]  <DrBacchus> = Even if the docs team maintained those files, it would be a = work-saver.
[10:17]  <DrBacchus> Then we'd have a = script that went through and generated docs XML from the error.xml = files, and then that would in turn be turned into an error index list, = and a per-module error documentation file.
[10:17] =  <Humbedooh> DrBacchus, that would be = awesome
[10:17]  <DrBacchus> What do you think of = that?
[10:17]  <DrBacchus> Is this at all = feasible?
[10:17]  <DrBacchus> It would also = greatly encourage the module authors to create docs, because it would be = right there when they're working onit.
[10:18] =  <DrBacchus> and if we make it easier, it happens more = often.
[10:18]  <Sling> yeah, now the documentation = people are left to interpret the error conditions, when the author = probably knows best
[10:18]  <DrBacchus> So, let's = pretend we're going to do this - what would go in that = file?
[10:19]  <DrBacchus> An error tag, the = message itself, a more detailed explanation, and optionally a = URL.
[10:19]  <DrBacchus> = Thoughts?
[10:19]  <DrBacchus> I should take this = to the list. But it would be interesting to hear some feedback of why = this won't work before I put it out there.
[10:19] =  <Sling> loglevel, errorcode, errormessage, variables, = (optional modulename), author comments
[10:19] =  <DrBacchus> And presumably we could auto-generate the first = run of that.
[10:20]  <DrBacchus> Or even have a = script that updates an existing file non-destructively, that thye could = run after making edits.
[10:20]  <DrBacchus> the = module name is in the name of the file.
[10:20] =  <DrBacchus> The file is named = mod_foo_errors.xml
[10:20]  <DrBacchus> Because = there may be several in a given source directory.
[10:20] =  <Sling> not all errors are in a module though, but i guess = core_errors.xml would work too
[10:21]  <DrBacchus> = Yes. Not sure where that file is located, though.
[10:21] =  <DrBacchus> =  $SVN/httpd-trunk/modules/mappers/mod_rewrite_errors.xml
[1= 0:23]  <Sling> perhaps an index xlink with paths to the other = xmls and a description tag as an abstraction from the = path/filename
[10:23]  <Sling> as long as it can be = updated without manual intervention :)
[10:32] =  <DrBacchus> I want it to be as simple as = possible.


--
Rich Bowen
rbowen@rcbowen.com :: = @rbowen
rbowen@apache.org





= --Apple-Mail=_DE463FA9-A2F3-4180-AD2A-34AFD5E4B24A--