mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 17:54:39 +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) {
|
if (isModels) {
|
||||||
sidebar.items[1].items = languages
|
sidebar.items[1].items = languages
|
||||||
.filter(({ models }) => models && models.length)
|
.filter(({ models }) => models && models.length)
|
||||||
|
.sort((a, b) => a.name.localeCompare(b.name))
|
||||||
.map(lang => ({
|
.map(lang => ({
|
||||||
text: lang.name,
|
text: lang.name,
|
||||||
url: `/models/${lang.code}`,
|
url: `/models/${lang.code}`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user