Commit Graph

8 Commits (4820131b82d24918999dd216c84535b8baebeeaa)

Author SHA1 Message Date
Tim Bannister 2b498d9bfb Make tooltip localizable
Allow localizations to customize the tooltip for copying code samples to
the clipboard.
2024-05-14 01:09:39 +01:00
Tim Bannister 9e128e3fc7 Reimplement code_sample shortcode
Use Hugo Pipes for the icon asset pipeline, and avoid inline styling.
2024-05-14 01:09:38 +01:00
Mengjiao Liu f5388a1efe Add code shortcode to replace codenew 2023-07-27 17:27:26 +08:00
Qiming Teng b550c6c051
Remove shortcode 'code' (#19035)
A long time ago, we added a new shortcode `codenew` as a replacement of
the `code` shortcode. The intention was to consolidate all example
manifests to a single subdirectory, i.e. `content/<lang>/examples`. Now
this transition is almost over. We have only two instances where the old
`code` shortcode is referenced.

This PR makes the `policy.rego` file inlined content so that all
referenes to `code` are killed. We can safely drop the `code` shortcode.
If desired, we can rename the `codenew` shortcode to `code` in a
(series of) separate PR(s).
2020-02-10 19:52:00 -08:00
Bjørn Erik Pedersen b51bdc88cc Make it compatible with Hugo 0.55 (#13680)
This commit adds two backwards compatible changes to prepare for the next Hugo version, most notable:

* All the `File` methods on `Page` has been deprecated and will give a warning in the next Hugo version. Adjust this by changing `.Dir` to ´.File.Dir` and similar.
* Version the capture shortcode to use the old behaviour for markdown rendering of shortcode inner content.
2019-04-08 18:19:05 -07:00
Dani Comnea 9054d61419 Fix the codenew shortcode where site.Params.githubWebRow is null (#12743) 2019-02-20 17:00:48 -08:00
Luc Perkins c6dd35ba51 Update to Hugo 0.53 and remove all .Site references (#12079)
* Remove all .Site variable references

* Update Hugo version in Travis CI config and Makefile
2019-02-05 08:33:23 -08:00
Bjørn Erik Pedersen 7f3b633aa0 Convert site to Hugo (#8316)
This commit converts content and layout to use Hugo.
2018-05-05 09:00:51 -07:00