-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Link to table schema and remove reference to internal API #33791
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
Hello @Bharat123rox! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2020-04-26 18:02:03 UTC |
This is because of Markdown Link Text, the line will not be longer in the original documentation, so this should be okay |
Thanks for the PR. This will need to be fixed - we run flake8 in our code checks. |
@alimcmaster1 I believe that the long URL is readable (self-explanatory?) and should not be broken (also while rendering it won't be shown), hence it's a strong enough case to ignore the flake8 warning |
pandas/io/json/_table_schema.py
Outdated
@@ -211,7 +211,7 @@ def build_table_schema(data, index=True, primary_key=None, version=True): | |||
|
|||
Notes | |||
----- | |||
See `_as_json_table_type` for conversion types. | |||
See [`Table Schema`](https://pandas.pydata.org/docs/user_guide/io.html#table-schema) for conversion types. # noqa: E501 |
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.
I don't think this will render correctly in rst: https://sublime-and-sphinx-guide.readthedocs.io/en/latest/references.html#links-to-external-web-pages
Also to pass flake8 you can just wrap this in the next line like this example:
To learn more about the frequency strings, please see `this link
<https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`__.
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.
My bad, I thought Markdown was being used. @mroeschke Can you provide an example where link aliases are used?
Like
Get the latest news at `CNN`_.
.. _CNN: http://cnn.com/
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.
If you wish to use an alias - see the spinx docs. https://sphinxtechnicalwriting.readthedocs.io/en/latest/sphinx/linking.html
gbq.py
for an example.
You can build the documentation locally - https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#how-to-build-the-pandas-documentation to check that it renders as expected. (Feel free to post a screenshot on PRs)
Thanks
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.
Doc build seems to be failing - mind taking a look?
Found this warning
But I didn't even touch line 45, so what is this really about? |
pandas/io/json/_table_schema.py
Outdated
@@ -211,14 +211,17 @@ def build_table_schema(data, index=True, primary_key=None, version=True): | |||
|
|||
Notes | |||
----- | |||
See `_as_json_table_type` for conversion types. | |||
See `Table Schema`_ for conversion types. |
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 just
See `table schema
<https://pandas.pydata.org/docs/user_guide/io.html#table-schema>`__ for...
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.
Updated, let's hope doc builds!
did you build this page locally and see if it renders and the link works? |
@jreback I'm still having problems building docs locally in MacOS, but I did try it on an RST Previewer and it works fine |
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
thanks @Bharat123rox |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
(Markdown link which will not be shown)