Needs work
Project:
AsciiDoc filter
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
7 Oct 2011 at 14:25 UTC
Updated:
24 Oct 2011 at 01:03 UTC
Jump to comment: Most recent file
On the majority of shared hosting servers the Asciidoc package is not installed by default and most of the administrators don't want to install it for you. So asciidoc executable won't be available in the system PATH. Fortunately, Asciidoc can be accessed from a local folder.
I've modified the module by adding an administration interface where you can specify the location of the Asciidoc script. Optionally, you can also specify the location of the Pygments library which Asciidoc cam use for code highlighting.
I think the added flexibility will boost the adoption of this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 0002-task-1302566-Configurable-path-for-asciidoc-script.patch | 9.25 KB | kenjiru |
| #1 | 0001-task-1302566-Create-an-admin-interface.patch | 7.3 KB | kenjiru |
Comments
Comment #1
kenjiru commentedHere is the patch implementing the admin interface.
Comment #2
marvil07 commentedHey! nice to see another developer on this queue, and thanks for the patch :-)
I tried to cover all the comments I have for the patch, and I know this seems a little long but I hope you can share my vision about this feature.
$Id$ is not anymore needed since git migration ;-)
Please make a diff against current git branch, instead of last dev tarball so that information is not in the patch.
Same $Id$ comment.
Ok, makes sense to remove the hook_requirements if we are going to require manual configuration.
I would like to separate the asciidoc path configuration from otheradditions, so it would be great to have another issue for that explaining why it would be important to have highligh library(a link to somewhere exlaining highligh libraries would be just nice).
code style chnage is not really needed there.
I guess you are in good path to solve it(I did not really tried the patch yet). But I would really recommend to take a look to other related patch I have done some time ago for versioncontrol_git project #1001668-6: Configurable path for the git binary.
Comment #3
kenjiru commentedI've got your points and I agree. I will create another issue concerning the highlighting configuration with a link to a page explaining the highlighting options in asciidoc. But I will include the code in a single patch file, since it's already there.
Regarding the solution for the path, I now see that I have to escape the strings entered by the user.
I will send you another patch soon. Thank you for your review.
Comment #4
kenjiru commentedHere is the patch. It contains more functional changes than the first patch.
Comment #5
marvil07 commentedHey, sorry for the delay here.
I would say we are in the right direction, but there are some more comments I would like to address before committing it.
General comments
Specific comments
I do not really understand the formatting changes. IMHO they are not necessary.
Author != co-maintainer: Don't get me wrong, I'll be glad to make you co-maintainer, but not yet. On why, please take a look to http://drupal.org/node/363367
Again, highlight should be other issue, so not in this patch.
Please take a look to the
_versioncontrol_git_binary_check_path()function on the patch I mentioned earlier. I would like to have the same logic here, so we can report to the user what's the exact problem.unnecessary hunk
The reasoning behind the having a "Simple AsciiDoc filter" fileter instead of just an "AsciiDoc filter" filter, is to be explicit about the target of the filter, so, maybe we can implement other filters inside this module instead of having one big super-configurable filter.
So, I would say to stay with the explicit "simple" on the name and the callbacks.
BTW I'm OK with changing callback names to get rid of "_" prefix(IIRC it started because of the the existence of D7 hook_process).
New variables implies two things:
- Give a default on every variable_get.
- Remove those variables on uninstall.
Why adding a div?
IMHO that would not be clear for any user where that div come from.
BTW, when you attach a new patch you usually mark it as "need review" ;-)