mdolab / MACH-Aero

MACH: MDO of Aircraft Configurations with High fidelity
115 stars 53 forks source link

Add autolink to docs #76

Open ewu63 opened 2 years ago

ewu63 commented 2 years ago

Purpose

This PR adds the extension sphinx-codeautolink which creates links automatically to our API docs. Will keep this as draft as I debug the process.

Expected time until merged

A few days once I get everything sorted.

Type of change

ewu63 commented 2 years ago

Alright I've no idea what's going on, the links now work locally (for pygeo at least) but the PR docs build does not. Maybe @sseraj you can try to see if you're able to reproduce the issue.

ewu63 commented 2 years ago

So I spent some time looking into this further, and the build works locally because pygeo is installed into the same python environment (the docs do not have to be built for pygeo for the links to work). Somehow that makes this stuff work, which means the current setup is still messed up. I suspect further path issues in autodoc.

marcomangano commented 7 months ago

The links I tried are working, is this good for review?

eirikurj commented 7 months ago

I dont think this is working as it should. There are at least loads of warnings during the RTD/sphinx build. What links did you test?

marcomangano commented 7 months ago

@eirikurj I did not look at the log, but I tested a few crosslinks top other RTD pages (e.g. pyoptsparse) and they worked. I think I am misunderstanding the goal of the PR though.