You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary>Eleventy requires Node.js <node-minimum></node-minimum> <em>(expand to learn more)</em></summary>
11
-
<p>You can check whether or not you have Node installed by running `node --version` in a terminal window. (<a href="/docs/terminal-window/"><em>Well, wait—what is a Terminal window?</em></a>)</p>
12
-
<p>If the command is not found or it reports a number lower than <node-minimum></node-minimum>, you will need to <a href="https://nodejs.org/en/download/">download and install Node.js</a> before moving on to the next step.</p>
13
-
</details>
1
+
<h2 class="mt-0">Quick Start</h2>
2
+
3
+
<p><strong>Eleventy requires Node.js <node-minimum></node-minimum>.</strong> You can check whether or not you have Node installed by running <code>node --version</code> in a Terminal. (<a href="/docs/terminal-window/"><em>Well, wait—what is a Terminal?</em></a>) If <code>node</code> is not found or it reports a version number below <node-minimum></node-minimum>, you will need to <a href="https://nodejs.org/en/download/">install Node.js</a> before moving on.</p>
4
+
5
+
<p>Now we’ll create an <code>index.md</code> <a href="https://commonmark.org/help/">Markdown</a> file. You can do this in the text editor of your choice or by running one of these commands in your terminal:</p>
<p>Learn more about <a href="https://github.com/11ty/create"><code>@11ty/create</code></a> <em>(requires Node.js 18 or newer)</em>.</p>
35
+
</div>
36
+
</seven-minute-tabs>
14
37
15
38
<p>Run Eleventy.</p>
16
39
17
40
<syntax-highlight language="bash">
18
41
npx @11ty/eleventy
19
42
</syntax-highlight>
20
43
21
-
<p>Eleventy compiles any files in the current directory matching valid <a href="/docs/languages/">file extensions</a> (<code>.md</code> is one of many) to the output folder (<code>_site</code> by default). It might look like this:</p>
44
+
<p>Eleventy compiles any files in the current directory matching valid <a href="/docs/languages/">file extensions</a> (<code>md</code> is one of many) to the <code>_site</code> output folder. It might look like this:</p>
Copy file name to clipboardExpand all lines: src/docs/config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,7 @@ module.exports = function (eleventyConfig) {
271
271
npx @11ty/eleventy --formats=html,liquid,njk
272
272
```
273
273
274
-
{% callout "info" %}{% addedin "0.9.0" %} <strong>Case sensitivity</strong>: File extensions should be considered case insensitive, cross-platform. While Mac OS, by default, already behaves this way, other operating systems require additional Eleventy code to enable this behavior.{% endcallout %}
274
+
{% callout "info" %}{% addedin "0.9.0" %} <strong>Case sensitivity</strong>: File extensions should be considered case insensitive, cross-platform. While macOS, by default, already behaves this way, other operating systems require additional Eleventy code to enable this behavior.{% endcallout %}
Copy file name to clipboardExpand all lines: src/docs/debug-performance.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
eleventyNavigation:
3
-
key: Performance
3
+
key: Debug Performance
4
4
parent: Debug Mode
5
5
excerpt: How to analyze your Eleventy build to find bottlenecks.
6
6
order: 1
@@ -24,7 +24,9 @@ This list is not considered to be exhaustive. It’s just what has been implemen
24
24
25
25
{% addedin "0.11.0" %} You can use the following `debug` command to show performance measurements for all of these entries (not just those that take longer than 8%).
26
26
27
-
#### Mac OS (or Linux, etc)
27
+
Learn more about [environment variables for debug output](/docs/debugging/#commands).
Copy file name to clipboardExpand all lines: src/docs/debugging.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ You can enable this feature by using the `DEBUG` [environment variable](/docs/en
19
19
20
20
_The commands below assume that Eleventy is installed locally (recommended) but you can learn more about the difference between Local and [Global installation](/docs/global-installation/)._
21
21
22
-
### Mac OS (or Linux, etc)
22
+
### macOS or Linux (et al)
23
23
24
24
```sh
25
25
DEBUG=Eleventy* npx @11ty/eleventy
@@ -35,12 +35,30 @@ Read more about [Windows environment variables](https://www.npmjs.com/package/de
35
35
set DEBUG=Eleventy*& npx @11ty/eleventy
36
36
```
37
37
38
-
#### Powershell (VS Code default)
38
+
#### Powershell (default in VS Code)
39
39
40
40
```sh
41
41
$env:DEBUG="Eleventy*"; npx @11ty/eleventy
42
42
```
43
43
44
+
### Cross Platform
45
+
46
+
Use the [`cross-env` package](https://github.com/kentcdodds/cross-env) to compatibly set your environment variables cross-platform.
47
+
48
+
```sh
49
+
npm install cross-env
50
+
```
51
+
52
+
Now add an npm script in your `package.json`, unlocking `npm run debug`:
Copy file name to clipboardExpand all lines: src/docs/index.webc
+36-7Lines changed: 36 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ overrideCommunityLinks: true
16
16
17
17
<p>Eleventy <eleventy-version></eleventy-version> requires <strong><a href="https://nodejs.org/">Node.js</a> version <node-minimum></node-minimum></strong> or higher.</p>
18
18
19
-
<p>You can check whether or not you have Node installed by running <code>node --version</code> in a terminal window. (<a href="/docs/terminal-window/"><em>Well, wait—what is a Terminal window?</em></a>) If the command is not found or it reports a number lower than <node-minimum></node-minimum>, you will need to <a href="https://nodejs.org/en/download/">download and install Node.js</a> before moving on to the next step.</p>
19
+
<p>You can check whether or not you have Node installed by running <code>node --version</code> in a terminal application. (<a href="/docs/terminal-window/"><em>Well, wait—what is a Terminal?</em></a>) If the command is not found or it reports a number lower than <node-minimum></node-minimum>, you will need to <a href="https://nodejs.org/en/download/">download and install Node.js</a> before moving on to the next step.</p>
20
20
21
21
<p>Prefer to watch videos instead? Check out <a href="https://www.youtube.com/watch?v=kzf9A9tkkl4"><strong>6 minutes to Build a Blog from Scratch</strong></a>.</p>
22
22
@@ -85,15 +85,44 @@ If you see `({% latestVersion versions, config %})` in your output you know you
85
85
A <dfn>template</dfn> is a content file written in a [format such as Markdown, HTML, Liquid, Nunjucks, and more](/docs/languages/), which Eleventy transforms into a page (or pages) when building our site.
86
86
87
87
Let’s run two commands to create two new template files.
Alternatively, you can create these using any text editor—just make sure you save them into your project folder and they have the correct file extensions.
98
127
99
128
After you’ve created an HTML template and a Markdown template, let’s run Eleventy again with the following command:
Copy file name to clipboardExpand all lines: src/docs/terminal-window.md
+22-12Lines changed: 22 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,31 +6,41 @@ eleventyNavigation:
6
6
excludeFromSidebar: true
7
7
---
8
8
9
-
# Opening a Terminal Window
9
+
# Opening a Terminal
10
10
11
11
{% tableofcontents %}
12
12
13
-
Eleventy runs in a [Terminal window](https://en.wikipedia.org/wiki/Terminal_emulator). If you’re not familiar with Terminal windows, they’re used to run typed commands (and programs) on your computer. A Terminal window is mostly synonymous with terms like Command Line Interface (CLI) or shell prompt.
13
+
Eleventy runs in a [Terminal application](https://en.wikipedia.org/wiki/Terminal_emulator). If you’re not familiar with Terminal applications, they’re used to run typed commands (and programs) on your computer. A Terminal application is mostly synonymous with terms like Command Line Interface (CLI) or shell prompt.
14
14
15
-
Here’s how to open a Terminal window in various operating systems:
15
+
Here’s how to open a Terminal in various operating systems:
16
16
17
-
## Mac OS
17
+
## macOS
18
18
19
-
Mac OS includes an Application called `Terminal.app` which can be used to run Eleventy. Depending on your version of Mac OS, it may be in `/Applications/Utilities/Terminal.app`.
19
+
macOS includes an application called `Terminal` which can be used to run Eleventy. Depending on your version of macOS, it likely lives in `/Applications/Utilities/Terminal`. It may also be called `Terminal.app` if your operating system is configured to show file extensions.
20
20
21
21
-[Open or quit Terminal on Mac on the _Apple Terminal User Guide_](https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac)
22
22
23
23
## Windows
24
24
25
-
Depending on your version of Windows, it may include the `Terminal`App (aka Windows PowerShell), the `Command Prompt` (also known as `cmd.exe`), or both.
25
+
Depending on your version of Windows, it may include the `Terminal`application (aka Windows PowerShell, preferred), or the `Command Prompt` (also known as `cmd.exe`, not preferred), or both.
26
26
27
-
## Popular Alternatives
27
+
For the best terminal experience, we recommend installing [PowerShell Core](https://github.com/PowerShell/PowerShell) on your Windows machine, a newer and more future-compatible terminal application (also newly cross-platform!).
28
28
29
-
-[iTerm2](https://iterm2.com/) (Mac OS)
29
+
## Linux
30
30
31
-
### Editors bundled with Terminals
31
+
Depending on your flavor of Linux, it may be called `Terminal`, `Shell`, `Gnome Terminal`, `Konsole`, or `XTerm`.
32
32
33
-
-[Nova](https://nova.app/) (Mac OS)
34
-
-[Visual Studio Code](https://code.visualstudio.com/) (Mac OS, Windows, Linux)
33
+
## Editors
34
+
35
+
Some code editors bundle a terminal for you!
36
+
37
+
-[Nova](https://nova.app/) (macOS)
38
+
-[Visual Studio Code](https://code.visualstudio.com/) (macOS, Windows, Linux)
35
39
- On Windows, Visual Studio Code is bundled with Windows Powershell.
-[DigitalOcean: An introduction to the Linux Terminal](https://www.digitalocean.com/community/tutorials/an-introduction-to-the-linux-terminal#terminal-emulator)
45
+
-[Ubuntu guide: The Linux command line for beginners](https://ubuntu.com/tutorials/command-line-for-beginners#3-opening-a-terminal)
46
+
-[OpenSource.com: A guide to the Linux terminal for beginners](https://opensource.com/article/21/8/linux-terminal)
0 commit comments