This article shows what dependencies are required by different features.
Install Python for Most Features¶
reStructuredText is a technology created by Python community, so most of the toolchain is built upon Python. It is very important to install Python in advance.
Download python version 3.6 or above (old versions might work, but no guarantee).
You can refer to Python official page to learn which versions should not be used.
Latest steps on how to install Python and Sphinx, please refer to this article.
Once Python is installed, make it available to this extension via either option,
Option 1: Add Python to system path (especially on Windows).
If you are installing on Windows, ensure both the Python install directory and the Python scripts directory have been added to your
PATHenvironment variable. For example, if you install Python into the
c:\python36directory, you can add
Option 2: Use the Python extension by Microsoft.
It really makes configuring Python environment easier for users in this approach.
Once you have that Python extension installed, open
conf.pyin VSCode. The Python extension shows an extra button in the status bar from where you can select which Python installation to use.
Option 3: Use VSCode setting
python.pythonPathto tell this extension where to locate Python.
Python virtual environment is partially supported,
Other sections of this documentation site might use commands
pip install which are not virtual environment friendly.
It is your own responsibility to replace them with virtual environment
specific commands such as
pipenv install or
Install Esbonio Language Server for Live Preview and IntelliSense¶
Esbonio language server provides both IntelliSense and live preview functionalities, so it must be installed in advance, as rendering engine to generate the HTML page for preview.
In case you really want to avoid Esbonio and Sphinx for live preview, you can select DocUtils. Please refer to Configuration for details.
Install Esbonio by opening a command prompt and running the following Python command,
pip install esbonio
This operation might take a few minutes to complete.
If you prefer DocUtils based preview, then this step is optional.
Some Sphinx themes require their own Python packages to be installed. You should check the documentation of the themes you use so as to know which packages to install, or the preview error page contains the actual package name which is missing.
Install DocUtils by opening a command prompt and running the following Python command,
pip install docutils
If you prefer Esbonio based preview, then this step is optional.
Install Doc8 or RstCheck as Linter¶
Linting support can use the doc8 or rstcheck engine.
doc8to enable linter support.
pip install doc8
If you prefer not to use doc8, then this step is optional.
rstcheckto enable linter support.
pip install rstcheck
If you prefer not to use rstcheck, then this step is optional.