| Commit message (Collapse) | Author | Age |
| | |
|
| |
|
|
|
| |
The has_static routine that checks whether links to static files are
valid now correctly considers generated feeds as static files.
|
| |
|
|
|
|
|
|
|
|
|
| |
A quick list of everything that's changed:
- links to a duplicate heading beneath the same level 1 heading now work
- rss feed generation using a .feed file
- customisation of the html template using the html.template key
- option to use symlinks instead of copying static files
- fixed incorrect resolution of internal links
- simplified different name forms with the Name type
- allow linking to a redirect
|
| |
|
|
| |
This makes things tidier.
|
| |
|
|
| |
More housekeeping to make the codebase more understandable.
|
| |
|
|
| |
This has no real effect on the program, it's more for tidiness.
|
| | |
|
| |
|
|
|
|
|
| |
This was an important functionality for a lot of my math notes, so
I've brought it back, but only if the math syntax fragment doesn't
contain a '\begin', which denotes the sort of advanced environment
where automatic line breaks are not welcome.
|
| |
|
|
|
| |
An apostrophe or quotation mark should point right (start a quote) if
it is preceded either by whitespace or a punctuation character.
|
| |
|
|
|
| |
Some KaTeX contexts (matrix, array) don't work correctly if every line
is manually broken, so we now leave this up to the user.
|
| |
|
|
|
|
| |
Page titles are now treated as markdown and rendered as HTML. The URL
for a page will be the plain-text version of the title, with markdown
syntax stripped out.
|
| |
|
|
|
| |
This makes it easier for other people to compile Toaster, by not having
to specify +nightly.
|
| |
|
|
|
|
| |
This fixes an issue where tables that contain line elements that
themselves contain characters that are valid delimiters for another
line element were not being recognised as tables.
|
| |
|
|
|
|
|
| |
Galleries previously required images to be placed in /images/large/..
and /images/thumb/.., but this was a chore if there was only a single
average-quality version of the image to display. The path /images/..
is now used as a fallback if these more specialised paths do not exist.
|
| |
|
|
|
| |
This kind of works, but the whole system will have to be rewritten
from the ground up so that every heading knows its own canonical name.
|
| |
|
|
|
| |
This adds ignoring of pipe characters in styled tokens in tables, so
that I can use pipe characters inside equations in tables.
|
| | |
|
| |
|
|
| |
This is needed to be able to center a video in the page.
|
| | |
|
| |
|
|
|
| |
This is needed so that I can include the analytics script in all of my
redirect pages.
|
| |
|
|
|
|
| |
Markdown files could use a numeric prefix to force files to sort in a
particular order, with that prefix being stripped off and ignored by
toaster. This commit allows folders to also use a sorting prefix.
|
| | |
|
| |
|
|
|
| |
The markdown document is already passed as a field on the page
argument, so passing it in as a separate argument was redundant.
|
| |
|
|
|
|
| |
This is so that a heading can be clicked to get a permalink to that
heading, which is useful when sending someone a link to a particular
section of a document.
|
| |
|
|
|
| |
This is to make it possible when printing the document to start each h1
heading element at the top of a new page using CSS.
|
| |
|
|
|
| |
This is in addition to the existing table of contents at the top of
each page.
|
| |
|
|
|
| |
This considerably reduces the binary bloat originally introduced by the
highlight crate.
|
| |
|
|
|
|
| |
These will both add content to the <head> HTML element on that page,
with the override variant also preventing the default head declared in
the toaster.conf file from being used on that page.
|
| |
|
|
|
| |
The name of each page is now prefixed with the name of the parent in
log messages, to disambiguate between pages that share the same name.
|
| | |
|
| |
|
|
|
|
|
| |
A new key 'highlighters' has been added to the toaster.conf file. The
value should be a line defining the languages to use that syntax for,
like [py/python]. The lines following are the template definitions, as
per the highlighter library.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
A dash that isn't mid-word will be replaced with an em dash if in the
middle of a line, or with an en dash if at the start of a line.
|
| |
|
|
|
|
| |
Count level 3 headings when deciding whether there are enough headings
on a page to justify generating a table of contents. Previously, only
level 1 and 2 headings were being counted.
|
| |
|
|
|
|
|
| |
Headings that contained line elements other than Normal were being
stringified with the line_to_html function, which was causing the
generated ID for such a heading to contain HTML tags. This was fixed
by instead stringifying using the basic to_string() method of Line.
|
| | |
|
| |
|
|
|
|
| |
The latest version of the markdown library supports labelled internal
links, which allows an internal link to point to a page but to display
with a different name.
|
| |
|
|
|
| |
Syntax fragments with unhandled languages were not being correctly
converted to HTML.
|
| |
|
|
|
|
|
|
|
|
|
| |
Unlike for internal links, external links are never sanitized. When an
external link contained an apostrophe or a double-quote character, it
would prematurely terminate the href property of the containing <a> tag
and break the link.
Paths in internal and external links are now passed through a new
url_encode function, which replaces quote characters with the
percent-encoded equivalent.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
This type is for showing a list of pages as clickable image previews.
Each line in the fragment is an internal page link, followed by a '::'
separator, followed by the name of an image file. Image files must be
stored inside the '/images/thumb/' directory of the generated website.
|