import{s as _e,n as Le,o as Se}from"../chunks/scheduler.d6170356.js";import{S as He,i as Pe,g as s,s as l,r as P,A as ke,h as o,f as n,c as a,j as Te,u as k,x as p,k as ce,y as Ue,a as i,v as U,d as j,t as B,w as I}from"../chunks/index.fcd4cc08.js";import{C as je}from"../chunks/CodeBlock.7b16bdef.js";import{H as Y,E as Be}from"../chunks/EditOnGithub.da2b595c.js";function Ie(re){let d,F,J,G,r,R,m,me="<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.",V,u,ue="Evidence enables you to:",Z,f,fe="<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>",z,v,ve='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,h,N,g,he="You can deploy Evidence on Hugging Face Spaces with just a few clicks:",q,c,ge='<img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/deploy-to-spaces-lg.svg"/>',A,y,ye="Once created, the Space will display <code>Building</code> status. Refresh the page if the status doesn’t automatically update to <code>Running</code>.",D,$,$e="Your Evidence app will automatically be deployed on Hugging Face Spaces.",O,w,X,C,we="To edit your app, clone the Space and edit the files locally.",K,b,ee,x,Ce="You can then modify pages/index.md to change the content of your app.",te,E,ne,M,be='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>:',ie,T,xe="<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>",le,_,Ee='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.',ae,L,se,S,Me='<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>',oe,H,pe,W,de;return r=new Y({props:{title:"Evidence on Spaces",local:"evidence-on-spaces",headingTag:"h1"}}),h=new Y({props:{title:"Deploy Evidence on Spaces",local:"deploy-evidence-on-spaces",headingTag:"h2"}}),w=new Y({props:{title:"Editing your Evidence app from the CLI",local:"editing-your-evidence-app-from-the-cli",headingTag:"h2"}}),b=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}}),E=new Y({props:{title:"Editing your Evidence app from VS Code",local:"editing-your-evidence-app-from-vs-code",headingTag:"h2"}}),L=new Y({props:{title:"Learning More",local:"learning-more",headingTag:"h2"}}),H=new Be({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/spaces-sdks-docker-evidence.md"}}),{c(){d=s("meta"),F=l(),J=s("p"),G=l(),P(r.$$.fragment),R=l(),m=s("p"),m.innerHTML=me,V=l(),u=s("p"),u.textContent=ue,Z=l(),f=s("ul"),f.innerHTML=fe,z=l(),v=s("p"),v.innerHTML=ve,Q=l(),P(h.$$.fragment),N=l(),g=s("p"),g.textContent=he,q=l(),c=s("a"),c.innerHTML=ge,A=l(),y=s("p"),y.innerHTML=ye,D=l(),$=s("p"),$.textContent=$e,O=l(),P(w.$$.fragment),X=l(),C=s("p"),C.textContent=we,K=l(),P(b.$$.fragment),ee=l(),x=s("p"),x.textContent=Ce,te=l(),P(E.$$.fragment),ne=l(),M=s("p"),M.innerHTML=be,ie=l(),T=s("ol"),T.innerHTML=xe,le=l(),_=s("p"),_.innerHTML=Ee,ae=l(),P(L.$$.fragment),se=l(),S=s("ul"),S.innerHTML=Me,oe=l(),P(H.$$.fragment),pe=l(),W=s("p"),this.h()},l(e){const t=ke("svelte-u9bgzb",document.head);d=o(t,"META",{name:!0,content:!0}),t.forEach(n),F=a(e),J=o(e,"P",{}),Te(J).forEach(n),G=a(e),k(r.$$.fragment,e),R=a(e),m=o(e,"P",{"data-svelte-h":!0}),p(m)!=="svelte-eo8yln"&&(m.innerHTML=me),V=a(e),u=o(e,"P",{"data-svelte-h":!0}),p(u)!=="svelte-89n5fh"&&(u.textContent=ue),Z=a(e),f=o(e,"UL",{"data-svelte-h":!0}),p(f)!=="svelte-9byhvu"&&(f.innerHTML=fe),z=a(e),v=o(e,"P",{"data-svelte-h":!0}),p(v)!=="svelte-17het9p"&&(v.innerHTML=ve),Q=a(e),k(h.$$.fragment,e),N=a(e),g=o(e,"P",{"data-svelte-h":!0}),p(g)!=="svelte-rsy91p"&&(g.textContent=he),q=a(e),c=o(e,"A",{href:!0,"data-svelte-h":!0}),p(c)!=="svelte-1ecvow2"&&(c.innerHTML=ge),A=a(e),y=o(e,"P",{"data-svelte-h":!0}),p(y)!=="svelte-2g3aqx"&&(y.innerHTML=ye),D=a(e),$=o(e,"P",{"data-svelte-h":!0}),p($)!=="svelte-1vmmtgz"&&($.textContent=$e),O=a(e),k(w.$$.fragment,e),X=a(e),C=o(e,"P",{"data-svelte-h":!0}),p(C)!=="svelte-ggvlbc"&&(C.textContent=we),K=a(e),k(b.$$.fragment,e),ee=a(e),x=o(e,"P",{"data-svelte-h":!0}),p(x)!=="svelte-y6t7g0"&&(x.textContent=Ce),te=a(e),k(E.$$.fragment,e),ne=a(e),M=o(e,"P",{"data-svelte-h":!0}),p(M)!=="svelte-ixcor7"&&(M.innerHTML=be),ie=a(e),T=o(e,"OL",{"data-svelte-h":!0}),p(T)!=="svelte-6t7adc"&&(T.innerHTML=xe),le=a(e),_=o(e,"P",{"data-svelte-h":!0}),p(_)!=="svelte-tnt0xl"&&(_.innerHTML=Ee),ae=a(e),k(L.$$.fragment,e),se=a(e),S=o(e,"UL",{"data-svelte-h":!0}),p(S)!=="svelte-1o2ts8q"&&(S.innerHTML=Me),oe=a(e),k(H.$$.fragment,e),pe=a(e),W=o(e,"P",{}),Te(W).forEach(n),this.h()},h(){ce(d,"name","hf:doc:metadata"),ce(d,"content",Je),ce(c,"href","https://huggingface.co/spaces/evidence-dev/template-app")},m(e,t){Ue(document.head,d),i(e,F,t),i(e,J,t),i(e,G,t),U(r,e,t),i(e,R,t),i(e,m,t),i(e,V,t),i(e,u,t),i(e,Z,t),i(e,f,t),i(e,z,t),i(e,v,t),i(e,Q,t),U(h,e,t),i(e,N,t),i(e,g,t),i(e,q,t),i(e,c,t),i(e,A,t),i(e,y,t),i(e,D,t),i(e,$,t),i(e,O,t),U(w,e,t),i(e,X,t),i(e,C,t),i(e,K,t),U(b,e,t),i(e,ee,t),i(e,x,t),i(e,te,t),U(E,e,t),i(e,ne,t),i(e,M,t),i(e,ie,t),i(e,T,t),i(e,le,t),i(e,_,t),i(e,ae,t),U(L,e,t),i(e,se,t),i(e,S,t),i(e,oe,t),U(H,e,t),i(e,pe,t),i(e,W,t),de=!0},p:Le,i(e){de||(j(r.$$.fragment,e),j(h.$$.fragment,e),j(w.$$.fragment,e),j(b.$$.fragment,e),j(E.$$.fragment,e),j(L.$$.fragment,e),j(H.$$.fragment,e),de=!0)},o(e){B(r.$$.fragment,e),B(h.$$.fragment,e),B(w.$$.fragment,e),B(b.$$.fragment,e),B(E.$$.fragment,e),B(L.$$.fragment,e),B(H.$$.fragment,e),de=!1},d(e){e&&(n(F),n(J),n(G),n(R),n(m),n(V),n(u),n(Z),n(f),n(z),n(v),n(Q),n(N),n(g),n(q),n(c),n(A),n(y),n(D),n($),n(O),n(X),n(C),n(K),n(ee),n(x),n(te),n(ne),n(M),n(ie),n(T),n(le),n(_),n(ae),n(se),n(S),n(oe),n(pe),n(W)),n(d),I(r,e),I(h,e),I(w,e),I(b,e),I(E,e),I(L,e),I(H,e)}}}const Je='{"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 We(re){return Se(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ve extends He{constructor(d){super(),Pe(this,d,We,Ie,_e,{})}}export{Ve as component};
