Skip to content

Commit f697ea6

Browse files
alloncmavivace
andauthored
Fix deployment on Windows (#453)
Co-authored-by: Antonio Vivace <[email protected]>
1 parent ef49f8c commit f697ea6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DEPLOY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
This document will explain you how to run a local copy of Pan Docs.
44

5-
1. Install [Rust](https://www.rust-lang.org/tools/install), [mdBook](https://github.com/rust-lang/mdBook#readme), and [Python 3](https://www.python.org/downloads).
5+
1. Install [Rust](https://www.rust-lang.org/tools/install), [mdBook](https://github.com/rust-lang/mdBook#readme), and [Python 3](https://www.python.org/downloads) (3.9 or an earlier version).
66
mdBook is the tool rendering the documentation, Rust is used for some custom plugins and Python scripts are used to render some images. E.g.:
77
```sh
88
# Install Rust using rustup
99
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
1010
# Install mdbook using cargo
1111
cargo install mdbook
1212
# Remember to add cargo bin directory to your path
13-
# Install python3 (on Debian systems)
13+
# Install Python; e.g. on Debian-based systems:
1414
apt install python3
1515
```
1616
2. [Install the Python prerequisites](https://packaging.python.org/tutorials/installing-packages/#requirements-files).

renderer/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl Renderer for Pandocs {
8888
// Generate the graphs in `imgs/src/` by shelling out to Python
8989
let working_dir = ctx.destination.join("imgs");
9090
let src_dir = working_dir.join("src");
91-
let python = if cfg!(windows) { "py3" } else { "python3" };
91+
let python = if cfg!(windows) { "python" } else { "python3" };
9292
let gen_graph = |file_name, title| {
9393
let mut file_name = PathBuf::from_str(file_name).unwrap(); // Can't fail
9494
let output = File::create(working_dir.join(&file_name))?;

0 commit comments

Comments
 (0)