Skip to content

Questions: Custom template and nav structure #70

@welding11

Description

@welding11

Apologies if this is the wrong place to ask this but I am attempting to implement the style guide myself, which may I add is great so far. I have a couple of questions which I am hoping you can clear up.

  1. Creating a custom template appears to be relatively straightforward in that I have to use the template property in the options. I have copied over the templates that are originally used and am going to edit them, as far as the style guide styles, would removing the main style sheet and adding my own to the css that is copied over be sufficient? Or am I going about it the wrong way?

  2. I would like to list the entire menu as a side nav but with child components as pages, not one long page with sections. For example:

    Overview
    - Introduction
    - Getting started
    - Design Principles
    

    I would like the three sub-nav items to be sectionsOf Overview but as links to their own page. I've not
    had too much experience with .hbs, how would I go about doing this?

    I know the below isn't correct but you can see what I mean

    /**
      * @section Design Principles
      * @sectionOf Overview
      * @page Design Principles
    **/
    
    /**
      * @section Getting Started
      * @sectionOf Overview
      * @page Getting Started
    **/
    
    /**
     * @page Overview
     */
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions