Skip to content

Commit e339685

Browse files
committed
fix(markdown generation): update template dates and weight
1 parent 2fb1d82 commit e339685

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

arkdoc/generator/markdown.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def generate_index(self):
7171
content = self.templates["_index.md"]
7272
content = content.format(
7373
title="Standard library",
74-
date=self.generated_at,
74+
date=f"{self.generated_at}+02:00",
7575
content=sections,
7676
)
7777

@@ -88,7 +88,8 @@ def generate_one(self, path: str, functions: List[spec.Function]):
8888
template = template.format(
8989
title=path,
9090
slug=self.formatter.anchorize(path),
91-
date=self.generated_at,
91+
date=f"{self.generated_at}+02:00",
92+
weight=410,
9293
content=sections,
9394
)
9495

templates/markdown/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ summary: ""
55
date: {date}
66
lastmod: {date}
77
draft: false
8-
weight: 900
8+
weight: 400
99
toc: true
1010
sidebar:
1111
collapsed: true

templates/markdown/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ summary: ""
66
date: {date}
77
lastmod: {date}
88
draft: false
9-
weight: 400
9+
weight: {weight}
1010
toc: true
1111
seo:
1212
title: "" # custom title (optional)

0 commit comments

Comments
 (0)