view tests/bakes/test_ordered_source.yaml @ 1168:10520472cc73

routing: Fix breakages with routing on some versions of Python. Finally figured what happened with change 6baa94da8b16 (this is a Mercurial hash by the way if you're looking at the Git mirror). Between Python 3.6 and 3.7 there was a change where the percent sign ('%') went from being escaped by `re.escape` to _not_ being escaped. So now we need to use different regex patterns dependin on the Python version, yay.
author Ludovic Chabant <ludovic@chabant.com>
date Fri, 04 Oct 2019 11:13:33 -0700
parents 1ce67d2fae0a
children
line wrap: on
line source

---
in:
    manual/00__index.html: "my index"
    manual/01_zzz.html: "zzz"
    manual/02_aaa.html: "aaa"
    manual/02_aaa/01_aaa_zzz: "aaa with zzz"
    manual/02_aaa/02_aaa_bbb: "aaa with bbb"
    manual/03_yyy.html: "yyy"
config:
    site:
        pretty_urls: true
        sources:
            manual:
                type: ordered
                default_layout: none
        routes:
            - url: '/man/%slug%'
              source: manual
outfiles:
    man/index.html: "my index"
    man/aaa/index.html: "aaa"
    man/zzz/index.html: "zzz"
    man/yyy/index.html: "yyy"
    man/aaa/aaa_zzz/index.html: "aaa with zzz"
    man/aaa/aaa_bbb/index.html: "aaa with bbb"
---
in:
    manual/00__index.html: "my index"
    manual/01_zzz.html: "zzz"
    manual/02_aaa.html: "aaa"
    manual/02_aaa/01_aaa_zzz: "aaa with zzz"
    manual/02_aaa/02_aaa_bbb: "aaa with bbb"
    manual/03_yyy.html: "yyy"
config:
    site:
        sources:
            manual:
                type: ordered
                default_layout: none
        routes:
            - url: '/man/%slug%'
              source: manual
outfiles:
    man.html: "my index"
    man/aaa.html: "aaa"
    man/zzz.html: "zzz"
    man/yyy.html: "yyy"
    man/aaa/aaa_zzz.html: "aaa with zzz"
    man/aaa/aaa_bbb.html: "aaa with bbb"