-
Notifications
You must be signed in to change notification settings - Fork 19
Add tooling to create Dash docset for RSMTool and other minor changes. #375
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
Conversation
- Remove unused options. - Make it so that the copyright year is automatically updated. - Add missing exclusion. - Add support for Dash docset building.
- Create separate `internal` folder that contains these and the release process document that was at the top level before.
- Move images and PDF to new `assets` folder. - Tell sphinx about `assets` folder via `html_static_path`.
|
Hello @desilinguist! Thanks for updating this PR.
Comment last updated at 2020-02-21 14:00:37 UTC |
|
Thank you for the video! |
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.
Looks good to me!
I am slightly concerned that it adds extra overhead to the release process but we can over time whether we feel that the benefits overweigh that.
| from bs4 import BeautifulSoup | ||
|
|
||
| # pre-define the list of HTML files we want to miodify | ||
| FILES_TO_MODIFY = ["advanced_usage.html", "api.html", "contributing.html", |
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.
How do we make sure this list is up-to-date? Can we create it automatically based on directory content?
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.
Yeah, I tried this but struggled with it. There are some auto-generated HTML files that we do not want to add Dash nchors to (for example, genindex.html). I haven’t been able to figure out if this set is fixed and so we can just include all files except the ones in this set. I can work on this in the future.
That’s fair enough. I’ll try to figure out how to automate this as much as possible as we go forward. |
…ckage and announcement.
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.
LGTM. I generated the dash documentation myself and can peruse the contents in my local _build directory. The changes look good to me too.
…ingService/integrate-dash Add tooling to create Dash docset for RSMTool and other minor changes.
This PR adds the tooling to create an RSMTool docset for the Dash app on macOS as per #357. Dash is an offline documentation browser that integrates with basically every IDE/editor out there and has docsets for pretty much any major open-source project under the sun. I use it heavily during development as do many other macOS folks. In addition to the Dash stuff, it also makes some other minor changes (listed below).
This PR:
make dashin thedocdirectory.doc/conf.py.assetsand updates the documentation anddoc/conf.py.doc/conf.pyto automatically add the current year as opposed to us needing to manually update it every year.deprecated_positional_argument()decorator fromsphinx-autodoc.Notes:
To see what this docset looks like in Dash, take a look at this video.