Compare commits
2 Commits
30c41674a7
...
709aed165a
Author | SHA1 | Date | |
---|---|---|---|
709aed165a | |||
5a6b72fd54 |
9
build.py
9
build.py
@ -21,7 +21,8 @@ static_directory = 'static'
|
|||||||
output_directory = 'output'
|
output_directory = 'output'
|
||||||
deploy_directory = '~/src/www-home'
|
deploy_directory = '~/src/www-home'
|
||||||
|
|
||||||
md_extensions = ['fenced_code', 'codehilite', 'nl2br', 'toc', 'smarty', 'tables', 'linkify']
|
md_extensions = [
|
||||||
|
'fenced_code', 'codehilite', 'nl2br', 'toc', 'smarty', 'tables', 'linkify']
|
||||||
|
|
||||||
|
|
||||||
def print_file(in_file, out_file):
|
def print_file(in_file, out_file):
|
||||||
@ -74,7 +75,8 @@ def process_markdown_files():
|
|||||||
if page_url.endswith('index.html'): # strip off index.html
|
if page_url.endswith('index.html'): # strip off index.html
|
||||||
page_url = page_url[:-len('index.html')]
|
page_url = page_url[:-len('index.html')]
|
||||||
|
|
||||||
html = markdown.markdown(text, extensions=md_extensions, output_format='html5')
|
html = markdown.markdown(
|
||||||
|
text, extensions=md_extensions, output_format='html5')
|
||||||
output = template.format(title=title, content=html, page_url=page_url)
|
output = template.format(title=title, content=html, page_url=page_url)
|
||||||
|
|
||||||
os.makedirs(out_dirpath, exist_ok=True)
|
os.makedirs(out_dirpath, exist_ok=True)
|
||||||
@ -129,6 +131,9 @@ def main():
|
|||||||
make_rss()
|
make_rss()
|
||||||
|
|
||||||
if args.deploy:
|
if args.deploy:
|
||||||
|
if args.fast:
|
||||||
|
print('cowardly refusing to deploy a site that was built with --fast')
|
||||||
|
else:
|
||||||
deploy_site()
|
deploy_site()
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,13 +63,6 @@ Sometimes I stream on Twitch!
|
|||||||
![Nintendo Switch](/img/nintendoswitch.svg) SW-1906-3662-4308
|
![Nintendo Switch](/img/nintendoswitch.svg) SW-1906-3662-4308
|
||||||
|
|
||||||
|
|
||||||
## Latest Photo
|
|
||||||
|
|
||||||
![Park At Dusk](https://pbs.twimg.com/media/E3K1nuHXwAEYWIh?format=jpg&name=large)
|
|
||||||
|
|
||||||
Park at dusk, 2021-06-05 from my [#dailyphoto](https://twitter.com/mcmillen/status/1401382131117531137) thread on Twitter.
|
|
||||||
|
|
||||||
|
|
||||||
## Trivia
|
## Trivia
|
||||||
|
|
||||||
* My Erdős number is 3 (Paul Erdős → Noga Alon → Manuel Blum → me).
|
* My Erdős number is 3 (Paul Erdős → Noga Alon → Manuel Blum → me).
|
||||||
@ -77,6 +70,13 @@ Park at dusk, 2021-06-05 from my [#dailyphoto](https://twitter.com/mcmillen/stat
|
|||||||
* I proposed to my spouse in [obfuscated Perl](https://www.perlmonks.org/?node_id=384100), which got illustrated in [PHD Comics](http://phdcomics.com/comics/archive.php?comicid=824).
|
* I proposed to my spouse in [obfuscated Perl](https://www.perlmonks.org/?node_id=384100), which got illustrated in [PHD Comics](http://phdcomics.com/comics/archive.php?comicid=824).
|
||||||
|
|
||||||
|
|
||||||
|
## Latest Photo
|
||||||
|
|
||||||
|
![Park At Dusk](https://pbs.twimg.com/media/E3K1nuHXwAEYWIh?format=jpg&name=large)
|
||||||
|
|
||||||
|
Park at dusk, 2021-06-05 from my [#dailyphoto](https://twitter.com/mcmillen/status/1401382131117531137) thread on Twitter.
|
||||||
|
|
||||||
|
|
||||||
## News Articles
|
## News Articles
|
||||||
|
|
||||||
A selection of news articles & books in which I've been featured or quoted:
|
A selection of news articles & books in which I've been featured or quoted:
|
||||||
|
Loading…
Reference in New Issue
Block a user