import{S as ue,i as de,s as _e,e as s,k as L,w as Se,t as r,N as ve,c as o,d as a,m as M,a as l,x as ye,h as n,b as f,G as t,g as _,y as ge,L as Ee,q as we,o as Le,B as Me,v as He}from"../chunks/vendor-hf-doc-builder.js";import{I as Te}from"../chunks/IconCopyLink-hf-doc-builder.js";function ke(se){let h,A,m,u,H,S,R,T,I,$,c,q,k,j,U,x,Y,B,P,J,z,b,F,K,C,g,Q,D,d,E,v,V,W,X,w,y,Z,ee,N;return S=new Te({}),{c(){h=s("meta"),A=L(),m=s("h1"),u=s("a"),H=s("span"),Se(S.$$.fragment),R=L(),T=s("span"),I=r("Static HTML Spaces"),$=L(),c=s("p"),q=r("Spaces also accommodate custom HTML for your app instead of using Streamlit or Gradio. Set "),k=s("code"),j=r("sdk: static"),U=r(" inside the "),x=s("code"),Y=r("YAML"),B=r(" block at the top of your Spaces "),P=s("strong"),J=r("README.md"),z=r(" file. Then you can place your HTML code within an "),b=s("strong"),F=r("index.html"),K=r(" file."),C=L(),g=s("p"),Q=r("Here are some examples of Spaces using custom HTML:"),D=L(),d=s("ul"),E=s("li"),v=s("a"),V=r("Smarter NPC"),W=r(": Display a PlayCanvas project with an iframe in Spaces."),X=L(),w=s("li"),y=s("a"),Z=r("Huggingfab"),ee=r(": Display a Sketchfab model in Spaces."),this.h()},l(e){const i=ve('[data-svelte="svelte-1phssyn"]',document.head);h=o(i,"META",{name:!0,content:!0}),i.forEach(a),A=M(e),m=o(e,"H1",{class:!0});var G=l(m);u=o(G,"A",{id:!0,class:!0,href:!0});var oe=l(u);H=o(oe,"SPAN",{});var re=l(H);ye(S.$$.fragment,re),re.forEach(a),oe.forEach(a),R=M(G),T=o(G,"SPAN",{});var le=l(T);I=n(le,"Static HTML Spaces"),le.forEach(a),G.forEach(a),$=M(e),c=o(e,"P",{});var p=l(c);q=n(p,"Spaces also accommodate custom HTML for your app instead of using Streamlit or Gradio. Set "),k=o(p,"CODE",{});var ne=l(k);j=n(ne,"sdk: static"),ne.forEach(a),U=n(p," inside the "),x=o(p,"CODE",{});var ce=l(x);Y=n(ce,"YAML"),ce.forEach(a),B=n(p," block at the top of your Spaces "),P=o(p,"STRONG",{});var ie=l(P);J=n(ie,"README.md"),ie.forEach(a),z=n(p," file. Then you can place your HTML code within an "),b=o(p,"STRONG",{});var pe=l(b);F=n(pe,"index.html"),pe.forEach(a),K=n(p," file."),p.forEach(a),C=M(e),g=o(e,"P",{});var fe=l(g);Q=n(fe,"Here are some examples of Spaces using custom HTML:"),fe.forEach(a),D=M(e),d=o(e,"UL",{});var O=l(d);E=o(O,"LI",{});var te=l(E);v=o(te,"A",{href:!0,rel:!0});var he=l(v);V=n(he,"Smarter NPC"),he.forEach(a),W=n(te,": Display a PlayCanvas project with an iframe in Spaces."),te.forEach(a),X=M(O),w=o(O,"LI",{});var ae=l(w);y=o(ae,"A",{href:!0,rel:!0});var me=l(y);Z=n(me,"Huggingfab"),me.forEach(a),ee=n(ae,": Display a Sketchfab model in Spaces."),ae.forEach(a),O.forEach(a),this.h()},h(){f(h,"name","hf:doc:metadata"),f(h,"content",JSON.stringify(xe)),f(u,"id","static-html-spaces"),f(u,"class","header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full"),f(u,"href","#static-html-spaces"),f(m,"class","relative group"),f(v,"href","https://huggingface.co/spaces/mishig/smarter_npc"),f(v,"rel","nofollow"),f(y,"href","https://huggingface.co/spaces/pierreant-p/huggingfab"),f(y,"rel","nofollow")},m(e,i){t(document.head,h),_(e,A,i),_(e,m,i),t(m,u),t(u,H),ge(S,H,null),t(m,R),t(m,T),t(T,I),_(e,$,i),_(e,c,i),t(c,q),t(c,k),t(k,j),t(c,U),t(c,x),t(x,Y),t(c,B),t(c,P),t(P,J),t(c,z),t(c,b),t(b,F),t(c,K),_(e,C,i),_(e,g,i),t(g,Q),_(e,D,i),_(e,d,i),t(d,E),t(E,v),t(v,V),t(E,W),t(d,X),t(d,w),t(w,y),t(y,Z),t(w,ee),N=!0},p:Ee,i(e){N||(we(S.$$.fragment,e),N=!0)},o(e){Le(S.$$.fragment,e),N=!1},d(e){a(h),e&&a(A),e&&a(m),Me(S),e&&a($),e&&a(c),e&&a(C),e&&a(g),e&&a(D),e&&a(d)}}}const xe={local:"static-html-spaces",title:"Static HTML Spaces"};function Pe(se){return He(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $e extends ue{constructor(h){super();de(this,h,Pe,ke,_e,{})}}export{$e as default,xe as metadata};
