Giter VIP home page Giter VIP logo

Comments (2)

RubenRBS avatar RubenRBS commented on July 17, 2024

Hi @hwhsu1231 thanks for your request. I'd like to understand a bit better why you'd need to get the base url as part of the link? Why does the current relative behaviour not work in your case? Are you building locally? Or is this some issue with the current live page itself that you've identified? :)

If possible, how to pass and reference html_baseurl in versions.html?

You'd probably need to add the relevant variable to this dict to make it available in the html context if it's not there already: https://github.com/conan-io/docs/blob/2404156c29d1b91c564dbe1e2f208bba2a87e414/conf.py#L63C1-L63C13

from docs.

hwhsu1231 avatar hwhsu1231 commented on July 17, 2024

Hello, @RubenRBS

Are you building locally?

Yes, I am. And if html_baseurl can be prepended to it, we might be able to experience the version switcher of Conan Documentation by running sphinx-build command with -D html_baseurl=<local/path> argument in the local build.

Otherwise, the hyperlinks when hovering those items will be something like these:

file:///2/index.html
file:///2.0/index.html

from docs.

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.