[doc] Add middleware in the table of contents