mirror of
https://github.com/zenlm/zen-blog.git
synced 2026-11-02 17:28:53 +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
1.9 KiB
JavaScript
1 line
1.9 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70276,t=>{"use strict";var e=t.i(48136),n=t.i(1634);function r(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(t){let n=(0,e.remark)(),i="string"==typeof t?function(t){let e=t.trim();if(0===e.length)return null;let n=Array.from(new Set(e.split(/\s+/).map(t=>t.trim()).filter(Boolean)));if(0===n.length)return null;let i=n.map(r).join("|");return RegExp(`(${i})`,"gi")}(t):t;return i&&(n=n.use(l,i)),{highlight(t){if(!i)return[{type:"text",content:t}];let e=[],n=0;for(let r of t.matchAll(i))n<r.index&&e.push({type:"text",content:t.substring(n,r.index)}),e.push({type:"text",content:r[0],styles:{highlight:!0}}),n=r.index+r[0].length;return n<t.length&&e.push({type:"text",content:t.substring(n)}),e},highlightMarkdown:t=>i?String(n.processSync(t).value):t}}function l(t){return e=>{(0,n.visit)(e,"text",e=>{let n="",r=e.value,i=0;for(let e of r.matchAll(t))i<e.index&&(n+=r.substring(i,e.index)),n+=`<mark>${e[0]}</mark>`,i=e.index+e[0].length;i<r.length&&(n+=r.substring(i)),e.type="html",e.value=n})}}t.s(["createContentHighlighter",()=>i])},94059,t=>{"use strict";var e=t.i(70276);async function n(t,{indexName:n,onSearch:r,client:i,locale:l,tag:u}){if(0===t.trim().length)return[];let s=r?await r(t,u,l):await i.searchForHits({requests:[{type:"default",indexName:n,query:t,distinct:5,hitsPerPage:10,filters:u?`tag:${u}`:void 0}]}),o=(0,e.createContentHighlighter)(t);return(function(t){let e=[],n=new Set;for(let r of t)n.has(r.url)||(n.add(r.url),e.push({id:r.url,type:"page",breadcrumbs:r.breadcrumbs,url:r.url,content:r.title})),e.push({id:r.objectID,type:r.content===r.section?"heading":"text",url:r.section_id?`${r.url}#${r.section_id}`:r.url,content:r.content});return e})(s.results[0].hits).flatMap(t=>"page"===t.type?{...t,content:o.highlightMarkdown(t.content)}:[])}t.s(["searchDocs",()=>n])}]); |