Skip to content

Commit 000744a

Browse files
committed
wording tweaks
1 parent 1393a93 commit 000744a

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

content/posts/170609-static-sites-pelican.markdown

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ headeralt: Pelican, Jinja2 and Markdown logos.
99

1010

1111
[Pelican](/pelican.html) is an incredibly well-built Python tool for
12-
[generating static sites](/static-site-generator.html).
12+
[creating static sites](/static-site-generator.html).
1313

14-
[Full Stack Python](https://www.fullstackpython.com/) is built with Pelican,
15-
[Jinja2 templates](/jinja2.html) and [Markdown](/markdown.html).
14+
[Full Stack Python](https://www.fullstackpython.com/) is generated with
15+
Pelican, [Jinja2 templates](/jinja2.html) and [Markdown](/markdown.html).
1616
This site is deployed to Amazon S3 and currently handles over one hundred
1717
thousand readers per month. There are never scaling concerns because a static
1818
site is pre-generated before deployment and a web server simply responds
1919
with existing files rather than executing any code on the server during
2020
the HTTP request-response cycle.
2121

22-
In this tutorial you will learn how to create a
23-
[static website](/static-site-generator.html) from scratch
24-
using [Pelican](/pelican.html).
22+
In this tutorial you will learn how to create your own
23+
[static website](/static-site-generator.html) from scratch using
24+
[Pelican](/pelican.html).
2525

2626
<img src="/img/170609-static-sites-pelican/gunship-bootstrap-css.png" width="100%" class="technical-diagram img-rounded" style="border:1px solid #ccc" alt="Articles page after Bootstrap CSS has been added.">
2727

@@ -58,14 +58,14 @@ look at
5858

5959
All code in this blog post is available open source under the MIT license
6060
on GitHub under the
61-
[generating-static-websites-pelican-jinja2-markdown directory of the blog-code-examples repository](https://github.com/fullstackpython/blog-code-examples).
61+
[generating-static-websites-pelican-jinja2-markdown directory of the blog-code-examples repository](https://github.com/fullstackpython/blog-code-examples/tree/master/generating-static-websites-pelican-jinja2-markdown).
6262
Use and abuse the source code as you like for your own applications.
6363

6464

6565
## Install the Pelican and Markdown libraries
6666
Start by creating a new virtual environment for your project. My virtualenv
67-
is named `staticsite` with the following command but you can name yours
68-
whatever matches the project you are creating.
67+
is named `staticsite` but you can name yours whatever matches the project
68+
you are creating.
6969

7070
```bash
7171
python3 -m venv staticsite
@@ -77,8 +77,8 @@ Activate the virtualenv.
7777
source staticsite/bin/activate
7878
```
7979

80-
When activated the virtualenv should prepend its name to your command prompt,
81-
as shown in the following screenshot of my terminal.
80+
The virtualenv will prepend its name to your command prompt when it is
81+
activated.
8282

8383
<img src="/img/170609-static-sites-pelican/activate-virtualenv.png" width="100%" class="technical-diagram img-rounded" style="border:1px solid #ccc" alt="Create and activate the Python virtual environment.">
8484

@@ -108,13 +108,12 @@ building our static site.
108108

109109

110110
## Generate a Basic Site
111-
Create a new directory for your project. My site will contain some of my
112-
favorite [retro synthwave](https://www.youtube.com/watch?v=uYRZV8dV10w)
111+
Create a new directory to store your project. My site will contain some of
112+
my favorite [retro synthwave](https://www.youtube.com/watch?v=uYRZV8dV10w)
113113
artists as examples, but of course your site can contain whatever subjects
114114
that you want.
115115

116-
Create a new directory for our static site project and change into the
117-
directory.
116+
Change into the project directory after creating it.
118117

119118
```
120119
mkdir retrosynth
@@ -160,7 +159,7 @@ Done. Your new project is available at /Users/matt/devel/py/retrosynth
160159
(staticsite) $
161160
```
162161

163-
What did we just create using the Pelican quickstart script? Check out
162+
What did we just create using Pelican's quickstart script? Check out
164163
the new files in the directory.
165164

166165
```bash
@@ -174,10 +173,10 @@ The quickstart created five files and one new directory:
174173
* `Makefile`: `make` command convenience tasks for common operations such as
175174
running a development server, building a site and cleaning extraneous
176175
build files
177-
* `fabfile.py`: A Fabric file that has some of the same types of commands
178-
as the `Makefile`. Fabric is a wonderful code library but for now I
179-
recommend skipping the Fabric file because unfortunately Fabric does not
180-
yet support Python 3.
176+
* `fabfile.py`: A [Fabric](http://www.fabfile.org/) file that has some of
177+
the same types of commands as the `Makefile`. Fabric is a wonderful code
178+
library but for now I recommend skipping the Fabric file because
179+
unfortunately Fabric does not yet support Python 3.
181180
* `develop_server.sh`: shell script for running the development server
182181
* `pelicanconf.py`: settings file for your Pelican project. If you are used
183182
to earlier versions of Pelican this file was instead named `settings.py`
@@ -196,7 +195,7 @@ make devserver
196195
```
197196

198197
The Pelican development server will start serving up your site with a
199-
daeman process. Go to [localhost:8000](http://localhost:8000) in your web
198+
daemon process. Go to [localhost:8000](http://localhost:8000) in your web
200199
browser and you will see the first version of your static site.
201200

202201
<img src="/img/170609-static-sites-pelican/default-style.png" width="100%" class="technical-diagram img-rounded" style="border:1px solid #ccc" alt="Default styling on the Pelican static site.">
@@ -232,7 +231,7 @@ serve our site after we create our initial content.
232231

233232
It is up to you whether you want to use the development server or not
234233
while creating your site. Every time I want to view my changes for
235-
Full Stack Python I actually regenerate the site using my own Makefile that
234+
Full Stack Python I regenerate the site using my own Makefile that
236235
wraps the `pelican` command. The `python -m http.server` command constantly
237236
serves up each build's changes.
238237

@@ -244,7 +243,7 @@ some initial content.
244243
Pelican can accept both [Markdown](/markdown.html) and reStructureText
245244
markup files as input.
246245

247-
Create a new subdirectory under the `content` named `posts`. Change into
246+
Make a new subdirectory under the `content` named `posts`. Change into
248247
the `posts` directory. Create a new file named `gunship.markdown` with
249248
the following content.
250249

@@ -273,9 +272,6 @@ and
273272
[Daniel Deluxe](https://danieldeluxe.bandcamp.com/).
274273
```
275274

276-
What does our server look like now that we wrote our first post?
277-
278-
279275
Our `make` file can also help us regenerate the site when changes occur
280276
if we choose to not use the development server.
281277

@@ -347,8 +343,9 @@ python -m http.server 8005
347343
Note that if you are using Python 2 the equivalent HTTP server command is
348344
`python -m SimpleHTTPServer`.
349345

350-
We now have some very basic site content. We could expand this start into many
351-
more posts and pages but let's learn how to modify the site configuration.
346+
Our site now has some very basic content. We could expand this start into
347+
many more posts and pages but let's learn how to modify the site
348+
configuration.
352349

353350

354351
## Edit Site Configuration

0 commit comments

Comments
 (0)