mirror of
https://codeberg.org/readeck/readeck.git
synced 2025-12-22 13:17:10 +00:00
Documentation i18n
- moved English documentation in en-US subfolder
- allow for links to /docs/{name} to resolve to /docs/{lang}/{name}
- i18n on about page
This commit is contained in:
@@ -128,6 +128,7 @@ func mdToHTML(source, dest string) (*File, error) {
|
||||
meta.Meta,
|
||||
),
|
||||
goldmark.WithParserOptions(
|
||||
parser.WithHeadingAttribute(),
|
||||
parser.WithAutoHeadingID(),
|
||||
parser.WithASTTransformers(
|
||||
util.Prioritized(&linkTransform{}, 900),
|
||||
@@ -311,7 +312,6 @@ func main() {
|
||||
aliases := []string{}
|
||||
|
||||
if path.Ext(src) == ".md" {
|
||||
// destFile = strings.TrimSuffix(destFile, ".md") + ".html"
|
||||
dst = strings.TrimSuffix(dst, ".md") + ".html"
|
||||
|
||||
file, err = mdToHTML(src, dst)
|
||||
|
||||
Reference in New Issue
Block a user