mirror of
https://github.com/zenlm/zen-blog.git
synced 2026-10-30 15:05:49 +00:00
Deploy proper Zen LM landing page to zenlm.org:
- 🪷 Zen LM branding (lotus emoji, dark theme)
- Geist font via Fumadocs/Tailwind
- All model cards with full landing page
- Individual model detail pages (/docs/models/*)
- No blog cross-links
- No upstream model references
- API docs, pricing, training documentation
1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70276,t=>{"use strict";var e=t.i(48136),r=t.i(1634);function i(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function n(t){let r=(0,e.remark)(),n="string"==typeof t?function(t){let e=t.trim();if(0===e.length)return null;let r=Array.from(new Set(e.split(/\s+/).map(t=>t.trim()).filter(Boolean)));if(0===r.length)return null;let n=r.map(i).join("|");return RegExp(`(${n})`,"gi")}(t):t;return n&&(r=r.use(l,n)),{highlight(t){if(!n)return[{type:"text",content:t}];let e=[],r=0;for(let i of t.matchAll(n))r<i.index&&e.push({type:"text",content:t.substring(r,i.index)}),e.push({type:"text",content:i[0],styles:{highlight:!0}}),r=i.index+i[0].length;return r<t.length&&e.push({type:"text",content:t.substring(r)}),e},highlightMarkdown:t=>n?String(r.processSync(t).value):t}}function l(t){return e=>{(0,r.visit)(e,"text",e=>{let r="",i=e.value,n=0;for(let e of i.matchAll(t))n<e.index&&(r+=i.substring(n,e.index)),r+=`<mark>${e[0]}</mark>`,n=e.index+e[0].length;n<i.length&&(r+=i.substring(n)),e.type="html",e.value=r})}}t.s(["createContentHighlighter",()=>n])},62952,t=>{"use strict";t.s(["t",()=>function t(e,r=!1){for(let i in e){if(void 0===e[i]&&delete e[i],!r)continue;let n=e[i];if("object"==typeof n&&null!==n){t(n,r);continue}if(Array.isArray(n))for(let e of n)t(e,r)}return e}])},38987,t=>{"use strict";var e=t.i(70276),r=t.i(62952);async function i(t,i){let n=(0,e.createContentHighlighter)(t),l=[],{index:o="default",client:u,params:s={},tag:h}=i;if("crawler"===o){let e=await u.search({...s,term:t,where:{category:h?{eq:h.slice(0,1).toUpperCase()+h.slice(1)}:void 0,...s.where},limit:10});if(!e)return l;for(let t of e.hits){let e=t.document;l.push({id:t.id,type:"page",content:n.highlightMarkdown(e.title),url:e.path},{id:"page"+t.id,type:"text",content:n.highlightMarkdown(e.content),url:e.path})}return l}let a={...s,term:t,where:(0,r.t)({tag:h,...s.where}),groupBy:{properties:["page_id"],maxResult:7,...s.groupBy}},c=await u.search(a);if(!c||!c.groups)return l;for(let t of c.groups){let e=!1;for(let r of t.result){let t=r.document;e||(l.push({id:t.page_id,type:"page",content:n.highlightMarkdown(t.title),breadcrumbs:t.breadcrumbs,url:t.url}),e=!0),l.push({id:t.id,content:n.highlightMarkdown(t.content),type:t.content===t.section?"heading":"text",url:t.section_id?`${t.url}#${t.section_id}`:t.url})}}return l}t.s(["searchDocs",()=>i])}]); |