Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upText files generation #43
Comments
This comment has been minimized.
This comment has been minimized.
|
Have you tried plainly |
This comment has been minimized.
This comment has been minimized.
|
@kernc thanks for reply! Yeah, but I thought it has different functionality, as it doesn't look whole project recursively, like pdoc with option “--html” does. May be there is a possibility to have similar output (text-markdown file on each module that are specified through imports in selected module)? documentation/
└── backend
├── config
│ ├── dev_config.html
│ ├── index.html
│ ├── params.html
│ └── prod_config.html
├── helpers
│ ├── index.html
│ └── is_int.html
├── index.html
├── modules
│ ├── ai_consultant
│ │ ├── index.html
│ │ ├── models.html
│ │ └── route.html
│ ├── authentication
│ │ ├── auth.html
│ │ ├── index.html
│ │ └── models.html
│ ├── home_page
│ │ ├── home_page.html
│ │ └── index.html
│ ├── index.html
│ ├── process_mining
│ │ └── index.html
│ └── survey
│ ├── index.html
│ ├── interact
│ │ ├── answer_creator.html
│ │ ├── index.html
│ │ ├── session_setter.html
│ │ └── survey_getter.html
│ ├── manage
│ │ ├── index.html
│ │ ├── language_getter.html
│ │ ├── survey_assessment.html
│ │ ├── survey_creator.html
│ │ ├── survey_dimension_type_getter.html
│ │ ├── survey_getter.html
│ │ ├── survey_scope_getter.html
│ │ ├── survey_updater.html
│ │ └── user_getter.html
│ ├── models.html
│ └── routes.html
└── run.htmlAnd it is output of Module backend
==============
Sub-modules
-----------
* backend.config
* backend.helpers
* backend.modules
* backend.run |
This comment has been minimized.
This comment has been minimized.
|
Indeed, it's different. I believe the text output was initially meant more for instant in-terminal module doc viewing. You could achieve about the thing you expect with: find project/dir -name '*.py' \! -ipath '*/_[a-z]*' \
-exec sh -c 'mkdir -p "md/$(dirname "$1")"; pdoc "$1" > "md/$(dirname "$1")/$(basename "$1").md"' -- {} \;
tree mdThis is somewhat involved, and it's not particularly portable, so your request is justified. May I ask why you seek to get text files? |
kernc
added
the
enhancement
label
Mar 11, 2019
This comment has been minimized.
This comment has been minimized.
|
@kernc thanks, I also thought about similar solution! I will try to implement it in your library in the future!
I have two main reasons:
|
kernc
changed the title
There is no command for generating documentation in text format
Text files generation
Mar 11, 2019
This comment has been minimized.
This comment has been minimized.
|
It would be generated in the same directory of corresponding .py file. As I understood there is no any option to modify this behavior.
…__________________________________________________
С уважением,
Богдан Лашков
i@bogdan.co
On March 19, 2019 3:30:12 PM GMT+01:00, Tom Hemmes ***@***.***> wrote:
Quick question @b09dan if using your second suggestion `pdoc backend`
where would I find the generated `.md` doc files? Or how could I
specify say `--md-dir` ?
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#43 (comment)
|
This comment has been minimized.
This comment has been minimized.
|
I think, ideally, |
b09dan commentedMar 10, 2019
Expected Behavior
At the home page of the project it is stated that library has an ability of "Plain text, HTML, or PDF output". It is expected to have such command:
pdoc3 --text --text-dir ./documentation_dir module_nameActual Behavior
pdoc3 help says that there is no such option like text and it does't provide a name of this option:
pdoc3: error: unrecognized arguments: --textAdditional info