Skip to content

Commit 4874ca1

Browse files
reshuffle organization
1 parent e4c5e2c commit 4874ca1

28 files changed

+8
-12
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,4 @@ build: clean
44
./build.py
55

66
clean:
7-
rm -f *.html
8-
rm -rf drafts
9-
rm -rf images
10-
rm -rf pages
7+
rm -rf docs/

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# [dragoncoder047.github.io](https://dragoncoder047.github.io)
22

3-
Static files and top-level content for my site.
4-
5-
The `aaaa/` directory is the source Markdown files for my site. I chose that name because the output directory that Pelican builds into is actually the root directory and I am pretty sure that I am not going to create anything called `aaaa` and have a name collision.
3+
All top-level content for my site (CSS, JS, 404 page, etc) lives here. It's a static website built using the amazing [Pelican](https://getpelican.com) static site generator.
64

75
`build.py` is my pelicanconf file, but made executable with a shebang and this at the end:
86

@@ -12,6 +10,6 @@ if __name__ == '__main__':
1210
os.system(f'pelican {PATH} -o {OUTPUT_PATH} -s {__file__}')
1311
```
1412

15-
No more clunky Makefile!
13+
That way, all the makefile has to do is run `build.py`.
1614

17-
`drafts/` and `images/` are automatically generated by Pelican. `images/` (should) be the same as `aaaa/images/`, while `drafts/` is all of the files in `aaaa/` marked as `Status: draft` at the top.
15+
`markdown/` contains the source files, `docs/` contains the output HTML. I would call it something different, but Github Pages only let you deploy from either the root or `docs/`, and I got tired of all the output HTML cluttering up the root, so `docs/` it is.

build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
THEME_STATIC_DIR = 'static/'
2222
USE_FOLDER_AS_CATEGORY = False
2323

24-
PATH = 'aaaa/'
25-
OUTPUT_PATH = './'
24+
PATH = 'markdown/'
25+
OUTPUT_PATH = 'docs/'
2626

2727
TIMEZONE = 'America/New_York'
2828

@@ -167,7 +167,7 @@ def default_fence(source, language, css_class, options, md, **kwargs):
167167

168168
PLUGINS = [
169169
# 'seo',
170-
'pelican.plugins.share_post',
170+
'pelican.plugins.share_post', # XXX 7/29/23 BS4 issues MarkupResemblesLocatorWarning
171171
# 'sitemap',
172172
'pelican.plugins.related_posts',
173173
'minchin.pelican.plugins.nojekyll',

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

404.html renamed to docs/404.html

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)