summaryrefslogtreecommitdiff
path: root/repo/www/helpers.py
AgeCommit message (Collapse)Author
2020-08-28Make sure titles are not redundant with breadcrumbsKévin Le Gouguec
The logic for the various titles on any given page is: ∃README ∃title block <title> ⇒ title block <header> <h1> ⇒ title block TOC <h1> ⇒ "Index for {target}" ∄title block <title> ⇒ "{target}" or "README" <header> <h1> ⇒ ∅ TOC <h1> ⇒ "Index for {target}" ∄README <title> ⇒ "Index for {target}" <header> <h1> ⇒ "Index" TOC <h1> ⇒ ∅
2020-08-28Add breadcrumbsKévin Le Gouguec
Likewise, use relative links so that things work when just browsing files locally without a server. Next: tweak or remove redundant titles.
2020-08-25Include stylesheetsKévin Le Gouguec
With relative links, so that I can just view HTML files on my disk without spawning a webserver.
2020-08-20Use pandoc's --include-after flagKévin Le Gouguec
Thereby allowing non-markdown READMEs. This needs refactoring; I need sleep.
2020-08-19Put extensions in Lua module instead of sneaking them in environmentKévin Le Gouguec
Note that neither .cache/config.lua nor .cache/site-tree.json get updated when EXTENSIONS changes. This could be hacked as follows: config = EXTENSIONS="$(EXTENSIONS)" ifneq "$(shell test -f $(config_token) && cat $(config_token))" \ "$(shell ./generate-config-token.py $(config))" .PHONY: $(lua_config) $(site_tree) $(config_token) endif Plus a recipe for config_token, and some dependencies on it.
2020-08-18Pass filters to generation scripts explicitlyKévin Le Gouguec
2020-08-18Mutualize pandoc invocationsKévin Le Gouguec
Will be useful to avoid duplicating changes to Lua filters.
2020-04-12Add intermediate step to cache site treeKévin Le Gouguec
Seems kind of wasteful to recompute it every time. Also, now subsequent scripts don't have to care about file extensions anymore.
2020-04-12Start fixing some files being inaccessibleKévin Le Gouguec
If an intermediate folder contains no leaf page, the previous code does not add it to the parent directory's subfolders. Still needs support from generate-deps.py.
2020-03-15Generate indices for folders without READMEsKévin Le Gouguec