summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-01-07refactor: move RikiError::UnknownTimestamp to src/time.rsLars Wirzenius4-8/+16
Sponsored-by: author
2023-01-07refactor: drop unused RikiError::TooManyUnusedArgsLars Wirzenius1-3/+0
Sponsored-by: author
2023-01-07refactor: move RikiError::WikitextSyntax into src/parser.rsLars Wirzenius2-4/+10
Sponsored-by: author
2023-01-07refactor: move directive errors to src/directive/mod.rsLars Wirzenius17-87/+91
Sponsored-by: author
2023-01-07refactor: drop unused SiteError::RelativeLars Wirzenius1-3/+0
Sponsored-by: author
2023-01-07refactor: rename SiteError to RikiErrorLars Wirzenius22-100/+100
I may want to use the name SiteError just for src/site.rs. Sponsored-by: author
2023-01-07refactor: move SiteError::Utf8 into src.page.rsLars Wirzenius2-4/+4
Sponsored-by: author
2023-01-07refactor: move SiteError::FileRead into src/page.rsLars Wirzenius2-3/+9
Sponsored-by: author
2023-01-07refactor: drop SiteError::FileWriteLars Wirzenius1-3/+0
Sponsored-by: author
2023-01-07refactor: only use GitError in src/git.rsLars Wirzenius1-3/+2
Sponsored-by: author
2023-01-07refactor: move GitInvoke, GitError into src/git.rsLars Wirzenius2-9/+9
Sponsored-by: author
2023-01-07refactor: drop unused SiteError::DefinitionListLars Wirzenius1-3/+0
Sponsored-by: author
2023-01-07refactor: drop unused SiteError::CreateFileLars Wirzenius1-3/+0
Sponsored-by: author
2023-01-07refactor: move ParseUnixTimestamp into src/git.rsLars Wirzenius2-4/+10
Sponsored-by: author
2023-01-07refactor: move some errors into src/util.rsLars Wirzenius2-37/+42
Sponsored-by: author
2023-01-07refactor: move WalkDir error to src/srcdir.rsLars Wirzenius2-5/+10
Sponsored-by: author
2023-01-07refactor: drop unused SourceDirMissing errorLars Wirzenius1-3/+0
Sponsored-by: author
2022-12-04Merge branch 'docs' into 'main'Lars Wirzenius1-0/+29
docs: add docstrings to html module See merge request larswirzenius/riki!71
2022-12-04docs: add docstrings to html moduleLars Wirzenius1-0/+29
Sponsored-by: author
2022-12-04Merge branch 'liw/refactor-errors' into 'main'Lars Wirzenius4-16/+50
refactor: create an error type for the html module See merge request larswirzenius/riki!70
2022-12-04refactor: create an error type for the html moduleLars Wirzenius4-16/+50
This allows the HTML module to be more easily used in Subplot by copying the module into Subplot. Sponsored-by: author
2022-12-04Merge branch 'fixes' into 'main'Lars Wirzenius6-18/+57
fix: typo in heading See merge request larswirzenius/riki!69
2022-12-04fix: avoid taking a too-long sliceLars Wirzenius1-1/+1
Sponsored-by: author
2022-12-04fix: handle optional title in image linksLars Wirzenius6-16/+55
Sponsored-by: author
2022-12-04fix: typo in headingLars Wirzenius1-1/+1
Sponsored-by: author
2022-12-03Merge branch 'liw/page-refactor-v2' into 'main'Lars Wirzenius2-19/+39
refactor: add a simpler Page data type for clarity See merge request larswirzenius/riki!68
2022-12-03refactor: add a simpler Page data type for clarityLars Wirzenius2-19/+39
Sponsored-by: author
2022-11-09Merge branch 'liw/toc' into 'main'Lars Wirzenius22-299/+411
add rudimentary ToC; cleanups; refactoring See merge request larswirzenius/riki!67
2022-11-09feat: implement rudimentary table of contents, without linksLars Wirzenius7-20/+128
The links will be added later. Sponsored-by: author
2022-11-09refactor: directive processing returns Processed valueLars Wirzenius15-38/+37
Sponsored-by: author
2022-11-09refactor: use trait for all directive implementationsLars Wirzenius14-265/+255
Sponsored-by: author
2022-11-09use DirectiveImplementation for CalendarLars Wirzenius2-11/+10
Sponsored-by: author
2022-11-09add trait for directive implementationsLars Wirzenius1-0/+8
Sponsored-by: author
2022-11-09refactor: processing a directive returns Processed type, not StringLars Wirzenius2-6/+14
This paves way for non-Markdown placeholders that can be post-processed. Sponsored-by: author
2022-11-09chore: remove unnecessary borrowsLars Wirzenius4-5/+5
Found by clippy. Sponsored-by: author
2022-11-02Merge branch 'liw/inline' into 'main'Lars Wirzenius1-7/+26
feat: implement a simple version of the inline directive See merge request larswirzenius/riki!66
2022-11-02feat: implement a simple version of the inline directiveLars Wirzenius1-7/+26
This version just produces a list of links to the matching pages. The link text is the page title, is any. Sponsored-by: author
2022-10-26Merge branch 'element-location' into 'main'Lars Wirzenius1-17/+37
feat: store start location of each element See merge request larswirzenius/riki!65
2022-10-26feat: store start location of each elementLars Wirzenius1-17/+37
Sponsored-by: author
2022-10-23Merge branch 'liw/drop-brokenlinks' into 'main'Lars Wirzenius2-41/+0
drop: unnecessary brokenlinks directive See merge request larswirzenius/riki!64
2022-10-23drop: unnecessary brokenlinks directiveLars Wirzenius2-41/+0
We already check intrasite links. Site build will fail if a wikilink refers to target that doesn't exist. The brokenlinks directive is thus unnecessary. Sponsored-by: author
2022-10-23Merge branch 'liw/unimplemented' into 'main'Lars Wirzenius11-10/+13
fix: make unimplemented directives be a runtime error See merge request larswirzenius/riki!63
2022-10-23fix: make unimplemented directives be a runtime errorLars Wirzenius11-10/+13
Sponsored-by: author
2022-10-23Merge branch 'liw/syntax-errors' into 'main'Lars Wirzenius2-30/+18
fix: return error for wikitext syntax errors, instead of panic See merge request larswirzenius/riki!62
2022-10-23fix: return error for wikitext syntax errors, instead of panicLars Wirzenius2-30/+18
Sponsored-by: author
2022-10-23Merge branch 'liw/simplify-token-stream-parsing' into 'main'Lars Wirzenius4-100/+128
refactor: simplify parsing of token stream See merge request larswirzenius/riki!61
2022-10-23chore: simplify code based on clippy suggestionsLars Wirzenius2-15/+3
Sponsored-by: author
2022-10-23refactor: simplify parsing of token streamLars Wirzenius2-85/+125
Sponsored-by: author
2022-10-22Merge branch 'liw/wherefail' into 'main'Lars Wirzenius6-161/+212
feat: give location in source for errors Closes #7 See merge request larswirzenius/riki!60
2022-10-22feat: give location in source for errorsLars Wirzenius6-161/+212
Sponsored-by: author