Skip to content

Add doc previewing instructions #31905

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

Closed
wants to merge 7 commits into from
Closed

Conversation

driazati
Copy link
Contributor

@driazati driazati commented Jan 7, 2020

Stacked PRs

This adds some instructions on how to get started with Github pages you can show reviewers your documentation changes. Hopefully we can delete this eventually and build docs automatically on relevant PRs in CI.

Differential Revision: D19296364


```bash
cd your_github_pages_repo
cp -r ~/my_pytorch_path/docs/build/html/* .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've always previewed documentation by just opening files from this directory. Is that something we could recommend as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean opening it on GitHub with GitHub's rst rendering (e.g. this page)? I've found that that doesn't always match the website since most directives aren't followed (e.g. automodule/autofunction)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I mean opening ~/my_pytorch_path/docs/build/html/index.html in my local browser

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more for reviewing so other people can see it, I think the section titles were a little confusing so I've split them up

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from offline: the instructions recommended starting an http server but that's not necessary since you can open the files in a browser, so the latest commit removes that and recommends just opening the files

@driazati driazati requested a review from zou3519 January 7, 2020 22:00
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm; had a comment

CONTRIBUTING.md Outdated
#### Submitting changes for review

It is helpful when submitting a PR that changes the docs to provide a rendered
version of the result. You can do this by using GitHub pages to host the docs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is nice to have a rendered result. I'd also add that a screenshot of the rendered result would be fine as well (it depends on how much the user is editing). Most users will end up modifying a single function's docstring and I want to lower the barrier for them to contribute.

facebook-github-bot pushed a commit that referenced this pull request Jan 8, 2020
Summary:
Stacked PRs
 * **#31908 - Remove C++ docs contributing page**
 * #31905 - Add doc previewing instructions

We should have 1 source of truth for contribution instructions (CONTRIBUTING.md).
This PR moves the instructions from the C++ doc pages there instead of having its
own separate page.
Pull Request resolved: #31908

Pulled By: driazati

Differential Revision: D19296366

fbshipit-source-id: c1daf004259342bd09e09dea3b80e34db47066ec
@facebook-github-bot
Copy link
Contributor

@driazati merged this pull request in 8c59d48.

wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary:
Stacked PRs
 * pytorch#31908 - Remove C++ docs contributing page
 * **pytorch#31905 - Add doc previewing instructions**

This adds some instructions on how to get started with Github pages you can show reviewers your documentation changes. Hopefully we can delete this eventually and build docs automatically on relevant PRs in CI.
](https://our.intern.facebook.com/intern/diff/19296364/)
Pull Request resolved: pytorch#31905

Pulled By: driazati

Differential Revision: D19296364

fbshipit-source-id: df47fa1a8d7be029c3efcf6521298583ad9f7a95
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary:
Stacked PRs
 * **pytorch#31908 - Remove C++ docs contributing page**
 * pytorch#31905 - Add doc previewing instructions

We should have 1 source of truth for contribution instructions (CONTRIBUTING.md).
This PR moves the instructions from the C++ doc pages there instead of having its
own separate page.
Pull Request resolved: pytorch#31908

Pulled By: driazati

Differential Revision: D19296366

fbshipit-source-id: c1daf004259342bd09e09dea3b80e34db47066ec
@facebook-github-bot facebook-github-bot deleted the driazati/docs/contrib branch July 13, 2020 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants