-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config setting to disable cross language search (#32)
* Add config setting to disable cross language search * Bump version * Continue work... * Add support for readthedocs theme * Fix test * Update docs * Fix error removing suffixes * Add tests for search indexes * Test config * Improve documentation for the new config setting
- Loading branch information
Showing
24 changed files
with
794 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ nav: | |
|
||
plugins: | ||
- search | ||
- mdpo | ||
- mdpo: | ||
cross_language_search: false | ||
|
||
extra: | ||
alternate: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
msgid "" | ||
msgstr "" | ||
|
||
msgid "Home" | ||
msgstr "Inicio" | ||
|
||
msgid "Welcome to MkDocs" | ||
msgstr "Bienvenido a Mkdocs" | ||
|
||
msgid "Some content" | ||
msgstr "Algo de contenido" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
msgid "" | ||
msgstr "" | ||
|
||
msgid "Home" | ||
msgstr "Accueil" | ||
|
||
msgid "Welcome to MkDocs" | ||
msgstr "Bienvenue sur mkdocs" | ||
|
||
msgid "Some content" | ||
msgstr "Du contenu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Welcome to MkDocs | ||
|
||
Some content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
site_name: mkdocs-mdpo-plugin Mkdocs theme example | ||
site_url: https://mkdocs-mdpo.ga | ||
docs_dir: docs/src | ||
|
||
nav: | ||
- Home: index.md | ||
|
||
plugins: | ||
- search | ||
- mdpo: | ||
languages: | ||
- en | ||
- es | ||
- fr | ||
cross_language_search: false | ||
locale_dir: ../locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ plugins: | |
- search | ||
- mdpo: | ||
locale_dir: ../locale | ||
cross_language_search: false | ||
|
||
extra: | ||
alternate: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
msgid "" | ||
msgstr "" | ||
|
||
msgid "Home" | ||
msgstr "Inicio" | ||
|
||
msgid "Welcome to MkDocs" | ||
msgstr "Bienvenido a Mkdocs" | ||
|
||
msgid "Some content" | ||
msgstr "Algo de contenido" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# | ||
msgid "" | ||
msgstr "" | ||
|
||
msgid "Home" | ||
msgstr "Accueil" | ||
|
||
msgid "Welcome to MkDocs" | ||
msgstr "Bienvenue sur mkdocs" | ||
|
||
msgid "Some content" | ||
msgstr "Du contenu" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Welcome to MkDocs | ||
|
||
Some content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
site_name: mkdocs-mdpo-plugin Mkdocs theme example | ||
site_url: https://mkdocs-mdpo.ga | ||
docs_dir: docs/src | ||
|
||
nav: | ||
- Home: index.md | ||
|
||
theme: | ||
name: readthedocs | ||
|
||
plugins: | ||
- search | ||
- mdpo: | ||
languages: | ||
- en | ||
- es | ||
- fr | ||
cross_language_search: false | ||
locale_dir: ../locale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""mkdocs-mdpo-plugin package""" | ||
|
||
__version__ = '0.0.20' | ||
__version__ = '0.0.21' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
def removesuffix(s, suf): | ||
if suf and s.endswith(suf): | ||
return s[:-len(suf)] | ||
return s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.