summaryrefslogtreecommitdiff
path: root/riki.md
AgeCommit message (Collapse)AuthorFilesLines
2023-04-14chore: bump dependency on Subplot to currentLars Wirzenius1-4/+4
Also, change a couple of scenario titles to work around a Subplot problem that results in no name in generated Rust functions. Sponsored-by: author
2023-04-10refactor: use html-page crate to represent HTMLLars Wirzenius1-11/+12
Sponsored-by: author
2022-12-04fix: handle optional title in image linksLars Wirzenius1-1/+1
Sponsored-by: author
2022-12-04fix: typo in headingLars Wirzenius1-1/+1
Sponsored-by: author
2022-11-09feat: implement rudimentary table of contents, without linksLars Wirzenius1-0/+20
The links will be added later. Sponsored-by: author
2022-10-09docs: add some software architecture to riki.mdLars Wirzenius1-0/+82
Sponsored-by: author
2022-09-23feat: implement table directiveLars Wirzenius1-0/+26
Sponsored-by: author
2022-09-17feat! generate foo/index.html for foo.mdwn (ikiwiki usedirs)Lars Wirzenius1-24/+24
Implement the ikiwiki "usedirs" functionality in riki, so that riki generates compatible URLs with ikiwiki. This means that for an input page foo.mdwn, riki generates an output page of foo/index.html. ikiwiki has its "usedirs" setting enabled by default, with the following justification: There are several advantages to `usedirs`, including simpler URLs, URLs that aren't dependent on the underlying implementation (`.html`), and being able to use URLs as tags as described in the [rel-tag microformat](http://microformats.org/wiki/rel-tag). The main disadvantage is that it is harder to browse using `file://` URIs, since `file:///dir/` doesn't automatically translate to `dir/index.html`. This is something one could fix in the browser though. For riki it's enough to be compatible with ikiwiki. Sponsored-by: author
2022-09-17chore: update to new SubplotLars Wirzenius1-12/+0
Sponsored-by: author
2022-09-08feat: img directive link generationLars Wirzenius1-5/+36
This is just simple enough for me for now. Sponsored-by: author
2022-09-08feat: implement the img directiveLars Wirzenius1-14/+49
Sponsored-by: author
2022-09-08drop: img height, widthLars Wirzenius1-0/+32
Not documented for ikiwiki. Sponsored-by: author
2022-09-01feat: allow shortcuts to be defined anywhereLars Wirzenius1-5/+8
ikiwiki requires shortcuts to be defined in a paged called "shortcuts". We allow them anywhere, but this requires us to introduce a preparation phase: directives (shortcuts only for now) can be asked to prepare before they're later processed. For shortcuts preparing means adding the shortcut to the site's list of shortcuts. Sponsored-by: author
2022-08-21feat: set output HTML file mtime from "meta date" directiveLars Wirzenius1-0/+23
Sponsored-by: author
2022-08-10feat: implement shortcut directiveLars Wirzenius1-47/+67
Sponsored-by: author
2022-08-05feat: set file commit time to git commit timestamp, unless changedLars Wirzenius1-1/+1
If a file is committed to git and hasn't been changed, use the latest commit time for the file as the timestamp of the output file. This lacks tests, as I find it too much of a bother to set up git histories with timestamps. Sponsored-by: author
2022-08-05refactor: use new type for namesLars Wirzenius1-0/+12
This is a big change that was not feasible to turn into a tidy series of small steps. Sorry. Re-work the processing queue so that wikitext pages are not loaded as soon as the files are round in Site::scan, but later, though still in ::scan. This is a little cleaner. Fix: don't copy markdown files to the destination tree, and verify that it doesn't happen in the subplot. Also, un-publish Site::add_wikitextpage and Site::add_other_file. They're not needed from outside site.rs. Also, drop Sites::included_files, as it was the same as Site::files. Sponsored-by: author
2022-08-03feat: set output file modification timesLars Wirzenius1-0/+21
Sponsored-by: author
2022-07-31feat: check for definition lists, and fail if foundLars Wirzenius1-0/+46
Sponsored-by: author
2022-07-25fix: comment out unused embedded filesLars Wirzenius1-1/+4
Sponsored-by: author
2022-07-25feat: exclude unwanted files from siteLars Wirzenius1-0/+11
Sponsored-by: author
2022-07-25feat: "riki list" to list source files for a siteLars Wirzenius1-0/+24
Sponsored-by: author
2022-07-22feat: img directiveLars Wirzenius1-0/+21
Sponsored-by: author
2022-07-21feat: generate only relative HTML links from wiki linksLars Wirzenius1-4/+4
This will allow the generated HTML to be rooted at any prefix. Sponsored-by: author
2022-07-21feat: wiki links are case insensitiveLars Wirzenius1-3/+6
If a page FOO.mdwn exists, a link `[[foo]]` points to it. Sponsored-by: author
2022-07-20feat! linking to a page that doesn't exist is an errorLars Wirzenius1-1/+14
On a user-editable wiki, it is useful to allow links to targets that don't exist. In a static site generator, not. Sponsored-by: author
2022-07-17feat: "meta title" directiveLars Wirzenius1-19/+36
Add some infrastructure for directives, and implement the meta title directive. Sponsored-by: author
2022-07-17feat: resolve links to other pagesLars Wirzenius1-0/+28
This is meant to implement the rules described on https://ikiwiki.info/ikiwiki/subpage/linkingrules/. Sponsored-by: author
2022-07-12feat! add subcommand "build"Lars Wirzenius1-18/+18
This will open the chance of other subcommands in the future. Sponsored-by: author
2022-07-12test: add scenario for task listLars Wirzenius1-0/+18
Sponsored-by: author
2022-07-12test: add a disabled test for ordered listsLars Wirzenius1-0/+21
Sponsored-by: author
2022-07-12test: add scenario for unordered listLars Wirzenius1-0/+18
Sponsored-by: author
2022-07-12test: add scenario for horizontal ruleLars Wirzenius1-0/+21
Sponsored-by: author
2022-07-12test: add disabled test for tablesLars Wirzenius1-0/+21
Sponsored-by: author
2022-07-12test: add scenario for quoted blockLars Wirzenius1-0/+18
Sponsored-by: author
2022-07-09feat: support up to six levels of headingLars Wirzenius1-6/+13
Sponsored-by: author
2022-07-08test: verify that input files in sub-directories workLars Wirzenius1-0/+15
Sponsored-by: author
2022-07-08feat: copy non-Markdown files as-isLars Wirzenius1-0/+18
Sponsored-by: author
2022-07-04docs: explain approach for verification scenariosLars Wirzenius1-2/+11
Sponsored-by: author
2022-07-03chore: rename project to rikiLars Wirzenius1-0/+199
It's a subset of ikiwiki and r for rust. Thank you, Daniel Silverstone, for the inspiration for the name. Sponsored-by: author