Installation¶
This extension is designed to be used with as little installation effort as possible, but users can use all reStructuredText and Sphinx features by setting up their own environment. (Some of these features are only available for Windows.)
Windows |
Mac/ Linux |
|
---|---|---|
reStructuredText extention
for VSCode
(This extension)
|
Required.
Install from VSCode
|
Required.
Install from VSCode
|
Python/ Sphinx
|
Already built into the extension.
No installation is required
for minimal functionality.
* If you want to customize Sphinx,
we recommend that you set up your own environment.
|
Necessary
|
TeX
|
Required for exporting to pdf.
[You can start the installer from Task]
|
Required for exporting to pdf.
[Please install it by yourself]
|
Extension¶
- [Common to all OS]
From Extensions in Visual Studio Code, search for “reStructuredText" and install it.
Python/ Sphinx¶
- [Windows (When using the built-in extensions)]
Select
Terminal> Run Task
from the VSCode menu.Select
sphinx
from the dialog box that appears at the top of the screen.Select the task you want to execute from the list of items such as
Quick Start
andBuild: html [Built-in build]
.
- [Mac/ Linux/ Windows(自身で環境を整える方)]
Install Python.
Pip install Sphinx.
Install themes, such as sphinx-rtd-theme, if needed.
Note
When you use an extension task to build or do other tasks, commands such as make html
will be executed using the folder open in VSCode as the work directory.
At this time, there is no function to specify the virtual environment, so the global environment will be used.
(If you pass the PATH to the virtual environment directory, you may be able to use it.)
TeX¶
Warning
The installation of TeX Live will take about 1-2 hours, so please do it when you have time to spare.
- [Windows]
Select
Terminal> Run Task
from the VSCode menu.From the dialog box that appears at the top of the screen, select
sphinx> Launch TeX Installer
.When the installer starts, follow the instructions of the installer to install.
If you want to install a different version of TeX, please download and install the installer yourself.
You can download the installer for TeX Live from here.
- [Mac/ Linux]
Please install it by yourself.
You can find more information on the Internet by searching for [TeX install].
You can download the installer for TeX Live from here.