summaryrefslogtreecommitdiffstats
path: root/pkgs/simple/cgit-about-filter
Commit message (Collapse)AuthorAgeFilesLines
* cgit-about-filter: unhighlight on clicks outside linkstv7 days1-10/+16
| | | | | | While a heading is the #fragment, a click anywhere but on a link removes the fragment, like a click on the heading itself. Other links work as before, and a click that ends a text selection keeps the highlight.
* cgit-about-filter: link headings instead of a link symboltv7 days1-9/+24
| | | | | | The heading itself links to itself, underlined on hover. Clicking the heading the #fragment points to removes the fragment again, and with it the highlight.
* cgit-about-filter: link symbol after headingstv8 days1-1/+13
| | | | | | A chain link after each heading links to it, so the link can be copied. It shows when the heading is hovered or focused, and always on devices without hover.
* cgit-about-filter: highlight the target headingtv8 days1-0/+10
|
* cgit-about-filter: give headings idstv8 days1-0/+27
| | | | | | | md2html renders headings without ids, so links to #fragments go nowhere. Make ids the way GitHub does. Ids cgit uses on the about page get a suffix like repeated ones, so a heading "Summary" gets "summary-1" rather than clashing with <div id='summary'>.
* cgit-about-filter: all .md is renderabletv8 days1-1/+1
|
* cgit-about-filter: show errors in filter_open and filter_writetv8 days1-4/+24
| | | | | Errors there are swallowed the same way as in filter_close. Remember the first error and show it when the filter closes.
* cgit-about-filter: show errorstv8 days1-1/+13
| | | | | | | While a Lua filter is open, cgit hooks its own output into the filter. On a Lua error, cgit's error page ends up in the filter's buffer, so the response ends after <div id='summary'> and nothing is logged. Catch errors in filter_close and show them with a traceback.
* cgit-about-filter: check syntax at build timetv8 days1-4/+12
| | | | | | cgit loads Lua filters at request time, and with caching enabled, a filter that fails to load produces an empty response and an error page in a cache lock file, with nothing in any log. Fail the build instead.
* cgit-about-filter: link directories to their README.mdtv8 days2-8/+67
| | | | | | | A relative link to a directory goes to the about page of the directory's README.md, if the filter renders it and it exists on the branch being viewed, and to the tree otherwise. One git cat-file checks all links of a page.
* cgit-about-filter: factor out runtv8 days1-7/+11
| | | | The next commit runs git the same way as md2html.
* cgit-about-filter: size mermaid diagrams like the pagetv13 days1-2/+26
|
* cgit-about-filter: render mermaid diagramstv13 days1-0/+35
|
* cgit-about-filter: share column widths between tablestv13 days1-0/+90
|
* cgit-about-filter: style tablestv13 days1-0/+33
|
* cgit-about-filter: write through html()tv13 days1-7/+25
|
* cgit-about-filter: keep the branch in linkstv13 days1-2/+32
|
* cgit-about-filter: keep fragments out of the pathtv13 days1-2/+5
|
* cgit-about-filter: inittv13 days2-0/+98