XhmikosR
5c6925385e
Improve callout shortcode. ( #31802 )
...
Remove the `markdownify` call, and instead rely on Hugo's proper syntax; `{{% callout %}}` when we want to the content to be processed as Markdown.
This allows for stuff like:
{{% callout info %}}
##### I'm an info callout!
```css
.foo {
color: #fff;
}
```
{{< example >}}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
</div>
{{< /example >}}
{{% /callout %}}
2020-10-12 09:06:06 +03:00
Gaël Poupard
5b37d03ff9
docs(placeholder): drop role=img and use aria-hidden for decorative SVG placeholders ( #31575 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-09-04 20:21:54 +03:00
XhmikosR
08742abda3
shortcodes/example.html: allow specifying the highlighting language
2020-06-03 15:57:20 +03:00
Regis Philibert
f979307833
Add a param shortcode to work around the escaped characters in hashes
2020-05-07 20:53:21 +03:00
Mark Otto
85ac2fc35e
Create a new table shortcode so we can easily add Bootstrap table classes to Markdown tables
2020-04-26 17:26:04 -07:00
Martijn Cuppens
d089a683c8
Prevent nested tables style leaks
2020-04-24 10:05:10 +02:00
Martijn Cuppens
83b49aa688
Create scss-docs
shortcode to get some snippets from the Scs… ( #30502 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-04-06 20:13:35 +02:00
Gaël Poupard
8f94ed8e30
docs(SVG placeholder): add focusable=false to placeholder SVGs ( #30075 )
...
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
2020-02-06 09:01:02 +02:00
XhmikosR
972369c997
Tighten regex a bit.
...
If we need to make this more robust in the future, we can revert this as needed.
2019-11-04 15:32:29 +02:00
XhmikosR
e40b3355f0
example.html: use double quotes
2019-11-04 15:32:29 +02:00
Christopher Morrissey
04acb679ab
Example shortcode: use a regex and simplify logic.
2019-11-04 15:32:29 +02:00
XhmikosR
d6945d5e8f
Move shortcodes used only once where they are needed.
2019-09-06 11:57:50 +03:00
XhmikosR
6f1eb110e7
Docs: simplify a few Hugo range
s. ( #29333 )
2019-09-02 12:31:02 +03:00
XhmikosR
919b526f17
Fix shortcodes/example.html class bug. ( #29344 )
...
It always used the first placeholder's class before.
2019-08-31 08:11:16 +03:00
XhmikosR
b316235e63
docs: Fix badges after #28458 . ( #29199 )
2019-08-04 08:23:25 +03:00
Bjørn Erik Pedersen
69e18b9634
Fix bugify.
2019-03-13 19:22:59 +02:00
XhmikosR
5d6e896ebb
Add a docsref shortcode.
...
This allows for the build to fail if a reference isn't found.
2019-03-13 19:22:59 +02:00
XhmikosR
d95d30029f
Switch to Hugo.
...
No more Ruby dependency and most important more than 10 times less build time (at least on Windows)!
2019-03-13 19:22:59 +02:00