Skip to content

armgit / laya

Public Imported from GitHub
0

Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.

docs: group the site navigation into sections

Maxfield Allison84c31ce7ad09
diff --git a/docs/.nav.yml b/docs/.nav.yml
new file mode 100644
index 00000000..2ffca4b8
--- /dev/null
+++ b/docs/.nav.yml
@@ -0,0 +1,16 @@
+# Site navigation order. A page or folder that is not listed appears under Guides, so a new
+# guide shows up without an edit here; add it where it belongs once its place is clear.
+nav:
+ - index.md
+ - Guides:
+ - structured.md
+ - hooks
+ - langchain.md
+ - glob: "*"
+ ignore_no_matches: true
+ - Deployment:
+ - docker.md
+ - docker-platforms.md
+ - Fine-tuning:
+ - finetune_browser_agent.md
+ - reference
diff --git a/docs/hooks/.nav.yml b/docs/hooks/.nav.yml
new file mode 100644
index 00000000..a4412731
--- /dev/null
+++ b/docs/hooks/.nav.yml
@@ -0,0 +1,11 @@
+# Same order as the table on the Hooks page. An unlisted page appears at the end.
+nav:
+ - index.md
+ - api.md
+ - lifecycle.md
+ - errors.md
+ - patterns.md
+ - examples.md
+ - tracing.md
+ - glob: "*"
+ ignore_no_matches: true
diff --git a/docs/reference/.nav.yml b/docs/reference/.nav.yml
new file mode 100644
index 00000000..128bbdf2
--- /dev/null
+++ b/docs/reference/.nav.yml
@@ -0,0 +1,9 @@
+# The classes most readers start from first. An unlisted page appears at the end.
+nav:
+ - index.md
+ - agent.md
+ - router.md
+ - helpers.md
+ - langchain.md
+ - glob: "*"
+ ignore_no_matches: true
diff --git a/zensical.toml b/zensical.toml
index e33d7184..798f0700 100644
--- a/zensical.toml
+++ b/zensical.toml
@@ -9,8 +9,9 @@ repo_url = "https://github.com/NandhaKishorM/laya"
repo_name = "NandhaKishorM/laya"
edit_uri = "edit/main/docs/"
copyright = "Apache 2.0. Developed by Convai Innovations."
-# No nav list: Zensical builds the navigation from docs/, so a new page appears without an
-# edit here. A folder with an index.md becomes a section that opens on that page.
+# The navigation order lives in docs/.nav.yml, read by the awesome-nav plugin below. A page it
+# does not list still appears, so a new page needs no edit here. A folder with an index.md
+# becomes a section that opens on that page.
[project.theme]
# Reuse the README logo to avoid maintaining a second copy.
@@ -34,6 +35,8 @@ scheme = "slate"
toggle.icon = "lucide/moon"
toggle.name = "Switch to light mode"
+[project.plugins.awesome-nav]
+
# API reference pages under docs/reference/ are generated from the docstrings in laya/.
[project.plugins.mkdocstrings.handlers.python]
paths = ["."]