TOC shows incorrect order but works correctly for another developer

Hello everyone,

I’ve recently been tasked with editing content in the Middleman server but when I start the server locally, the order of the TOC shows differently than another developer. It is setup to use the filenames as the order but mine seems to ignore it and reorganizes the nav.

We’re currently having me update *.md files and then I push to git where another developer builds. That is getting pretty old so we’d like to see if we can figure this out.

I’m out of ideas on where to look next. Any ideas?

Here is a screenshot, including subnav menus appearing in odd places:

  • I’m running Mac.
  • This happens cross-browser (Chrome, FF, Safari)
  • Not seeing any errors in WebDev Tools
  • Tried uninstalling and reinstalling modules, including Middleman
  • Cleared browser cache & cookies
  • When I build, the nav appears as mine does - incorrectly.
  • Another developer has no issues

Gemfile:

source 'https://rubygems.org'
# Middleman
gem 'middleman', '~> 4.2'
gem 'middleman-autoprefixer', '~> 2.7'
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw]
gem 'middleman-gh-pages', '~> 0.0.3'
gem 'middleman-syntax', '~> 2.1.0'
gem "middleman-sprockets", "~> 4.0.0.rc"
gem 'rouge', '~> 1.10.1'
gem 'redcarpet', '~> 3.3.2'

Markdown:

set :markdown_engine, :redcarpet
set :markdown,
    fenced_code_blocks: true,
    smartypants: true,
    disable_indented_code_blocks: true,
    prettify: true,
    tables: true,
    with_toc_data: true,
    no_intra_emphasis: true

Bundle Update

Using rake 12.3.2
Using concurrent-ruby 1.1.5
Using i18n 0.9.5
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 5.0.7.2
Using public_suffix 3.1.1
Using addressable 2.6.0
Using execjs 2.7.0
Using autoprefixer-rails 9.6.1
Using backports 3.15.0
Using bundler 1.17.2
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using contracts 0.13.0
Using dotenv 2.7.4
Using erubis 2.7.0
Using fast_blank 1.0.0
Using fastimage 2.1.5
Using ffi 1.11.1
Using temple 0.8.1
Using tilt 2.0.9
Using haml 5.1.1
Using hamster 3.0.0
Using hashie 3.6.0
Using kramdown 1.17.0
Using rb-fsevent 0.10.3
Using rb-inotify 0.10.0
Using listen 3.0.8
Using memoist 0.16.0
Using thor 0.20.3
Using middleman-cli 4.3.4
Using padrino-support 0.13.3.4
Using padrino-helpers 0.13.3.4
Using parallel 1.17.0
Using rack 2.0.7
Using sassc 2.0.1
Using servolux 0.13.0
Using uglifier 3.2.0
Using middleman-core 4.3.4
Using middleman 4.3.4
Using middleman-autoprefixer 2.10.1
Using middleman-gh-pages 0.0.3
Using sprockets 3.7.2
Using middleman-sprockets 4.0.0
Using rouge 1.10.1
Using middleman-syntax 2.1.0
Using redcarpet 3.3.4

Thank you, in advance.

I should also point out that the original source was downloaded from Slate:
https://github.com/lord/slate

I’ve posted on their chat site and looking through the docs now.

Both of you having the same version of Ruby? Are you using RBenv or RVM?

The other developer is on vacation but will find out asap.

I am using RVM 1.29.7 and Ruby 2.6.3p62