-
Notifications
You must be signed in to change notification settings - Fork 77
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
Missing 1.0 docs #701
Missing 1.0 docs #701
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-1.0 #701 +/- ##
===========================================
- Coverage 64.17% 64.11% -0.06%
===========================================
Files 95 107 +12
Lines 9169 9199 +30
===========================================
+ Hits 5884 5898 +14
- Misses 3285 3301 +16
Continue to review full report at Codecov.
|
For the de-prioritized docs, I would suggest either:
|
docs/web/docs/guides/how_to_use/efficiency_organization/reusing_configs.md
Show resolved
Hide resolved
python run_task.py mephisto/architect=heroku mephisto/provider=mturk_sandbox mephisto.provider.requester_name=MY_REQUESTER | ||
``` | ||
|
||
Instead you can move these common configurations into a file in your `~/.mephisto/hydra_configs/profile` dir. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a provocative question, but is there any reason to have hydra_configs
as part of the path? In the example folders we also have things like parlai_chat_task_demo/hydra_configs/conf/
.... always as a nested folder. seems unnecessary to have the double nesting. Perhaps hydra_config
is part of the defaults but maybe we can use something straightforward here? this should also be easier now that we control the decorator.
Perhaps just conf/
, e.g ~/.mephisto/conf/
that houses the profiles? or ~/.mephisto/profiles/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a hydra requirement, you need to point to a root folder, and then all sub folders of that folder are possible configuration options that can be set. As such it needs its own folder, or else hydra will consider all of the things present possible arguments. Agreed that it's not ergonomic, but I'm not sure how else we do it.
It would be nice to have better pdoc integration w/ Docusaurus, like this example. Seems like this is the template they use: https://github.com/h2oai/wave/blob/master/py/docs/templates/text.mako and this is how it's built via the https://github.com/h2oai/wave/blob/master/py/Makefile#L25-L31 I can take a look at wiring this up this weekend. |
So I see:
in the root |
I spent about an hour or two walking through this rabbit hole - this is a super nice experience, but |
It's installed through python, I didn't know the right place to put this otherwise if our other scripts are here. |
Saw your message too late, that's a few hours I'll never get back 😆 Man what a mess trying to use pdoc3. |
Unsure whether dev dependencies like this belong in the requirements.txt. Can't think of any other place so leaning towards yes? Or should we have something like dev-requirements.txt. Is there precedence? Edit: https://realpython.com/lessons/production-vs-development-dependencies/ mentions a requirements_dev.txt |
|
Hi folks! I found this thread as I monitor potential pdoc issues in downstream dependencies via GitHub search.
I have no experience with docusaurus, but FWIW many Markdown-based frameworks will happily accept a blob of HTML in Markdown files. pdoc does that quite happily, all CSS is specifically scoped to not affect the rest of the page. You can find an example for mkdocs at https://github.com/mitmproxy/pdoc/tree/main/examples/mkdocs. We follow the same approach for mitmproxy (demo). We also have some users that use a custom template to emit Markdown (https://github.com/codeghetti/seagulls-py/tree/main/.pdoc/templates), but ultimately it doesn't end up looking as nicely. |
UI docs + other doc fixes
I did a quick attempt at the implementation that |
Overview
As one of the last steps for Mephisto 1.0, this PR runs through some remaining docs pages that need content:
To come shortly after 1.0 would be the following docs:
For these de-prioritized docs, what would be the appropriate messaging to leave on the pages?
For autogenerated python docs, I've used
pdoc
and dropped the static docs into static. This included a number of changes to__init__.py
files to autoinclude readmes. It also moved a lot of scripts behind__main__
blocks, as these were being executed during the doc build process.Example API docs:
Note: the ergonomics aren't great as this triggers a new tab load instead of being in the same tab, but I don't have any easy fix for this just yet.