Hey,
I would like to try out your documentor for a large
project. Where do I go in setting the directories to
scan for documentation? I've tried to edit the config
file, but the new directory doesn't get scanned.
Or do you have a manual and should I grtfm?
Michel
Logged In: YES
user_id=965617
I provided the Mdoc as a component more than an
application so it's not just to provide a folder path in a
config file.
However, you may got a pretty quick working situation:
in browse-config.php, add a new line (at line #10) with
your folder path (relative to browse-documentation.php
folder) like
$alt_dir['manta'] = "phpManta/include/php4/";
$alt_dir['your_folder'] = "../../your/folder/somewhere/";
Then in browse-documentation.php, modify lines as of #46:
// Set current (requested) directory
if (!empty($_GET['path']) && $_GET['path'] == "manta") {
$current_dir = $manta_lib_path;
} else {
$current_dir = dirname(__FILE__) . "/samples/"; //
default samples path
}
to
// Set current (requested) directory
if (!empty($_GET['path']) && $_GET['path'] == "manta") {
$current_dir = $manta_lib_path;
} elseif (!empty($_GET['path']) && $_GET['path']
== "your_folder") {
$current_dir = dirname(__FILE__) . $_Get['your_folder'];
} else {
$current_dir = dirname(__FILE__) . "/samples/"; //
default samples path
}
You can also go for an absolute path very easily.
Then use browse-documentation.php like mentioned in query
usage adding your path:
browse-documentation.php?
path=your_folder&class=a_class_of_yours
Please keep me posted so I'll be able to improve the
application framwork for next release.
Logged In: YES
user_id=1104335
I've added the changes you have proposed, but I get the
error: file not found (lines 54 or 71).
Is phpManta only meant for classes? In the projects I work
on we have a branched file system with in many cases one
function/file.
Logged In: YES
user_id=965617
Could you upload the 2 "browse" files here and provide the
file system branch structure?
you could also email them direct to me.