1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-11 21:10:26 +00:00
This commit is contained in:
Umar Getagazov 2022-09-14 10:39:37 +03:00
parent ab848247c9
commit 97df77d158
5 changed files with 20 additions and 17 deletions

View File

@ -9,6 +9,7 @@ import (
var fs embed.FS var fs embed.FS
// Get determines what help text you need and returns it. The path is a substring from URL, it follows this form: // Get determines what help text you need and returns it. The path is a substring from URL, it follows this form:
//
// <language>/<topic> // <language>/<topic>
func Get(path string) ([]byte, error) { func Get(path string) ([]byte, error) {
if path == "" { if path == "" {

View File

@ -40,6 +40,7 @@ type Localizer struct {
} }
// locales is a filesystem containing all localization files. // locales is a filesystem containing all localization files.
//
//go:embed en ru //go:embed en ru
var locales embed.FS var locales embed.FS

View File

@ -1,9 +1,10 @@
// Command mycorrhiza is a program that runs a mycorrhiza wiki.
//
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=tree //go:generate go run github.com/valyala/quicktemplate/qtc -dir=tree
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=history //go:generate go run github.com/valyala/quicktemplate/qtc -dir=history
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=mycoopts //go:generate go run github.com/valyala/quicktemplate/qtc -dir=mycoopts
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=auth //go:generate go run github.com/valyala/quicktemplate/qtc -dir=auth
//go:generate go run github.com/valyala/quicktemplate/qtc -dir=hypview //go:generate go run github.com/valyala/quicktemplate/qtc -dir=hypview
// Command mycorrhiza is a program that runs a mycorrhiza wiki.
package main package main
import ( import (

View File

@ -3,8 +3,8 @@
// Migrations are meant to be removed couple of versions after being introduced. // Migrations are meant to be removed couple of versions after being introduced.
// //
// Available migrations: // Available migrations:
// * Rocket links // - Rocket links
// * Headings // - Headings
package migration package migration
import ( import (