Skip to content
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

Add make target for docset to be used with Dash/Zeal #180

Merged
merged 10 commits into from
Feb 13, 2017
Merged

Conversation

johntyree
Copy link
Contributor

This PR makes it simple to create a docset from the Traits html documentation, as used by the Dash and Zeal api browsers.

It assumes you have doc2dash installed and keeps all output under $(BUILDDIR).

The docset_html target lacks the left sidebar to make viewing in Dash/Zeal nicer. Unfortunately, sphinx does not support the notion of configuration files named anything other than conf.py and so we must make a directory docset_resources in which to hold the modified configuration. If there is a way to tell sphinx-build to override the html_theme_options dictionary then this directory is unneeded.

@enbuilder
Copy link

Merged build triggered. Test FAILed.

@enbuilder
Copy link

Merged build started. Test FAILed.

@enbuilder
Copy link

Merged build finished. Test PASSed.

@enbuilder
Copy link

Test PASSed.
Refer to this link for build results: http://jenkins.enthought.com:8080/job/Traits_PR_builder/57/

@enbuilder
Copy link

Merged build triggered. Test FAILed.

@enbuilder
Copy link

Merged build started. Test FAILed.

@enbuilder
Copy link

Merged build finished. Test PASSed.

@enbuilder
Copy link

Test PASSed.
Refer to this link for build results: http://jenkins.enthought.com:8080/job/Traits_PR_builder/58/

@mdickinson
Copy link
Member

If there is a way to tell sphinx-build to override the html_theme_options dictionary

It would be worth looking for such a way. The duplication of conf.py files is unpleasant here.

@mdickinson
Copy link
Member

How about setting an environment variable in the Makefile and inspecting that in conf.py?

@johntyree
Copy link
Contributor Author

Hmm, yes that would be rather nicer than this approach. I'll try that later
today.
On May 8, 2014 4:22 AM, "Mark Dickinson" [email protected] wrote:

How about setting an environment variable in the Makefile and inspecting
that in conf.py?


Reply to this email directly or view it on GitHubhttps://github.com//pull/180#issuecomment-42529066
.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.71%) when pulling 43f3200 on feature/docset into af5baf7 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.71%) when pulling 7b345aa on feature/docset into af5baf7 on master.

@dpinte
Copy link
Member

dpinte commented Aug 30, 2015

@johntyree can you merged master in this PR? It would be good to get it merged.

@johntyree
Copy link
Contributor Author

Glad to see this is still alive :)

@jvkersch
Copy link
Contributor

Glad to see this is still alive :)

It's been plenty useful to me, but I always generate the docset and then forget to ping you on the PR!

@mdickinson If you have no objections, shall we merge this?

@mdickinson
Copy link
Member

LGTM

@mdickinson mdickinson merged commit 16dbc62 into master Feb 13, 2017
@mdickinson mdickinson deleted the feature/docset branch February 13, 2017 08:33
achabotl added a commit to enthought/traitsui that referenced this pull request Feb 26, 2020
This PR makes it simple to create a docset from the TraitsUI html
documentation, as used by the [Dash](http://kapelli.com/dash) and
[Zeal](http://zealdocs.org/) api browsers.

It adds [doc2dash](https://pypi.python.org/pypi/doc2dash) as a
documentation dependency to create the docset. All output is kept under
$(BUILDDIR).

It also builds the docset automatically when doing `etstools.py docs`.

This is an adaptation of enthought/traits#180
for TraitsUI.This is an
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants