mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Sort models sidebar alphabetically [ci skip]
This commit is contained in:
parent
20f80587d6
commit
32dc4f4796
|
@ -42,6 +42,7 @@ const Docs = ({ pageContext, children }) => (
|
|||
if (isModels) {
|
||||
sidebar.items[1].items = languages
|
||||
.filter(({ models }) => models && models.length)
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map(lang => ({
|
||||
text: lang.name,
|
||||
url: `/models/${lang.code}`,
|
||||
|
|
Loading…
Reference in New Issue
Block a user