# # __ __ _ _ _ _ # | \/ | __ _ _ __| | ____ _| |_ __ _ | |_ ___ _ __ ___ | | # | |\/| |/ _` | '__| |/ / _` | __/ _` || __/ _ \| '_ ` _ \| | # | | | | (_| | | | < (_| | || (_| || || (_) | | | | | | | # |_| |_|\__,_|_| |_|\_\__,_|\__\__,_(_)__\___/|_| |_| |_|_| # # learn-sql-model.dev [markata.nav] 'learn-sql-model'='https://learn-sql-model.dev/' 'GitHub'='https://github.com/WaylonWalker/learn-sql-model' [markata] # bump site version to bust GitHub actions cache site_version = 13 ## choose your markdown backend # markdown_backend='markdown' # markdown_backend='markdown2' markdown_backend='markdown-it-py' # 2 weeks in seconds default_cache_expire = 1209600 # subroute = "docs" ## Markata Setup output_dir = "markout" assets_dir = "static" hooks = [ "markata.plugins.publish_source", "markata.plugins.docs", "default", ] disabled_hooks = [ 'markata.plugins.heading_link', 'markata.plugins.manifest', 'markata.plugins.rss' ] ## Site Config url = "https://learn-sql-model.dev" title = "Learn SQLModel's Docs" description = "Documentation for using the Learn SQLModel" rss_description = "Learn SQLModel docs" author_name = "Waylon Walker" author_email = "waylon@waylonwalaker.com" icon = "favicon.ico" lang = "en" # post_template = "pages/templates/post_template.html" repo_url = "https://github.com/waylonwalker/learn-sql-model" repo_branch = "main" theme_color = "#322D39" background_color = "#B73CF6" start_url = "/" site_name = "Learn SQLModel's Docs" short_name = "ww" display = "minimal-ui" twitter_card = "summary_large_image" twitter_creator = "@_waylonwalker" twitter_site = "@_waylonwalker" # markdown_it flavor # [markata.markdown_it_py] # config='gfm-like' # # markdown_it built-in plugins # enable = [ "table" ] # disable = [ "image" ] # # markdown_it built-in plugin options # [markata.markdown_it_py.options_update] # linkify = true # html = true # typographer = true # highlight = 'markata.plugins.md_it_highlight_code:highlight_code' # # add custom markdown_it plugins # [[markata.markdown_it_py.plugins]] # plugin = "mdit_py_plugins.admon:admon_plugin" # [[markata.markdown_it_py.plugins]] # plugin = "mdit_py_plugins.admon:admon_plugin" # [[markata.markdown_it_py.plugins]] # plugin = "mdit_py_plugins.attrs:attrs_plugin" # config = {spans = true} # [[markata.markdown_it_py.plugins]] # plugin = "mdit_py_plugins.attrs:attrs_block_plugin" # [[markata.markdown_it_py.plugins]] # plugin = "markata.plugins.mdit_details:details_plugin" # [[markata.markdown_it_py.plugins]] # plugin = "mdit_py_plugins.anchors:anchors_plugin" # [markata.markdown_it_py.plugins.config] # permalink = true # permalinkSymbol = '' # [[markata.markdown_it_py.plugins]] # plugin = "markata.plugins.md_it_wikilinks:wikilinks_plugin" # config = {markata = "markata"} # markata feeds # creating pages of posts # [markata.feeds_config] ## feed template # [markata.feeds.] # title="Project Gallery" ## python eval to True adds post to the feed # filter="'project-gallery' in path" ## the key to sort on # sort='title' ## the template for each post to use when added to the page # card_template=""" # """ [[markata.feeds]] slug='project-gallery' title="Project Gallery" filter="'project-gallery' in str(path)" sort='title' card_template="""
  • {{ title }}

    {{ article_html }}
  • """ [[markata.feeds]] slug='docs' title="Documentation" filter='"markata" not in slug and "tests" not in slug and "404" not in slug' sort='slug' card_template="
  • {{ title }}

    {{ description }}

  • " [[markata.feeds]] slug='all' title="All Learn SQLModel Modules" filter="True" card_template="""
  • {{ title }}

    {{ article_html[:article_html.find('

    ')] }}

  • """ [[markata.feeds]] slug='core-modules' title="Learn SQLModel Core Modules" filter="'plugin' not in slug and 'test' not in slug and title.endswith('.py')" card_template="""
  • {{ title }}

    {{ article_html[:article_html.find('

    ')] }}

  • """ [markata.jinja_md] ignore=[ 'jinja_md.md', 'post_template.md', 'publish_html.md', ] [[markata.head.meta]] name = "og:author_email" content = "waylon@waylonwalker.com" [markata.tui] new_cmd=['tmux', 'popup', 'markata', 'new', 'post'] [[markata.tui.keymap]] name='new' key='n' [markata.summary] grid_attr = ['tags', 'series'] [[markata.summary.filter_count]] name='drafts' filter="not published" color='red' [[markata.summary.filter_count]] name='articles' color='dark_orange' [[markata.summary.filter_count]] name='py_modules' filter='"plugin" not in slug and "docs" not in str(path)' color="yellow1" [[markata.summary.filter_count]] name='published' filter="published" color='green1' [[markata.summary.filter_count]] name='plugins' filter='"plugin" in slug and "docs" not in str(path)' color="blue" [[markata.summary.filter_count]] name='docs' filter="'docs' in str(path)" color='purple' [markata.post_model] include = ['date', 'description', 'published', 'slug', 'title', 'content', 'html'] repr_include = ['date', 'description', 'published', 'slug', 'title', 'output_html'] [markata.render_markdown] backend='markdown-it-py' # [markata.markdown_it_py] # config='gfm-like' # # markdown_it built-in plugins # enable = [ "table" ] # disable = [ "image" ] # # markdown_it built-in plugin options # [markata.markdown_it_py.options_update] # linkify = true # html = true # typographer = true # highlight = 'markata.plugins.md_it_highlight_code:highlight_code' # add custom markdown_it plugins [[markata.render_markdown.md_it_extensions]] plugin = "mdit_py_plugins.admon:admon_plugin" [[markata.render_markdown.md_it_extensions]] plugin = "mdit_py_plugins.admon:admon_plugin" [[markata.render_markdown.md_it_extensions]] plugin = "mdit_py_plugins.attrs:attrs_plugin" config = {spans = true} [[markata.render_markdown.md_it_extensions]] plugin = "mdit_py_plugins.attrs:attrs_block_plugin" [[markata.render_markdown.md_it_extensions]] plugin = "markata.plugins.mdit_details:details_plugin" [[markata.render_markdown.md_it_extensions]] plugin = "mdit_py_plugins.anchors:anchors_plugin" [markata.render_markdown.md_it_extensions.config] permalink = true permalinkSymbol = '' [[markata.render_markdown.md_it_extensions]] plugin = "markata.plugins.md_it_wikilinks:wikilinks_plugin" config = {markata = "markata"} [markata.glob] glob_patterns = "docs/**/*.md,CHANGELOG.md" use_gitignore = true