lukasgeiter / mkdocs-awesome-pages-plugin

An MkDocs plugin that simplifies configuring page titles and their order
MIT License
472 stars 36 forks source link

awesome-pages not working with material docs tabs #41

Open rieger-jared opened 3 years ago

rieger-jared commented 3 years ago

Hi, I've been using awesome-pages for a while now, but only with material docs v4. I tried upgrading to v7 but even the latest awesome-pages does not render out like the old way. Is there something wrong with my config or is this a clash with material docs.

What's interesting is that the ordering is actually still working

.pages

nav:
  - index.md
  - ...
  - contributing.md

Old material docs

Screenshot 2021-03-18 at 11 06 16 pm

new

Screenshot 2021-03-18 at 11 06 49 pm

all links are tabs now

Screenshot 2021-03-18 at 11 07 07 pm
mkdocs==1.1.2
mkdocs-awesome-pages-plugin==2.5.0
mkdocs-git-revision-date-plugin==0.3.1
mkdocs-material==7.0.6
mkdocs-material-extensions==1.0.1
lukasgeiter commented 3 years ago

I don't see what awesome-pages has to do with this. mkdocs-material changed how tabs work, that's why pages in the root of docs are not grouped anymore but instead added individually as tabs.

The easiest way to fix this is to just create folders for the tabs you want. For example create a home folder and move index.md, confluence.md, into that folder.