summaryrefslogtreecommitdiff
path: root/xslt
Commit message (Collapse)AuthorAgeFilesLines
* Avoid use of global l10n.locale parameterShaun McCance2021-10-309-26/+97
| | | | | | | Documents can have different languages at different levels. This is especially true with Mallard stack files, which could incorporate some translated documents, as well as some that have not yet been translated. Using a single global parameter completely breaks this.
* mal2html-links: Also fix section links for stacksShaun McCance2021-10-141-1/+1
|
* mal2html-page: Fix topic links from guide pages in stacksShaun McCance2021-10-141-1/+1
| | | | | | | | We were looking for the type as an attr on the root page element, which isn't what we have in a stack. This still doesn't address a stack type that is an implicit first guide and further topics, but that requires deeper surgery.
* Loosen CSS match for title/desc in linkdivShaun McCance2021-07-241-2/+2
| | | | This allows us to use extra packing divs in linkdivs
* common/color: Use different target contrasts for white-on-blackShaun McCance2021-06-191-11/+87
| | | | | | | | | | | | | | | | We can compute most colors from a set of base colors by moving colors closer to the text or background color until they hit a target contrast. For background colors, we were using a very high contrast with the text color, because the lighter background colors look nice. But when using inverse colors (white-on-near-black), that caused the background color computation to give up from recursion depth and return something far too dark. Instead, we now detect if it's an inverse color scheme and adjust the target contrasts accordingly. This commit addresses one point in this yelp metabug: https://gitlab.gnome.org/GNOME/yelp/-/issues/178
* More work on experimental links styles for gnome 40 helpShaun McCance2021-02-133-30/+154
|
* Update highlight.js to 10.5+ and add SML highlighterShaun McCance2021-02-123-6/+18
| | | | | | | | | | Fixes https://gitlab.gnome.org/GNOME/yelp-xsl/-/issues/29 highlight.js renamed cs->csharp and tex->latex, so I had to do the same. This means that the highlight.js included with yelp-xsl as of this commit might not highlight those two languages if you drop it into html built with yelp-xsl before this commit. That's a thing that could potentially happen in multiple-document sites with partial rebuilds.
* Oops I forgot to add some CSS template files to Makefile.amShaun McCance2021-02-101-0/+3
|
* Adding experimental-gnome-tiles links styleShaun McCance2021-02-093-0/+149
| | | | | | I'm trying to be very, very explicit about style hints that are experimental and currently only intended for a single use, because I really want to be able to drop these styles when we're done with them.
* Templatize the grid sizeShaun McCance2021-02-097-46/+53
| | | | | | | | | | | This allows you to easily set the page width to common 12-multiples like 1200, 1080, and 960. Things that are grid-based will adjust according without extra effort. Also made some widths follow the selected grid, like sidebar notes. This commit also changes "about" footers to use div elements instead of footer elements. They are already contained in a footer element, and you're not supposed to put footers in footers.
* Clean up testsShaun McCance2020-12-301-2/+2
|
* Hide sidebar by default at 720pxShaun McCance2020-12-291-0/+5
|
* Fix up some handling of the style attrShaun McCance2020-12-291-11/+12
|
* Adding a README for the CSS text templatesShaun McCance2020-10-171-0/+21
|
* Use text templates for DocBook CSSShaun McCance2020-10-175-227/+199
|
* Use text templates for Mallard CSSShaun McCance2020-10-173-553/+537
|
* Some doc updates for text templatesShaun McCance2020-10-162-3/+15
|
* Put some CSS in separate tmpl files with simple substitutionsShaun McCance2020-10-1610-941/+1105
| | | | | This will make it a lot easier for people to work on the theming without digging into XSLT files.
* Added some notes to mal-if params about default valuesShaun McCance2020-10-161-2/+5
|
* Various styling changes, especially around media and ttmlShaun McCance2020-05-013-58/+71
|
* mal-link: Fix missing link when group specified twice on topic linksShaun McCance2020-02-191-2/+4
|
* Support multiple desc elements for linksShaun McCance2020-01-281-4/+37
| | | | http://projectmallard.org/mep/mep0008
* Adding a syntax highlighter for DucktypeShaun McCance2020-01-263-0/+12
|
* Update highlight.pack.js to 9.15.8, add awk and shellShaun McCance2019-07-104-6/+30
|
* yelp-xsl.pot: Re-adding strings for DocBook indexes that somehow got removedShaun McCance2019-05-231-1/+32
|
* Add mallard:1.1 to mal.if.featuresShaun McCance2019-03-161-0/+1
|
* color.xsl: Refresh colors for new GNOME HIG colorsShaun McCance2019-01-231-7/+7
|
* mal2html-inline: Use HTML ins/del for hi elements with those stylesShaun McCance2019-01-122-0/+21
|
* mal2html-inline: Special-case e:hi inside mal:hiShaun McCance2018-11-031-1/+8
|
* Allow non-experimental hi element, now with style hintsShaun McCance2018-10-282-0/+60
|
* Initial work on Mallard stacksShaun McCance2018-10-203-13/+113
|
* Added ui-expander-preview style for elements with ui:expandedShaun McCance2018-10-157-87/+159
|
* Change xsldoc to use ducktypeShaun McCance2018-09-2254-1589/+1957
|
* mal2html: Add mallard:if/1.0 to supported feature tokensShaun McCance2018-08-311-0/+1
|
* Adding stock sidebar supportShaun McCance2018-06-107-92/+534
|
* Implement th/@scope attributeShaun McCance2018-03-072-1/+6
|
* l10n.xsl: Typo fixes in docsShaun McCance2017-10-171-7/+7
|
* Update versions and docs for new templatesShaun McCance2017-10-168-85/+85
| | | | | I had set version=3.26 for new and revised templates, but we didn't get the big changes in 3.26. So set them to 3.28.
* Some semicolon fixups in CSSShaun McCance2017-10-082-6/+6
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=739231
* Remove color and bgcolor on footer.aboutShaun McCance2017-10-051-5/+1
|
* Group UI overlays with JS instead of XSLTShaun McCance2017-10-052-15/+29
| | | | | | | | | UI overlays don't have a grouping element, but we want to group them in the HTML so we can use flexbox for row wrap. We were doing the grouping in XSLT, but this only worked if overlays were exactly next to each other in document order. If you put them in conditionals, you lost grouping. Instead, just output them as-is, then use JS to group them after the fact.
* Give note icons a min-widthShaun McCance2017-09-301-1/+1
|
* mal-if.xsl: Fix lang:C test tokenShaun McCance2017-09-151-1/+1
|
* Rework editor mode banners for new layoutShaun McCance2017-09-131-13/+7
|
* html.xsl: Small cleanup on some note CSSShaun McCance2017-08-241-14/+2
|
* html.xsl: Change article to flex-basis: auto for webkit bugShaun McCance2017-08-181-1/+1
|
* mal-link: Match any element with an id in cache for mal.cache.keyShaun McCance2017-08-141-1/+1
| | | | | | This removes a pile of unnecessary customization in Pintail, and it will also be necessary to make general block element addressable in the future.
* mal2html-ui.xsl: Add template mal2html.ui.links.img.srcShaun McCance2017-08-111-19/+46
| | | | | Pintail needs to be able to override the src attribute output to support images referenced by pages in other directories.
* mal-link.xsl: Add mal.link.target.extended templateShaun McCance2017-08-111-2/+60
| | | | | | This allows tools like Pintail to provide behavior for extended xref attributes without overriding mal.link.target itself, because down that path leads madness.
* Always pass the links element as $node thru linking templatesShaun McCance2017-08-042-23/+43
|