Skip to content

Commit

Permalink
Fix: builtin configuration comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pylover committed Aug 31, 2024
1 parent 544a181 commit 9fad454
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions yhttp/markdown/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@


# Builtin configuration
cfg.merge(f'''
cfg.merge('''
# yhttp debug flag
debug: {os.environ.get("YHTTP_DEBUG", "false")}
debug: false
# app specific
default: index.md
root: .
# site title
title: HTTP Markdown Server
toc:
depth: 3
Expand All @@ -31,15 +34,19 @@
# a list of regex patterns to exclude from TOC and HTTP serve
exclude:
# templates
# mako templates
markdown_template: default.mako
notfound_template: notfound.mako
# metadata path
metadata:
physical: .ymdmetadata
baseurl: /.ymdmetadata
# syntaxt highlighting theme
highlight:
theme: monokai
''')
Expand Down

0 comments on commit 9fad454

Please sign in to comment.