import{s as Se,n as He,o as Pe}from"../chunks/scheduler.9cda857a.js";import{S as ke,i as Ue,e as s,s as l,c as r,h as je,a as o,d as n,b as a,f as _e,g as m,j as p,k as me,l as Be,m as i,n as u,t as f,o as v,p as g}from"../chunks/index.f47f3121.js";import{C as Ie}from"../chunks/CopyLLMTxtMenu.676ed699.js";import{C as Je}from"../chunks/CodeBlock.24d62f98.js";import{H as F,E as We}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.64d112fc.js";function Ye(ue){let d,G,W,R,h,z,$,V,y,fe="<strong>Evidence</strong> is an open-source framework designed for building data-driven applications, reports, and dashboards using SQL and Markdown. With Evidence, you can quickly create decision-support tools, reports, and interactive dashboards without relying on traditional drag-and-drop business intelligence (BI) platforms.",Z,C,ve="Evidence enables you to:",Q,w,ge="<li>Write reports and dashboards directly in Markdown with SQL-backed components.</li> <li>Integrate data from multiple sources, including SQL databases and APIs.</li> <li>Use templated pages to automatically generate multiple pages based on a single template.</li> <li>Deploy reports seamlessly to various hosting solutions.</li>",N,b,he='Visit <a href="https://docs.evidence.dev/" rel="nofollow">Evidence’s documentation</a> for guides, examples, and best practices for using Evidence to create data products.',q,x,D,E,$e="You can deploy Evidence on Hugging Face Spaces with just a few clicks:",O,c,ye='<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/deploy-to-spaces-lg.svg"/>',X,M,Ce="Once created, the Space will display <code>Building</code> status. Refresh the page if the status doesn’t automatically update to <code>Running</code>.",A,L,we="Your Evidence app will automatically be deployed on Hugging Face Spaces.",K,T,ee,_,be="To edit your app, clone the Space and edit the files locally.",te,S,ne,H,xe="You can then modify pages/index.md to change the content of your app.",ie,P,le,k,Ee='The easiest way to develop with Evidence is using the <a href="https://marketplace.visualstudio.com/items?itemName=Evidence.evidence-vscode" rel="nofollow">VS Code Extension</a>:',ae,U,Me="<li>Install the extension from the VS Code Marketplace</li> <li>Open the Command Palette (Ctrl/Cmd + Shift + P) and enter <code>Evidence: Copy Existing Project</code></li> <li>Paste the URL of the Hugging Face Spaces Evidence app you’d like to copy (e.g. <code>https://huggingface.co/spaces/your-username/your-space-name</code>) and press Enter</li> <li>Select the folder you’d like to clone the project to and press Enter</li> <li>Press <code>Start Evidence</code> in the bottom status bar</li>",se,j,Le='Check out the docs for <a href="https://docs.evidence.dev/getting-started/install-evidence" rel="nofollow">alternative install methods</a>, Github Codespaces, and alongside dbt.',oe,B,pe,I,Te='<li><a href="https://docs.evidence.dev/" rel="nofollow">Docs</a></li> <li><a href="https://github.com/evidence-dev/evidence" rel="nofollow">Github</a></li> <li><a href="https://slack.evidence.dev/" rel="nofollow">Slack Community</a></li> <li><a href="https://www.evidence.dev" rel="nofollow">Evidence Home Page</a></li>',de,J,ce,Y,re;return h=new Ie({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),$=new F({props:{title:"Evidence on Spaces",local:"evidence-on-spaces",headingTag:"h1"}}),x=new F({props:{title:"Deploy Evidence on Spaces",local:"deploy-evidence-on-spaces",headingTag:"h2"}}),T=new F({props:{title:"Editing your Evidence app from the CLI",local:"editing-your-evidence-app-from-the-cli",headingTag:"h2"}}),S=new Je({props:{code:"Z2l0JTIwY2xvbmUlMjBodHRwcyUzQSUyRiUyRmh1Z2dpbmdmYWNlLmNvJTJGc3BhY2VzJTJGeW91ci11c2VybmFtZSUyRnlvdXItc3BhY2UtbmFtZSUyMCUwQWNkJTIweW91ci1zcGFjZS1uYW1lJTBBbnBtJTIwaW5zdGFsbCUwQW5wbSUyMHJ1biUyMHNvdXJjZXMlMEFucG0lMjBydW4lMjBkZXY=",highlighted:`git <span class="hljs-built_in">clone</span> https://huggingface.co/spaces/your-username/your-space-name 
<span class="hljs-built_in">cd</span> your-space-name
npm install
npm run sources
npm run dev`,wrap:!1}}),P=new F({props:{title:"Editing your Evidence app from VS Code",local:"editing-your-evidence-app-from-vs-code",headingTag:"h2"}}),B=new F({props:{title:"Learning More",local:"learning-more",headingTag:"h2"}}),J=new We({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-sdks-docker-evidence.md"}}),{c(){d=s("meta"),G=l(),W=s("p"),R=l(),r(h.$$.fragment),z=l(),r($.$$.fragment),V=l(),y=s("p"),y.innerHTML=fe,Z=l(),C=s("p"),C.textContent=ve,Q=l(),w=s("ul"),w.innerHTML=ge,N=l(),b=s("p"),b.innerHTML=he,q=l(),r(x.$$.fragment),D=l(),E=s("p"),E.textContent=$e,O=l(),c=s("a"),c.innerHTML=ye,X=l(),M=s("p"),M.innerHTML=Ce,A=l(),L=s("p"),L.textContent=we,K=l(),r(T.$$.fragment),ee=l(),_=s("p"),_.textContent=be,te=l(),r(S.$$.fragment),ne=l(),H=s("p"),H.textContent=xe,ie=l(),r(P.$$.fragment),le=l(),k=s("p"),k.innerHTML=Ee,ae=l(),U=s("ol"),U.innerHTML=Me,se=l(),j=s("p"),j.innerHTML=Le,oe=l(),r(B.$$.fragment),pe=l(),I=s("ul"),I.innerHTML=Te,de=l(),r(J.$$.fragment),ce=l(),Y=s("p"),this.h()},l(e){const t=je("svelte-u9bgzb",document.head);d=o(t,"META",{name:!0,content:!0}),t.forEach(n),G=a(e),W=o(e,"P",{}),_e(W).forEach(n),R=a(e),m(h.$$.fragment,e),z=a(e),m($.$$.fragment,e),V=a(e),y=o(e,"P",{"data-svelte-h":!0}),p(y)!=="svelte-eo8yln"&&(y.innerHTML=fe),Z=a(e),C=o(e,"P",{"data-svelte-h":!0}),p(C)!=="svelte-89n5fh"&&(C.textContent=ve),Q=a(e),w=o(e,"UL",{"data-svelte-h":!0}),p(w)!=="svelte-9byhvu"&&(w.innerHTML=ge),N=a(e),b=o(e,"P",{"data-svelte-h":!0}),p(b)!=="svelte-17het9p"&&(b.innerHTML=he),q=a(e),m(x.$$.fragment,e),D=a(e),E=o(e,"P",{"data-svelte-h":!0}),p(E)!=="svelte-rsy91p"&&(E.textContent=$e),O=a(e),c=o(e,"A",{href:!0,"data-svelte-h":!0}),p(c)!=="svelte-1ecvow2"&&(c.innerHTML=ye),X=a(e),M=o(e,"P",{"data-svelte-h":!0}),p(M)!=="svelte-2g3aqx"&&(M.innerHTML=Ce),A=a(e),L=o(e,"P",{"data-svelte-h":!0}),p(L)!=="svelte-1vmmtgz"&&(L.textContent=we),K=a(e),m(T.$$.fragment,e),ee=a(e),_=o(e,"P",{"data-svelte-h":!0}),p(_)!=="svelte-ggvlbc"&&(_.textContent=be),te=a(e),m(S.$$.fragment,e),ne=a(e),H=o(e,"P",{"data-svelte-h":!0}),p(H)!=="svelte-y6t7g0"&&(H.textContent=xe),ie=a(e),m(P.$$.fragment,e),le=a(e),k=o(e,"P",{"data-svelte-h":!0}),p(k)!=="svelte-ixcor7"&&(k.innerHTML=Ee),ae=a(e),U=o(e,"OL",{"data-svelte-h":!0}),p(U)!=="svelte-6t7adc"&&(U.innerHTML=Me),se=a(e),j=o(e,"P",{"data-svelte-h":!0}),p(j)!=="svelte-tnt0xl"&&(j.innerHTML=Le),oe=a(e),m(B.$$.fragment,e),pe=a(e),I=o(e,"UL",{"data-svelte-h":!0}),p(I)!=="svelte-1o2ts8q"&&(I.innerHTML=Te),de=a(e),m(J.$$.fragment,e),ce=a(e),Y=o(e,"P",{}),_e(Y).forEach(n),this.h()},h(){me(d,"name","hf:doc:metadata"),me(d,"content",Fe),me(c,"href","https://huggingface.co/spaces/evidence-dev/template-app")},m(e,t){Be(document.head,d),i(e,G,t),i(e,W,t),i(e,R,t),u(h,e,t),i(e,z,t),u($,e,t),i(e,V,t),i(e,y,t),i(e,Z,t),i(e,C,t),i(e,Q,t),i(e,w,t),i(e,N,t),i(e,b,t),i(e,q,t),u(x,e,t),i(e,D,t),i(e,E,t),i(e,O,t),i(e,c,t),i(e,X,t),i(e,M,t),i(e,A,t),i(e,L,t),i(e,K,t),u(T,e,t),i(e,ee,t),i(e,_,t),i(e,te,t),u(S,e,t),i(e,ne,t),i(e,H,t),i(e,ie,t),u(P,e,t),i(e,le,t),i(e,k,t),i(e,ae,t),i(e,U,t),i(e,se,t),i(e,j,t),i(e,oe,t),u(B,e,t),i(e,pe,t),i(e,I,t),i(e,de,t),u(J,e,t),i(e,ce,t),i(e,Y,t),re=!0},p:He,i(e){re||(f(h.$$.fragment,e),f($.$$.fragment,e),f(x.$$.fragment,e),f(T.$$.fragment,e),f(S.$$.fragment,e),f(P.$$.fragment,e),f(B.$$.fragment,e),f(J.$$.fragment,e),re=!0)},o(e){v(h.$$.fragment,e),v($.$$.fragment,e),v(x.$$.fragment,e),v(T.$$.fragment,e),v(S.$$.fragment,e),v(P.$$.fragment,e),v(B.$$.fragment,e),v(J.$$.fragment,e),re=!1},d(e){e&&(n(G),n(W),n(R),n(z),n(V),n(y),n(Z),n(C),n(Q),n(w),n(N),n(b),n(q),n(D),n(E),n(O),n(c),n(X),n(M),n(A),n(L),n(K),n(ee),n(_),n(te),n(ne),n(H),n(ie),n(le),n(k),n(ae),n(U),n(se),n(j),n(oe),n(pe),n(I),n(de),n(ce),n(Y)),n(d),g(h,e),g($,e),g(x,e),g(T,e),g(S,e),g(P,e),g(B,e),g(J,e)}}}const Fe='{"title":"Evidence on Spaces","local":"evidence-on-spaces","sections":[{"title":"Deploy Evidence on Spaces","local":"deploy-evidence-on-spaces","sections":[],"depth":2},{"title":"Editing your Evidence app from the CLI","local":"editing-your-evidence-app-from-the-cli","sections":[],"depth":2},{"title":"Editing your Evidence app from VS Code","local":"editing-your-evidence-app-from-vs-code","sections":[],"depth":2},{"title":"Learning More","local":"learning-more","sections":[],"depth":2}],"depth":1}';function Ge(ue){return Pe(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends ke{constructor(d){super(),Ue(this,d,Ge,Ye,Se,{})}}export{Ne as component};
