PageSourceSearch

https://touying-typ.github.io/assets/js/34678311.4e3448f5.js

js touying-typ.github.io collected 2026-10-03 10:08:28 UTC 2,743 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6399],{85584:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>u,frontMatter:()=>i,metadata:()=>l,toc:()=>a});var r=n(85893),o=n(11151);const i={sidebar_position:38,description:"Apply alert styling to content using the theme's alert method.",toc_max_heading_level:2},s="alert",l={id:"reference/utils/alert",title:"alert",description:"Apply alert styling to content using the theme's alert method.",source:"@site/docs/reference/utils/alert.mdx",sourceDirName:"reference/utils",slug:"/reference/utils/alert",permalink:"/docs/reference/utils/alert",draft:!1,unlisted:!1,tags:[],version:"current",sidebarPosition:38,frontMatter:{sidebar_position:38,description:"Apply alert styling to content using the theme's alert method.",toc_max_heading_level:2},sidebar:"tutorialSidebar",previous:{title:"alert-with-primary-color",permalink:"/docs/reference/utils/alert-with-primary-color"},next:{title:"check-visible",permalink:"/docs/reference/utils/check-visible"}},c={},a=[];function d(e){const t={a:"a",code:"code",h1:"h1",p:"p",strong:"strong",...(0,o.a)(),...e.components},{Signature:n,SignatureName:i,SignatureParam:s,SourceLink:l,TypeLink:c}=t;return n||p("Signature",!0),i||p("SignatureName",!0),s||p("SignatureParam",!0),l||p("SourceLink",!0),c||p("TypeLink",!0),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"alert",children:"alert"}),"\n",(0,r.jsx)(n,{children:(0,r.jsxs)("code",{children:[(0,r.jsx)(i,{children:"alert"}),"(",(0,r.jsxs)(s,{children:[(0,r.jsx)(t.a,{href:"#self",children:"self: none"}),", "]}),(0,r.jsx)(s,{children:(0,r.jsx)(t.a,{href:"#body",children:"body"})}),")",(0,r.jsx)(l,{href:"https://github.com/touying-typ/touying/blob/main/src/utils.typ#L1635"})]})}),"\n",(0,r.jsxs)(t.p,{children:["Apply alert styling to content using the theme's alert method. Equivalent to ",(0,r.jsx)(t.code,{children:"(self.methods.alert)(self: self, body)"}),"."]}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.strong,{children:"Returns:"})," ",(0,r.jsx)(c,{type:"content"})]})]})}function u(e={}){const{wrapper:t}={...(0,o.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}function p(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}},11151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>s});var r=n(67294);const o={},i=r.createContext(o);function s(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.