about summary refs log tree commit homepage
path: root/contrib
DateCommit message (Collapse)
2023-03-25lei: improve bash completion involving colons
This fixes completions of labels (`+L:' for `lei import' and `L:' for `lei q') so they can appear anywhere in the command-line. I mainly wanted this for `lei import $URL +L:label', but this also fixes `lei forget-external' completions for URLs (which involve colons).
2021-10-25contrib/css/216light: add more contrast to foreground text
333 on dimmed displays doesn't show up well. I still find 000 foregrounds too harsh, though, but 003 is available. It seems dark enough to not cause problems while not being too harsh. 003 should be available on more displays, even, and could fit a 22-color "safest" color scheme.
2021-08-16Duplicate base css definitions in stylesheets
All pages carry the following inlined css declaration: <style>pre{white-space:pre-wrap}*{font-size:100%;font-family:monospace}</style> However, site security policies may deliberately prohibit execution of inline content such as scripts and stylesheets as an extra layer of protection against XSS vulnerabilities. For example, with the following HTTP headers returned by the server, the inline styles above will be ignored: Content-Security-Policy: default-src 'self' This causes public-inbox content to be rendered poorly on mobile devices due to the default <pre> behaviour. Duplicating this declaration into the contrib stylesheets makes sure that these styles are applied even with the strictest security policies in place. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
2021-04-30lei import: support shell completion of known folders
This also fixes completion of "lei up" for IMAP folders.
2021-02-18lei: completion: bash: generalize nospace usage
We'll be completing more options with ':', '//' and '=' in the future, so make it easier to disable trailing spaces on completions.
2021-02-07lei: add-external --mirror support
This can be useful for users who want to clone and mirror an existing public-inbox. This doesn't have update support, yet, so users will need to run "git fetch && public-inbox-index" for now.
2021-02-04lei add-external: completion for existing URL basenames
Given the presence of one external on a certain host or prefix path, it's logical other inboxes would share a common prefix. For bash users, attempt to complete that using the "-o nospace" option of bash
2021-01-06lei: completion: fix filename completion
"-o default" is what we want from "complete", "-o filename" just tells readline the result from the "_lei" function might be a filename and quote appropriately.
2021-01-01update copyrights for 2021
Using "make update-copyrights" after setting GNULIB_PATH in my config.mak
2020-12-19lei: start working on bash completion
Much work still needs to be done, but that goes for this entire project :P
2020-09-09contrib/css: limit <a> coloring to links, only
We don't want <a> tags without href= attributes to be colored, since the `<a id=mirror>' tag in the HTML footer is intended as an anchor destination for `<a href=#mirror>' link at the top.
2019-10-31contrib/css/216light: improve contrast a bit
"#ff0" foreground on a "#fff" background is just too difficult to distinguish, among other things. So choose slightly darker colors when using a (painful) "#fff" background.
2019-05-25contrib/css: mark as CC0 (public domain)
No reason to copyright colour schemes :P
2019-02-05wwwtext: inline sample CSS and use highlight
For user documentation regarding CSS; showing users the sample CSS with comments is probably more helpful than having standalone documentation on CSS classes.
2019-01-29css/216dark: add comments and tweak highlight colors
Overkill, but "highlight" supports single-line comments (slc) independently of multi-line comments (com); but we'll use the same color for that. We'll also use #0f0 instead of #0ff for "kwb" (keyword class "b") since blue shades are prevalent in <a> links and comments, while green was unused.
2019-01-27viewvcs: wire up syntax-highlighting for blobs
And update 216dark.css to match a color scheme I'm used to; which is fairly minimal and doesn't use all the classes "highlight" provides.
2019-01-20www: admin-configurable CSS via "publicinbox.css"
Maybe we'll default to a dark theme to promote energy savings... See contrib/css/README for details
2018-06-16Contribute SELinux policy for EL7
This adds a SELinux policy suitable for RHEL/CentOS 7. It assumes the following: - public-inbox-httpd and public-inbox-nntpd are running via systemd on sane ports (119 and 80/8080) - /var/lib/public-inbox is the location for mainrepos - /var/run/public-inbox is the location for PERL_INLINE_DIRECTORY - /var/log/public-inbox is the location for logs - mail delivery is done via postfix-pipe or public-inbox-watch via the provided example systemd service Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>