GithubHelp home page GithubHelp logo

Comments (8)

stickmy avatar stickmy commented on May 18, 2024

你的 logo 需要放入 .vuepress/public 文件夹下, 可以看看官方文档 https://vuepress.vuejs.org/zh/guide/assets.html#%E5%85%AC%E5%85%B1%E6%96%87%E4%BB%B6

from vuepress-theme-yubisaki.

 avatar commented on May 18, 2024

您好,我确实是按照官方文档中的操作的。
下面是我的目录结构,内容正常运作 :)
image

不使用您的主题的话这个路径是正常的,vuepress的webpack对静态资源的读取都在.vuepress目录下。
感谢回复~!

from vuepress-theme-yubisaki.

stickmy avatar stickmy commented on May 18, 2024

我没有看见你的目录结构

from vuepress-theme-yubisaki.

stickmy avatar stickmy commented on May 18, 2024

@MeteorOCC 你好,可以提供一个复现的 repo 吗

from vuepress-theme-yubisaki.

 avatar commented on May 18, 2024

@Bloss 好的,不过我需要学习一下放到github的过程后在此留下链接方便您查看~!

from vuepress-theme-yubisaki.

stickmy avatar stickmy commented on May 18, 2024

好的,Thanks

from vuepress-theme-yubisaki.

 avatar commented on May 18, 2024

已经解决了,我比较早的时候yarn下了Vuepress近期才开始看,public里面的图片默认路径已经不需要详细指定了,经过webpack处理已经是'/'代替了'./public/'
build文档的时候我还发现了一个问题,就是build出来的静态网页没有办法加载样式,查看了一下html文件发现是路径有问题,通过
image
这样配置后就可以读取正确的路径,但是文档反而读取不到了,还在对照官方文档查看webpack配置和自己的路径。———已解决,格式化之后就能够正常显示了,一脸懵逼。
抱歉给您带来麻烦啦:)

from vuepress-theme-yubisaki.

stickmy avatar stickmy commented on May 18, 2024

All right, amazing

from vuepress-theme-yubisaki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.