Giter VIP home page Giter VIP logo

Comments (5)

thunderbiscuit avatar thunderbiscuit commented on June 25, 2024 1

The way to do this is through the sidebarDepth option. You'll notice we have it set at sidebarDepth = 0 on line 7 of the config file. This sets the behaviour for all files, but you can adjust/override this by section if you want. Depth of 0 means that no headers are expanded when you click on a file, whereas sidebarDepth = 1 means all headers level 1 will unroll and you can click to quickly get to them. 2 is the same, it will pull all header1 and header2 tags.

Here is an example on the FAQ section:

    # FAQ Wasabi sidebar
    # ----------------------------------------
    [[themeConfig.sidebar."/FAQ/"]]
    title = ""
    sidebarDepth = 3
    collapsable = false
    children = [
        "/FAQ/",
        "/FAQ/FAQ-Introduction.md",
        "/FAQ/FAQ-Installation.md",
        "/FAQ/FAQ-UseWasabi.md",
        "/FAQ/FAQ-GeneralBitcoinPrivacy.md",
        "/FAQ/FAQ-Contribution.md",
    ]

I do not have an opinion on what value to choose, I just wanted to explain how it works. Have you tried a few @MaxHillebrand ? What do you think? I do like it for the FAQ potentially, depending on how long the list is haha.

from wasabidoc.

thunderbiscuit avatar thunderbiscuit commented on June 25, 2024 1

Also I just noticed that your link to the VuePress documentation is for vuepress 0.something. It is a bit older and does not contain all the explanations for the stuff we are implementing, so you might have not been able to find something you were looking for... Check out the version 1 instead. Honestly I don't know why they don't put a banner on the old version making sure users know that this is not the docs related to the current version, the one that downloads by default!

https://v1.vuepress.vuejs.org/guide/

from wasabidoc.

MaxHillebrand avatar MaxHillebrand commented on June 25, 2024

As always, fantastic explanation, thank you so much @thunderbiscuit !!

As I read it here, the maximum depth is 2, and I think that is good for most pages. I'll set it manually for all of the four pillars so that it can be modified individually without much hassle.

from wasabidoc.

thunderbiscuit avatar thunderbiscuit commented on June 25, 2024

Yeah I think that's a better approach than what I had. Explicit is better than implicit. This will make it clear to newcomers to the file.

from wasabidoc.

MaxHillebrand avatar MaxHillebrand commented on June 25, 2024

This is implemented by 64bb9cd.

from wasabidoc.

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.