Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Python: Version the docs with plotly.py #990

Closed
jonmmease opened this issue Jul 31, 2018 · 3 comments
Closed

Python: Version the docs with plotly.py #990

jonmmease opened this issue Jul 31, 2018 · 3 comments
Assignees

Comments

@jonmmease
Copy link
Contributor

I would like to propose that we work towards hosting a build of the Python documentation for each released version of plotly.py, and add the version number to the URL.

This is the approach of the documentation for many other Python projects. See the pandas documentation for example: The documentation for a prior version of pandas can be accessed at https://pandas.pydata.org/pandas-docs/version/VERSION (e.g. https://pandas.pydata.org/pandas-docs/version/0.21.1/)

My thoughts is that we would continue to update the current URLs with the latest stable version.

Here are some motivations for the change:

  1. I would like to be able to update the legacy docs to use version 3 conventions (e.g. go.layout.XAxis), while still having a way for people to access the version 2.7 docs.

  2. I would like to work towards adding docstring hyperlinks to plotly.py that reference documentation pages, and with versioned docs these hyperlinks would always point to the page for the version of plotly.py that the person is actually using.

  3. I would like to get rid of the "Version Check" section at the top of all of the notebooks. It adds clutter and it wouldn't be needed if the docs were built for each version of plotly.py

How hard would this be from a documentation hosting point of view?

@cldougl
Copy link
Member

cldougl commented Aug 6, 2018

@jonmmease I think this would be pretty easy from a hosting point of view (definitely for major releases). We can start this as we rewrite the new documentation.

@cldougl
Copy link
Member

cldougl commented Nov 22, 2018

example:

Version Check

This is documentation for version 2 of plotly.py. See the changelog for differences between package versions.
(suggestions on an improved message welcome :) )

@nicolaskruchten
Copy link
Contributor

We basically did this :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants