Moko Consulting

Open-source software for Joomla, Gitea, and web platforms. Home of MokoSuite, MokoGitea, and MokoCLI.

Tennessee
standards/Wiki-Features.-

Wiki Features

This page documents all completed wiki features in the MokoGitea fork.

Features Overview

# Feature Issue Summary
1 Wikilinks #666 [[Page Name]] linking with red links
2 Revision Diff #667 Line-by-line diff per commit
3 Categories #668 categories frontmatter + index page
4 Backlinks #669 "What links here" panel
5 Recent Changes #670 Cross-page git log
6 Templates #671 template transclusion with params
7 Rename Redirects #672 Auto-redirect on rename
8 Enhanced ToC #673 Collapsible, inline, sticky
9 Folder ACL #674 _access.yml write protection
10 Print + ZIP #675 Print view and ZIP export
11 Full-Text Search #550 Search across all wiki pages
-- Org Sidebar #680 Folder tree sidebar

Frontmatter System

---
categories: [standards, guides]
redirect: Old-Page-Name
toc: inline
---

Parsed by splitFrontmatter(). Markdown renderer never sees the delimiters.


[[Page Name]]                 Link to page
[[Page Name|Display Text]]    Custom link text
[[folder/Page Name]]          Subdirectory page
[[Page Name#Section]]         Anchor link
[[#Anchor]]                    Same-page anchor

Missing pages render as red links pointing to create page URL.


Revision Diff (#667)

Line-by-line diff per commit. History > click commit hash.


Categories (#668)

---
categories: [guides, reference]
---

Index at /_categories, built dynamically from frontmatter.


"What links here" button in page header. Searches wikilinks and markdown links. No DB needed.


Recent Changes (#670)

Cross-page git log: page name, author, summary, timestamp. Paginated.


Template Transclusion (#671)

Templates in _Template/ folder.

{{template:Name}}
{{template:Name|key=value|another=text}}

Placeholders: {{{key}}}. Processed before markdown rendering.


Rename Redirects (#672)

Renaming auto-creates redirect: New-Name frontmatter at old path. Flash: "Redirected from Old-Name".


Enhanced ToC (#673)

Mode Frontmatter Behavior
Sidebar none Sticky ToC beside content
Inline toc: inline ToC at top of page
Hidden toc: false No ToC

Folder ACL (#674)

allow:
  users: [jmiller]
  teams: [core-team]

Admins bypass. Read access unaffected. No inheritance.


Print View + ZIP Export (#675)

Print button strips UI chrome. ZIP exports all pages preserving folder structure.


Full-Text Search (#550)

Case-insensitive search across all wiki page titles and content.

Web UI

  • Search wiki link in the wiki dropdown menu
  • URL: ?action=_search&q=term
  • Results show page name + first matching line as context

API

GET /api/v1/repos/{owner}/{repo}/wiki/search?q=term

Returns JSON array of {page_name, page_url, context}. Paginated.

MCP Tool

gitea_wiki_search(owner, repo, q)


Org Wiki Sidebar (#680)

Collapsible folder tree. Override with _Sidebar.md. Collapse state in localStorage.


Revision History

Date Author Changes
2026-06-23 jmiller Initial page -- all 10 wiki features (#666-#675, #680)
2026-06-23 jmiller Add full-text search (#550) -- now 11 features