Giter Site home page Giter Site logo

Comments (5)

ar2rsawseen avatar ar2rsawseen commented on August 16, 2024

Hello,
can you provide small example to reproduce?

from docdash.

bubble1001 avatar bubble1001 commented on August 16, 2024

My usage is like this:

/**@module 加法 */

/**

  • @function add
  • @param {number} a - 第一个参数
  • @param {number} b - 第二个参数
  • @returns {number} - 返回两个参数的和
    */
    function add(a, b) {
    return a + b;
    }

In the final generated document page, click the add() method under the document directory "加法", and the page prompts "Your file couldn't be accessed"
image

from docdash.

ar2rsawseen avatar ar2rsawseen commented on August 16, 2024

Hello,
thank you, I could track it to JSDoc place here:
https://github.com/jsdoc/jsdoc/blob/main/packages/jsdoc-template-legacy/lib/templateHelper.js#L351

So, most probably, it is not a template problem but JSDoc problem in overall.

Have you experienced the same with the default JSDoc template?

from docdash.

ar2rsawseen avatar ar2rsawseen commented on August 16, 2024

So for example, as far as I see
here https://github.com/clenemt/docdash/blob/master/publish.js#L386
we feed method.longname as module:加法~add
and get result as <a href="module-%2525E5%25258A%2525A0%2525E6%2525B3%252595.html#~add">add</a>
which is already double encoded

from docdash.

bubble1001 avatar bubble1001 commented on August 16, 2024

Thanks for your reply, but I don't have same problem when I use other templates. And after I fix it like this, the above problem will not occur again. #119,

from docdash.

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.