view tests/bakes/test_linker.yaml @ 979:45ad976712ec

tests: Big push to get the tests to pass again. - Lots of fixes everywhere in the code. - Try to handle debug logging in the multiprocessing worker pool when running in pytest. Not perfect, but usable for now. - Replace all `.md` test files with `.html` since now a auto-format extension always sets the format. - Replace `out` with `outfiles` in most places since now blog archives are added to the bake output and I don't want to add expected outputs for blog archives everywhere.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 29 Oct 2017 22:51:57 -0700
parents 27b10024f8d8
children 7fe1151595bf
line wrap: on
line source

---
in:
    pages/foo.html: |
        {%for c in family.children%}
        {{c.title}}
        {%endfor%}
outfiles:
    foo.html: ''
---
in:
    pages/foo.html: |
        {%for c in family.children-%}
        {{c.title}}
        {%endfor%}
    pages/foo/one.html: |
        ---
        title: One
        ---
    pages/foo/two.html: |
        ---
        title: Two
        ---
outfiles:
    foo.html: |
        One
        Two
---
in:
    pages/foo.html: |
        ---
        title: Foo
        ---
        {%for c in family.siblings-%}
        {{c.title}}{%if c.is_self%} SELFIE!{%endif%}
        {%endfor%}
    pages/bar.html: |
        ---
        title: Bar
        ---
    pages/other.html: |
        ---
        title: Other
        ---
outfiles:
    foo.html: |
        Bar
        Foo SELFIE!
        Other
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/one.html: |
        {{family.parent.url}} {{family.parent.title}}
outfiles:
    foo/one.html: /foo.html Foo
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/bar.html: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.html: |
        {{family.parent.url}} {{family.parent.title}}
        {{family.ancestors[1].url}} {{family.ancestors[1].title}}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo
---
in:
    pages/foo.html: "---\ntitle: Foo\n---\n"
    pages/foo/bar.html: "---\ntitle: Bar\n---\n"
    pages/foo/bar/one.html: |
        {% for p in family.ancestors -%}
        {{p.url}} {{p.title}}
        {% endfor %}
outfiles:
    foo/bar/one.html: |
        /foo/bar.html Bar
        /foo.html Foo