Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize documentation widget #9

Open
fno2010 opened this issue Dec 17, 2016 · 1 comment
Open

Generalize documentation widget #9

fno2010 opened this issue Dec 17, 2016 · 1 comment
Assignees

Comments

@fno2010
Copy link
Member

fno2010 commented Dec 17, 2016

Documentation widget is a singleton which is defined by partials/widgets/documentation.html, partials/sidebar.html and config.toml now.

But actually, we can generalize the documentation widget. It means we can define multiple widget instances and list them in the sidebar.

@fno2010
Copy link
Member Author

fno2010 commented Dec 17, 2016

A potential solution is the following config style:

[[params.widget.linklist]]
    title = "Documentation"
    links = [
        ["Demos", "/demo"],
        ["Tutorials", "/tutorials"]
    ]

[[params.widget.linklist]]
    title = "Wiki"
    links = [
        ["Getting Started", "/wiki/getting_started"],
        ["Code Specification", "/wiki/code_specification"]
    ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants