Skip to content

Commit ddb6f19

Browse files
committed
More tips about how to reduce resources usage
1 parent 8a34164 commit ddb6f19

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/guides/build-using-too-many-resources.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,20 @@ If there are extra packages that you don't need for building docs,
2323
you can create a custom requirements file just for documentation.
2424
This should speed up your documentation builds,
2525
as well as reduce your memory footprint.
26+
27+
Use pip when possible
28+
---------------------
29+
30+
In case you are using `conda` to create your environment,
31+
you could consider using `pip` instead since `conda` could require too much memory to calculate the dependency tree.
32+
33+
Use system site-packages for pre-installed libs
34+
-----------------------------------------------
35+
36+
There are a few libraries that Read the Docs has already installed (scipy, numpy, matplotlib, pandas, etc)
37+
in the Docker image used to build your docs. You can check the updated list of pre-installed libraries in the `Docker image repository`_.
38+
39+
To use these pre-installed libraries and avoid consuming time re-downloading/compiling them,
40+
you ca use the :ref:`yaml-config:Python-use-system-site-packages` option to have access to them.
41+
42+
.. _Docker image repository: https://github.com/rtfd/readthedocs-docker-images

0 commit comments

Comments
 (0)