Skip to content

Rust Guide Document titles are all 'introduction' #2510

Closed
@JamesManningR

Description

@JamesManningR

Bug report

All headings for the rust guide are Introduction and not in order

OS information

  • Mac Osx - Chrome
  • IOS - Chrome

Steps to reproduce

Open rust docs > guide

More resources

Image

Possible fix

name = at_css("#sidebar a[href='#{File.basename(slug)}']")

Something like this?

      def get_name
        if slug.start_with?('book') || slug.start_with?('reference')
-         name = at_css("#sidebar a[href='#{File.basename(slug)}']")
+         name = at_css("#sidebar a.active")
          name ? name.content : 'Introduction'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions