From 2d372a990bde72935b3e0a1d90802a3b9ce21420 Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Fri, 5 Jun 2020 20:47:02 -0400 Subject: [PATCH] Explain how to preview the docs in a PR (#4795) --- docs/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/README.md b/docs/README.md index 678aac6adf..c4360f430e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -76,6 +76,18 @@ It should build the static app that will be available under `/docs/_build/html` Accepted files are reStructuredText (.rst) and Markdown (.md). Create a file with its extension and put it in the source directory. You can then link it to the toc-tree by putting the filename without the extension. +## Preview the documentation in a pull request + +Once you have made your pull request, you can check what the documentation will look like after it's merged by +following these steps: + +- Look at the checks at the bottom of the conversation page of your PR (you may need to click on "show all checks" to + expand them). +- Click on "details" next to the `ci/circleci: build_doc` check. +- In the new window, click on the "Artifacts" tab. +- Locate the file "docs/_build/html/index.html" (or any specific page you want to check) and click on it to get a + preview. + ## Writing Documentation - Specification The `huggingface/transformers` documentation follows the