-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically document directories by creating respective dox files #30
Comments
oooooh that's a great idea, and likely quite easy to implement |
This seems to be a recurring issue that everyone suffers from which I myself never had a problem with. I've never needed to include the full path for the See also this comment. |
@wroyca if you re-run poxy with
@mosra yeh now that you mention it I've never run into this either - I always just use a |
Here's a simple project structure: And the respective doxygen, generated by poxy: As observed, the path is an absolute one, not relative. In other words, we obtain /home/wroy/hello/, and in order for the files to become visible, we need to document /home/wroy/hello/, hello/hello/, and ultimately, hello/. |
And I assume you want The relevant Doxyfile parts are this: STRIP_FROM_PATH = "/tmp/poxy/bug_report/temp/pages"
STRIP_FROM_INC_PATH =
INPUT = "/home/wroy/hello/hello" \
"/home/wroy/hello/libhello" \
"/tmp/poxy/bug_report/temp/pages" Not sure what's the temp pages directory but it should be something like this instead, I think, then it wouldn't include the whole path in the file list. The project root is probably something the project configuration itself should specify, can't really automate that I think -- there's not really a way to know whether it's meant to be STRIP_FROM_PATH = "/home/wroy/hello" \
"/tmp/poxy/bug_report/temp/pages"
STRIP_FROM_INC_PATH = "/home/wroy/hello"
INPUT = "/home/wroy/hello/hello" \
"/home/wroy/hello/libhello" \
"/tmp/poxy/bug_report/temp/pages" |
@wroyca In poxy-speak you need to use the
That's an internal implementation detail of poxy - a folder for generating additional documentation files if necessary (e.g. the page for the Changelog). It's not surfaced to the user in any meaningful way (i.e. they don't need to take it into account when specifying paths). |
Alright, thanks for clarifying :)
So I assume it does basically what I suggested above, right? I wonder if this is where poxy automagic would help, i.e. setting the |
Not quite, for that I can use Example: $ pwd
/home/wroy/hello
$ cat <<EOF >> doc/poxy.toml
strip_paths = [ '/home/wroy/hello' ]
EOF
$ cat doc/poxy.toml
name = 'hello'
cpp = 17
[sources]
recursive_paths = [ '../hello', '../libhello' ]
patterns = [ '*.hxx', '*.ixx', '*.txx', '*.cxx' ]
extract_all = false # debug
strip_paths = [ '/home/wroy/hello/' ]
|
You don't need to specify a path using /// @dir
/// @brief The root folder of all source files. |
Yeh, pretty much. Maybe walking up the directory tree and looking for a |
Only if you stripped For example, not stripping |
@wroyca I promise you you don't need to be explicit about paths at any point w.r.t. |
That's exactly my point :), we need to be explicit about paths in 'strip from' |
Well yes, but that's by design? You don't need to be explicit in your |
Like, you pretty much have to use Unless we want to get into guessing the project root, but that's orthogonal to the idea of autogenerating |
Both way are the same, that is to say:
is the same as
|
No, because you're still hard-coding absolute paths for some reason, which you don't need to do. See toml++'s config: https://github.com/marzer/tomlplusplus/blob/master/docs/poxy.toml - not an absolute path in sight. |
Ah! our miscommunication stem from "strip_paths" where I interpret "strip_paths" as what to strip from the path, that is to say, explicitly. But now I found out what you can just pass a relative path and it will "strip" the path leading up to it. Now it make sense ~ |
Yeah, that's the problem, you're using absolute paths. Don't use them. Anywhere. If everything is relative to the Doxyfile, the |
Indeed - I guess that a significant number of individuals, similar to myself, wouldn't anticipate |
Hmmmn, maybe I should add a note to the config wiki page. So to clarify: anywhere you can specify a path in poxy, regardless of what it's for, is assumed to be relative to |
Closing as this was mostly due to me misunderstanding how things work. :) |
Is your feature request related to a problem? Please describe.
Referring to #21 (comment), "registering" documented files with Doxygen stands out as notably user-hostile, particularly when dealing with local installations. In short, with a local project structure, we must "describe" each directory from our source-tree, as these directories don't rely on relative paths. For example:
This doesn't transition effectively to CI or to another individual's computer. In such cases, they would need to modify "C:/Users/wroy/Desktop" to indicate the correct absolute path.
Describe the solution you'd like
During the generation phase, it might be advisable to automatically document directories (using path or recursive_path as context) by creating respective dox files with "@dir" and "@brief" annotations. If a user wishes to furnish directory description, then a manually created dox file should take precedence
Additional context
☕
The text was updated successfully, but these errors were encountered: