ansys / pymapdl

Pythonic interface to MAPDL
https://mapdl.docs.pyansys.com
MIT License
428 stars 120 forks source link

feat/docs string updates #774

Open germa89 opened 2 years ago

germa89 commented 2 years ago

Current situation

The docs are not updated to the last 2021.2 version.

Proposal

Concerns

akaszynski commented 2 years ago

The docs are not updated to the last 2021.2 version.

Ideally we use the xml files or whatever generated those files. Do we have a deadline for this? Also, what do we do about providing backwards compatibility as we intend this library to support at least 2 years or MAPDL releases?

germa89 commented 2 years ago

Check first with only one simple command, and then reevaluate the project approach.

koubaa commented 2 years ago

I suggest writing a parser for one command that generates a docstring. It should have a cli like this:

python parse_mapdl_command.py --source /path/to/mapdl/doc/source --command SOLVE --output /path/to/solve_docstring.txt

and then another routine

python substitute_docstring.py --source /path/to/pymapdl --command SOLVE --input /path/to/solve_docstring.txt

In the future we can have a function like this to at runtime change the docstring if the user installs all docs (not saying we should do this but just pointing it out as a possiblity)?

pip install ansys.mapdl.core[all_docstrings]

or

pip install ansys.mapdl.docs

and then:

from ansys.mapdl.core import launch_mapdl
mapdl = launch_mapdl(version="212")
mapdl.use_docs("212")