|
|
|
|
@ -28,8 +28,11 @@ COPY --chown=node:node ./LICENSE ./LICENSE
|
|
|
|
|
# Inject mermaid.js and Inter font into index.html
|
|
|
|
|
RUN sed -i 's|</head>|<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700\&display=swap" rel="stylesheet"><script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script><script>document.addEventListener("DOMContentLoaded",function(){mermaid.initialize({startOnLoad:false,theme:"default"});new MutationObserver(function(){document.querySelectorAll(".codeblock-mermaid:not([data-processed])").forEach(function(el){el.setAttribute("data-processed","1");var code=el.querySelector("code");if(code){var d=document.createElement("div");d.className="mermaid";d.textContent=code.textContent;el.replaceWith(d)}});try{mermaid.run({querySelector:".mermaid:not([data-id])"})}catch(e){}}).observe(document.body,{childList:true,subtree:true})});</script></head>|' ./assets/index.html
|
|
|
|
|
|
|
|
|
|
# Replace Wiki.js branding
|
|
|
|
|
# Replace Wiki.js branding and logo
|
|
|
|
|
RUN sed -i 's/Wiki\.js/CultBR Wiki/g' ./assets/index.html
|
|
|
|
|
RUN cp ./assets/_assets/cultbr.svg ./assets/_assets/logo-wikijs.svg && \
|
|
|
|
|
cp ./assets/_assets/cultbr.svg ./assets/_assets/logo-wikijs-full.svg && \
|
|
|
|
|
mkdir -p ./data/assets
|
|
|
|
|
|
|
|
|
|
USER node
|
|
|
|
|
|
|
|
|
|
|