Closed Andre601 closed 2 years ago
This is a consequence of how MkDocs sorts files/pages. They are compared character by character, without any kind of special handling for (multi digit) numbers. So when the second 1
in mc-1.10.md
is compared to the 9
in mc-1.9.md
, 1
is smaller and therefore mc-1.10.md
is listed before mc-1.9.md
.
Explicitly putting 1.8
and 1.9
before ...
should've worked though. Maybe you'll want to try that again.
An alternative solution would be to add zeroes to the filenames: mc-1.08.md
Explicitly putting
1.8
and1.9
before...
should've worked though. Maybe you'll want to try that again.
Yeah... That doesn't work for some reason
But the nav
feature works for other pages?
But the
nav
feature works for other pages?
Idk. I don't use that specific nav setups on other pages.
Okay, I've looked at your repo. The file needs to be called .pages
(without an extension).
You're not the first person to run into this, so I might change it so it also works with an extension...
Strangely enough did it not work when I had only .pages
It's rather strange. And personally should it just use extensions, because of other things like syntax highlighting in text editors...
In hindsight I agree, having a file extension makes more sense... I'll see that I can enable support for .pages.yml
out of the box.
In the meantime, you can customize the filename
using a plugin option.
I for now changed the filenames and the nav is working as it should, thanks
I host a website listing sounds enum names for the SpigotMC project.
Now I want to use Awesome pages to not have to update all pages every time a new update releases, but I encounter a rather strange issue, where the order of the pages in the navigation is completely out of order.
My intended order is:
but the order as of now is
and I'm not sure if this is now caused by awesome pages, the Material theme or even MkDocs itself.
I tried to force awesome pages to put the 1.8 and 1.9 pages before everything else using
but the order stays unaffected. The file names are correct.
Any idea what the issue is and how I could solve it?