From 2e5fb8b75fb2159452c0833647019b2fe120a501 Mon Sep 17 00:00:00 2001 From: Wu-Lipeng <1744069652@qq.com> Date: Wed, 11 Dec 2024 13:16:13 +0800 Subject: [PATCH] Update index.webc At the 4th step of the document, the out-file command in windows is Power Shell specific. But Power Shell has a default execution policy to restrict the running of JavaScript, which would cause an error when running Eleventy in the next step. If a solution can be provided here(use a command to set the execution policy), the whole experience of trying running Eleventy would be smoother and more beginner-friendly. --- src/docs/index.webc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/docs/index.webc b/src/docs/index.webc index 6f6f5069e9..02f9c1319c 100644 --- a/src/docs/index.webc +++ b/src/docs/index.webc @@ -173,7 +173,10 @@ echo '# Heading' > README.md echo '
Hi
' | out-file -encoding utf8 'index.html' echo '# Heading' | out-file -encoding utf8 'README.md' -If the out-file command is not available in your Windows Terminal window (it’s PowerShell specific), use the Cross Platform method instead.
+ If the out-file command is not available in your Windows Terminal window (it’s PowerShell specific), use the Cross Platform method instead.
+ When you use PowerShell in windows, you may need to change the execution policy using Set-ExecutionPolicy Unrestricted to ensure the smooth progress of the subsequent steps.
+