This is the source
repo, all code is generated from here
The master
and source
branches are different repositories.
master
contains the resulting static html
source
contains the templates used to generate master
Luckily there's a script for that
./publish.sh
In detail, what actually happens is the following.
To publish the site, one needs to generate the source, copy over the files in .publish-copy
, then make a new commit on master. Remember old pages might need to be removed/updated, and new ones might need to be added. Also remember that the assets folder is currently not generated at all, but used to server usefull data.
I use the my alerts plugins, and if you want to develop the alerts plugin at the same time as the blog, you need to run
python setup.py develop
tiny
: Makes the text very small
.print-only
: Shows this when printing
.paragraph
: Makes the element style similar to the <p>
tag
.back-link
: Makes the <a>
tag href go back in history
report
: small-headers
, simple
cursive
: Currently nothing, but this would give the article a hand-written feel
small-headers
: Shrinks the headers at a faster progression to make it more noticable
simple
: Tries to hide a bunch of the fancy styling
The following define the basic article info
Title
Tagline
Date
Category
Tags
Optional Tags:
status
: Status of the article: draft
(not published), hidden
(not listed), published
slug
: what
Template
: The html style to use should be article
Style
: The css styles to use: simple
, small-headers
, report
, cursive
Flags:
IsNumbered
: Makes headers show numbers
NoSidenav
: Hides the sidebar
NoFooter
: Hides the footer
NoTags
: Hides the tags section
NoComments
: Hides the comments section
NoPermalink
: Makes the header not be a link to itself
<div markdown="1">
**bolded**
</div>
Apple
: Red fruit
Orange
: Orange Fruit
!defn_table!
Apple: Red fruit
Orange: Orange Fruit
!defn_table!
`DEBUG`: Debugs the app
`LOGGING`: Enables logging
This code contains HTML sometimes.
*[HTML]: Hyper Text Markup Language
Adds html tags to things
{: #someid .someclass somekey='some value' }
```python hl_lines="2 4"
#
# Important Comment
print "hello world"
```
This is important[^1], this isn't[^other]
[^1]: Define the footnote
[^other]:
Long definition
That spans multiple lines
TODO
: This needs to be finished
[TOC]
Adds diffs (del, ins tags)
++added++ ~~removed~~
added removed
Adds bootstrap alerts
!alert! info
Some optionally indented markdown that also gets processed
!endalert!
Forces headers to be wrapped in section tags for formatting
The following is my todo list for this site, feel free to ignore this, unless you're trying to get inspiration from this site, in which case, pay attention to what you might need to fix up.
- 404 page needs to auto search based on the url (and maybe email me?)
- Need to comment up css better
- Page search
- Pagination is plain right now
- No Feeds are enabled (working) at all right now
- Go back to X button should head to the previous url
- No Favicon
- Publish script needs to checkout the full repository including the assets folder, which is annoying
- Merge markdown Alerts and admonitions?
- Header Permalinks need to be enabled
-
.print-only
is broken. Fix it, then have the sitename appear in articles when printing (but not in the pdf name) - Webfonts don't get embedded when printing?