Git Product home page Git Product logo

Comments (5)

ES-Alexander avatar ES-Alexander commented on June 3, 2024

While branches for companion, ardusub, and qgroundcontrol are a given/requirement, it may also be worth having a branch that allows selecting Python version for the pymavlink examples.

from ardusub-zola.

ES-Alexander avatar ES-Alexander commented on June 3, 2024

Need to add a macro to the header of versioned sections/pages that does something along the lines of

<script>
  function change_version() {
    ... // modify url by replacing version number
  } 
</script>

<select name="versions" id="versions" onChange="change_version()">
  {% for version in versions %}
    <option value={{ version }}>{{ version.title }}</option>
  {% endfor %}
</select>
  • versions needs to be determined in a way that allows nested pages to still change versions (e.g. software/companion/1.0/configuration/... should be able to go to software/companion/1.0.1/configuration/...) - perhaps check path parent until a non-versioned parent section of the current versioned section is found
  • should have an intelligent fallback if an equivalent page doesn't exist (e.g. go to root of version)
  • searching is tricky - would be ideal to have options for general searching over the full docs (preferentially indexed to the latest version of each software, somehow), and another option for searching specifically within the selected version of the current software docs (based on the current page)
  • @patrickelectric has suggested it may be possible to do the change_version page-changing functionality using just Zola constructs/functions rather than using javascript

from ardusub-zola.

ES-Alexander avatar ES-Alexander commented on June 3, 2024

May be relevant to consider Rust's version selector:

rust-search-example-versions

from ardusub-zola.

rafaellehmkuhl avatar rafaellehmkuhl commented on June 3, 2024

While branches for companion, ardusub, and qgroundcontrol are a given/requirement, it may also be worth having a branch that allows selecting Python version for the pymavlink examples.

If we really need different python versions, I would use tabs on the code visualizer.

from ardusub-zola.

ES-Alexander avatar ES-Alexander commented on June 3, 2024

If we really need different python versions, I would use tabs on the code visualizer.

No idea if that's possible, but it does seem like a nice way of handling it, particularly given it's a different kind of version than the others (version of underlying technology, rather than version of the software/library itself).

from ardusub-zola.

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.