Build Sphinx environment using windows package management tool scoop
.
This script does these processes.
- install Scoop
- install Python37 (using scoop)
- create python venv and activate
- install Sphinx
- install theme (sphinx_rtd_theme)
- install some extentions
- install pandoc, latex, perl (using scoop)
- create sphinx document project template
- Windows 7 SP1+ / Windows Server 2008+
- PowerShell 5 (or later, include PowerShell Core) and .NET Framework 4.5 (or later)
- PowerShell must be enabled for your user account
e.g.Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Run following command in PowerShell.
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/rhenerose/build_sphinx_environment_using_scoop/main/create_sphinx_env.ps1')
-
Clone this repository.
-
Change some parameters in
create_sphinx_env.ps1
and save.# python venv path for sphinx # WARNNING: This script create new python venv!! $SPHINX_VENV_PATH='c:\venv\sphinx'
-
Open
PowerShell
-
Run the following command to change policy.
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
if display some message, input
y
andenter
. -
Run script
create_sphinx_env.ps1
. -
Change directory
./sample_project
and activate venv. -
Enjoy Sphinx!!!
e.g.c:/venv/sphinx/script/activate.ps1 ./make html ./make latexpdf