# \[PATCH\] .gitignore: docs: ignore sphinx\_\*/ directories

- From: Mauro Carvalho Chehab \<mchehab+huawei@kernel.org\>
- Date: 2020-08-26 10:47:14 
- List: linux-doc
- Page: https://ratatoskr.run/linux-doc/2020/08/6083336
- Thread: https://ratatoskr.run/linux-doc/2020/08/6083336/t.md

```text
The default way of building documentation is to use
Sphinx toolchain installed via pip, inside the
Kernel tree main directory. That's what's recommended by:

	scripts/sphinx-pre-install

As it usually provides a better version of this package
than the one installed, specially on LTS distros.

So, add the directories created by running the commands
suggested by the script.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitignore b/.gitignore
index 162bd2b67bdf..d01cda8e1177 100644
--- a/.gitignore
+++ b/.gitignore
@@ -152,3 +152,6 @@ x509.genkey
 
 # Clang's compilation database file
 /compile_commands.json
+
+# Documentation toolchain
+sphinx_*/
-- 
2.26.2

```
